Reputation: 61
selectctrl = @browser.select(:xpath, "//select[id='foo']")
selectctrl.select("Open")
Upvotes: 1
Views: 538
Reputation: 3685
Try:
selectctrl.select 'open'
selectctrl.fire_event 'change'
You should avoid using xpath, it is problematic in IE, and less readable
selectctrl = @browser.select :id => 'foo'
Upvotes: 1