On Thu, Jul 19, 2012 at 11:03 AM, Duleep Thivanka <[email protected]>
wrote:
> Need to select first option of a select box.

Something like this should work (not tested)

browser.select(:id => "my-id").options.first

More information:

http://watir.github.com/watir-webdriver/doc/Watir/Select.html#options-instance_method

Željko
--
filipin.eu

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to