> How about when we have exactly the same text in a page? What can we do?
Check this out: http://wiki.openqa.org/display/WTR/Multiple+Attributes Example: browser.link(:text=>'text', :index=>2).click You have a number of (good) questions, but I'd really advise reading through the tutorial and FAQ to get up to speed on watir: http://wiki.openqa.org/display/WTR/Start+Here orde PS: I think this thread went off topic... On Jul 28, 9:16 am, Chan Nguyen <atbl1...@gmail.com> wrote: > Hi Zeljko, > > Got you ;). By the way I got it worked like this: > puts " Step 5 : move mouse over the Searches tab" > browser.cell(:id => "uwmMainMenu_1").fire_event "onfocus" > puts " Step 6 : click on Quick Search " > browser.cell( :text => "Quick" ).fire_event "onmousedown" > browser.cell( :text => "Quick" ).fire_event "onmouseup" > > Can I ask you about :text property? In the worst scenario without any > information about element, you have to use :text? How about when we have > exactly the same text in a page? What can we do? > > Thanks, > Chan Nguyen > > On Wed, Jul 28, 2010 at 9:13 AM, Željko Filipin < > > > > zeljko.fili...@wa-research.ch> wrote: > > 2010/7/28 Chan Nguyen <atbl1...@gmail.com> > > > superclass mismatch > > > Do not require both watir and watir-webdriver, only one. > > > Željko > > > -- > > Before posting, please readhttp://watir.com/support. In short: search > > before you ask, be nice. > > > You received this message because you are subscribed to > >http://groups.google.com/group/watir-general > > To post: watir-general@googlegroups.com > > To unsubscribe: > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@goog > > legroups.com> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com