Hi Tiffany, Thanks for the info.
I Have a menu tree and i'm not able to navigate through it. The speed is very fast and the child node takes some time to load, within that i get an error report saying c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:967:in `assert_exists': Unable to locate element, using :text, "Jurisdiction" (Watir::Exception::UnknownObjectException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1112:in `click' My Code is require "watir" test_site = "http://localhost:8080/egi/eGov.jsp" Watir::Browser.default = 'firefox' ie = Watir::Browser.new ie.goto test_site ie.maximize ie.text_field(:name, "j_username").set "user_name" ie.text_field(:name, "j_password").set "pass_word" ie.button(:value, "Login").click ie.frame("leftFrame").link(:text,"Administration").click ie.frame("leftFrame").link(:text,"Jurisdiction").click ie.frame("leftFrame").link(:text,"Create Department").click Could you please suggest me an alternative? How can i handle a menu tree? Regards, Hema On Tue, Jan 13, 2009 at 10:10 PM, Tiffany Fodor <tcfo...@comcast.net> wrote: > > Hi Hema! > > I think that the attach method may not be working for firefox in the > most recent build. Here's a thread that talks about it: > > > http://groups.google.com/group/watir-general/browse_thread/thread/2e8a599d9f0e4b1a/78e0882995cdc2d7?lnk=gst&q=attach+firefox#78e0882995cdc2d7 > > In the mean time, you might be able to use the find method: > ie1 = Watir::IE.find(:title,/Jurisdiction/) > > Hope this helps! > > -Tiffany > > On Jan 13, 2:38 am, Hemalatha Sivasubramaniam <hema.wa...@gmail.com> > wrote: > > Hi, > > > > i use > > > > watir - 1.6.2 > > ruby - 1.8.6 > > mozilla - 3.0.5 > > > > i want to open a URl in firefox and login to the application and click on > a > > link in the menu tree. I'm able to click on the parent node, but unable > to > > click on the child node, i get an error, saying > > > > > c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:967:in > > `assert_exists': Unable to locate element, using :text, "Jurisdiction" > > (Watir::Exception::UnknownObjectException) > > from > > > c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1112:in > > `click' > > from EGI.rb:11 > > > > My script is below > > > > require "watir" > > test_site = "http://localhost:8080/egi/eGov.jsp" > > Watir::Browser.default = 'firefox' > > ie = Watir::Browser.new > > ie.goto test_site > > ie.maximize > > ie.text_field(:name, "j_username").set "user_name" > > ie.text_field(:name, "j_password").set "pass_word" > > ie.button(:value, "Login").click > > ie.frame("leftFrame").link(:text,"Administration").click > > ie.frame("leftFrame").link(:text,"Jurisdiction").click > > ie.frame("leftFrame").link(:text,"Create Department").click > > ie1 = Watir::IE.attach(:title,/Jurisdiction/) > > > > if ie1.text.include? "Department" > > puts "Test Passed" > > else > > puts "Test Failed" > > end > > can you please help me to find why i get this error? > > > > Thanks and Regards, > > Hema > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---