Re: [wtr-general] Click on link with href Javascript:calllogout()
Hi Aravind Do you have an example of the code that is causing you the problem? What code have you tried? When you say failed, is the application under test failed to respond or is there an exception in the watir script? Thanks Basim On Wed, Jan 19, 2011 at 7:24 AM, Aravind aravindredd...@gmail.com wrote: Hi I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Please help thanks aravind -- 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.comwatir-general%2bunsubscr...@googlegroups.com -- 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
Re: [wtr-general] Click on link with href Javascript:calllogout()
On Wed, Jan 19, 2011 at 1:24 PM, Aravind aravindredd...@gmail.com wrote: I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Show us your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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
Re: [wtr-general] Click on link with href Javascript:calllogout()
thanks for the reply lia href=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li Can you please give me the code to click on logout link thanks aravind On Wed, Jan 19, 2011 at 7:41 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 19, 2011 at 1:24 PM, Aravind aravindredd...@gmail.com wrote: I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Show us your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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.comwatir-general%2bunsubscr...@googlegroups.com -- 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
Re: [wtr-general] Click on link with href Javascript:calllogout()
2011/1/19 Aravind aravindredd...@gmail.com lia href=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li What have you tried so far? Željko -- 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
Re: [wtr-general] Click on link with href Javascript:calllogout()
On Wed, Jan 19, 2011 at 3:45 PM, Aravind aravindredd...@gmail.com wrote: I have tried using both href and text as perameters. Show us the code! :) (And error messages, if any.) Željko -- 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
Re: [wtr-general] Click on link with href Javascript:calllogout()
Did you try $ie.link(:text,'Logout').click Michael From: Aravind aravindredd...@gmail.com To: watir-general@googlegroups.com Sent: Wed, January 19, 2011 4:46:52 AM Subject: Re: [wtr-general] Click on link with href Javascript:calllogout() thanks for the reply liahref=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li Can you please give me the code to click on logout link thanks aravind On Wed, Jan 19, 2011 at 7:41 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 19, 2011 at 1:24 PM, Aravind aravindredd...@gmail.com wrote: I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Show us your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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 -- 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 -- 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
Re: [wtr-general] Click on link with href Javascript:calllogout()
Also did you try $ie.link(:text,'Logout').fire_event(onclick) From: Aravind aravindredd...@gmail.com To: watir-general@googlegroups.com Sent: Wed, January 19, 2011 6:45:40 AM Subject: Re: [wtr-general] Click on link with href Javascript:calllogout() Hi I have tried using both href and text as perameters. On Wed, Jan 19, 2011 at 6:26 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2011/1/19 Aravind aravindredd...@gmail.com lia href=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li What have you tried so far? Željko -- 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 -- 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 -- 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