It doesn't appear that it's actually a select. Something like this should work.
b.label(:id, "j_idt18:j_idt22_label").click b.li(:text => "Option 1").click On Thursday, April 4, 2013 9:19:35 AM UTC-4, Champ wrote: > > I am trying to automate an application that has select menus from prime > faces. For some reason I am unable to select the item from the select list. > It just highlights the select list and does not select any value. > > I am attaching my code below Any input is really appreciated. > > I am using ruby 192 and watir-classic 3.4.0 > > def test_select > @ie = Watir::Browser.new > url="http://www.primefaces.org/showcase/ui/selectOneMenu.jsf" > @ie.goto(url) > @ie.select_list(:id, "j_idt18:j_idt22_input").select("Option 1") > end > -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
