Jim
Jim

Reputation: 61

watir-webdriver on IE behaves differently then Chrome and FireFox in respect to selecting a value from select list

selectctrl = @browser.select(:xpath, "//select[id='foo']")
selectctrl.select("Open")

Upvotes: 1

Views: 538

Answers (1)

Alister Scott
Alister Scott

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

Related Questions