css - REG : Custom Dropdown box identification [CAPYBARA] -


looking @ selecting value dropdown ( custom ) not regular dropdown , has lot of dropdown values

i able select first value code

find('.selected', :text=>arg1,exact: false).click

but unable select remaining values text has lot of padding spaces! how tackle situation

i'm not sure drop-down looks like, 1 thing might collect options:

dropdown = session.find(:css, '#elementid')                   #customize needed options  = dropdown.all(:css, "option").collect {|o| o.text} 

then use index select drop-down:

session.select options[3], from: 'elementid' 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -