Re: [wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-20 Thread watir webdriver
Thanks experts it worked now... On Fri, May 17, 2013 at 9:37 PM, Chuck van der Linden cvanderlin...@climate.com wrote: On Friday, May 17, 2013 10:45:54 AM UTC-7, Dan wrote: You may need a when_present because if that list is being populated via some other selection or ajax it might not

[wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-17 Thread watir webdriver
On Friday, May 17, 2013 4:58:11 PM UTC+1, watir webdriver wrote: Hi, In my application I've to select an option from the list.I tried as below but its not selecting the option: @browser.select_list(:name = siteName).select ccfashion @browser.select_list_element(:name =

[wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-17 Thread Dan
You may need a when_present because if that list is being populated via some other selection or ajax it might not be there when you're trying to select it. @browser.select_list(:name = siteName).when_present.select ccfashion On Friday, May 17, 2013 12:07:53 PM UTC-4, watir webdriver wrote:

[wtr-general] Re: Watir-webdriver : How to select an option from the list

2013-05-17 Thread Chuck van der Linden
On Friday, May 17, 2013 10:45:54 AM UTC-7, Dan wrote: You may need a when_present because if that list is being populated via some other selection or ajax it might not be there when you're trying to select it. @browser.select_list(:name = siteName).when_present.select ccfashion +1