Hey Friend, Got the solution.
Use "browser.frame(:index,2).link(:id=>"logoutLink").click()" this piece of code to click on Logout link, as this link is under a frame with index 2 it was unable to identify Logout link. Try and let me know if it works or not. On Tue, May 25, 2010 at 12:17 AM, Cristina <cristina.toro...@gmail.com>wrote: > Reattached the script.I deleted the last line. > > > On Mon, May 24, 2010 at 2:46 PM, Cristina <cristina.toro...@gmail.com>wrote: > >> Hi, >> >> I attached the script and screen snapshot. >> You can run it. That is our email application and I would like to start >> automating the functional testing. >> >> I do not know how to make working: >> #1.----- >> #2.---- >> >> from the script. How to logout and simple select a link. >> >> Thanks a lot, >> Cristina >> >> >> On Mon, May 24, 2010 at 12:16 PM, kiran yajamanyam < >> kiranyajaman...@gmail.com> wrote: >> >>> try with >>> >>> ie.link(:text=>"LogOut", :index=>1).click() or >>> >>> ie.link(:text=>"LogOut", :index=>2).click() or >>> >>> ie.link(:text=>"LogOut", :index=>3).click() >>> >>> >>> try with diff index values by trail and error or you can include parent >>> of that link and try example >>> ie.div(just example).link(:text, "LogOut").click() >>> >>> Else give us your source we can try to help you :) >>> >>> On Mon, May 24, 2010 at 9:37 PM, Cristina <cristina.toro...@gmail.com>wrote: >>> >>>> I am using firefox. >>>> >>>> Just try and not working. I am receiving the following err: >>>> Unable to locate element, using :text, "Logout" (Watir::Exceptio... >>>> >>>> >>>> >>>> >>>> On Sun, May 23, 2010 at 4:36 PM, Felipe Knorr Kuhn <fkn...@gmail.com>wrote: >>>> >>>>> Hello, Cristina, >>>>> >>>>> have you tried >>>>> >>>>> $ie.link(:text, "Logout").click >>>>> $ie.link(:text, "Logout").fire_event("onClick") >>>>> >>>>> ? >>>>> >>>>> On Sun, May 23, 2010 at 5:29 PM, Cristina <cristina.toro...@gmail.com> >>>>> wrote: >>>>> > Hi, >>>>> > >>>>> > please can one help me with that:: i do not know how to click on the >>>>> logout. >>>>> > That is the snippet code: >>>>> > >>>>> > #------------------------- >>>>> > <tr> >>>>> > <td id="topToolbar"> >>>>> > </td> >>>>> > <td id="greeting"> >>>>> > Welcome q...@qa.hemt.ca | >>>>> > <a id="helpText" href="#" onclick="showHelp();return >>>>> false;"> </a> >>>>> > | >>>>> > <a id="logoutLink" href="javascript:confirmLogout();"> Logout </a> >>>>> > </td> >>>>> > </tr> >>>>> > #------------------------ >>>>> > >>>>> > >>>>> > I've try >>>>> > $browser.cell(:id => "logoutLink").click >>>>> > >>>>> > or >>>>> > $browser.link(:text, "Logout").click >>>>> > or >>>>> > $browser.link(:id, "LogoutLink").click >>>>> > >>>>> > but is not working. >>>>> > >>>>> > >>>>> > Best regards, >>>>> > Cristina >>>>> > >>>>> > -- >>>>> > 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<watir-general%2bunsubscr...@googlegroups.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<watir-general%2bunsubscr...@googlegroups.com> >>>>> >>>> >>>> >>>> >>>> -- >>>> ~~ Cristina >>>> >>>> >>>> >>>> -- >>>> 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<watir-general%2bunsubscr...@googlegroups.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<watir-general%2bunsubscr...@googlegroups.com> >>> >> >> >> >> -- >> ~~ Cristina >> >> >> > > > -- > ~~ Cristina > > > > -- > 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<watir-general%2bunsubscr...@googlegroups.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