On Fri, Mar 8, 2013 at 3:30 PM, <abr.nand...@gmail.com> wrote: > unable to locate element, using {:text > =>"Logout", :tag_name=>"a"} >
A couple of reasons come to mind: 1) logout link is in a frame, try something like this: browser.frame(:id => "frame-id").a(:text => "Logout").click More information: http://wiki.openqa.org/display/WTR/Frames 2) logout link appears after some time, try something like this: browser.a(:text => "Logout").when_present.click More information: http://watirwebdriver.com/waiting/ Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.