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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -