[wtr-general] Multiple browsers
Hi My scripts clicks on logout link to logout the app and close it. Once the main browser closes, one more broser will open with some message. I have to click on a link to close the second browser. Can any one please help in clicking the link in the other browser. 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.com
Re: [wtr-general] Multiple browsers
thanks Filipin My second browser opens after the first one closes. I wanted to click on a link in the second browser. Please let me know how to handle this. thanks aravind On Mon, Mar 21, 2011 at 5:14 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 21, 2011 at 12:41 PM, Aravind aravindredd...@gmail.com wrote: Can any one please help in clicking the link in the other browser. I guess you are asking how to attach to another browser window? http://wiki.openqa.org/display/WTR/New+Browser+Windows Željko -- watir.com - community manager watir.com/book - author viaqa.mobi conference on software testing - organizer 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
Re: [wtr-general] Multiple browsers
Thanks Filipin Its working \below is the code ie2 = Watir::IE.attach(:title,'welcome') ie2.send_keys('{TAB}') // As I have only one link in the page ie2.send_keys('{ENTER}') thanks aravind On Mon, Mar 21, 2011 at 5:37 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 21, 2011 at 1:04 PM, Aravind aravindredd...@gmail.com wrote: My second browser opens after the first one closes. I wanted to click on a link in the second browser. Attach to it and then click the link. Read the page I have previously linked to and let me know if you still do not know what to do. Ž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
Re: [wtr-general] Re: Click on links on a dynamic pane
Woow Linden Its working fine. Surprised to see that. Thank you very much for your help. Till now i heard about ruby and now i am realising how easy it is. below is the code I used. for i in 3..table.row_count - 1 if table[i][8].text == APV table[i][1].link(:index,1).click table[i][1].link(:index,1).parent.link(:text,Open This Version).click i = table.row_count end end thanks aravind On Thu, Mar 17, 2011 at 11:00 PM, Chuck van der Linden sqa...@gmail.comwrote: Can you show me the code for the click? from the looks of the dom, the original link you click to see the sub- menu, and those menu items, are all 'inside' that table row. I suspect that the challeng is that there are other similar hidden links (at that point) on each of the other table rows, all with the same link text etc.. Making clicking the right one a challenge; So you might be able to identify them according to a sibling relationship with the link you clicked Try using the same code as for the click, but replace the .click with the following .parent.link(:text, Open This Version).click as Basim indicated, you may have to FIRST fire an onmouseover event against that element, since I see code in there that is reacting to that event, and perhaps if it does not see that first, you won't be able to click it On Mar 17, 8:25 am, Aravind aravindredd...@gmail.com wrote: Basim I used Click method thanks aravind On Thu, Mar 17, 2011 at 8:51 PM, Basim Baassiri ba...@baassiri.ca wrote: When you say click on the action, do you use click method or do you use fire_event ? On Thu, Mar 17, 2011 at 11:13 AM, Aravind aravindredd...@gmail.com wrote: Hi This is the continuation of my previous question which is resolved. I have some links with the name action in the1st column of all the rows in a table. When I click the action link a dynamic pane will be displayed with few more links. Now i have click on any of the links on the pane. The image of the page and the html is attached. Please help. thanks aravind -- Before posting, please readhttp://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 readhttp://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
[wtr-general] How to exit from for loop
Hi Is there any command like exit to come out of For loop before even finishing the iterations. 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.com
Re: [wtr-general] How to exit from for loop
Thanks It works. aravind On Fri, Mar 18, 2011 at 8:14 PM, Dave McNulla mcnu...@gmail.com wrote: Another Ruby question. You could try a break: http://www.wellho.net/mouth/962_Breaking-a-loop-Ruby-and-other-languages.html My favorite is goto for i in1..5 blah blah blah goto funnyfarm if i.am.crazy end :funnyfarm puts help, I'm in a batch script and I can't get out Sorry, just having a little fun this morning. Dave -- 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 links on a dynamic pane
Basim I used Click method thanks aravind On Thu, Mar 17, 2011 at 8:51 PM, Basim Baassiri ba...@baassiri.ca wrote: When you say click on the action, do you use click method or do you use fire_event ? On Thu, Mar 17, 2011 at 11:13 AM, Aravind aravindredd...@gmail.comwrote: Hi This is the continuation of my previous question which is resolved. I have some links with the name action in the1st column of all the rows in a table. When I click the action link a dynamic pane will be displayed with few more links. Now i have click on any of the links on the pane. The image of the page and the html is attached. 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.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
[wtr-general] Click on the link in a cell of a table
Hi I have a table in the page with few columns like Action, name, status etc. Under action i have links and based on the status i have to click on the link under action. Ex: If status is APV click on the link under action. Can any one help with the code 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.com
Re: [wtr-general] Click on the link in a cell of a table
Hi Thanks for the reply. I got the solution for that. thanks aravind On Wed, Mar 16, 2011 at 7:04 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Mar 16, 2011 at 1:01 PM, Aravind aravindredd...@gmail.com wrote: I have a table in the page with few columns like Action, name, status etc. Show us the HTML code. Željko -- watir.com - community manager watir.com/book- author viaqa.mobi conference on software testing - organizer 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
[wtr-general] Script in a page runs for few seconds, how to wait
Hi I have a scenorio, when i login to my app, page says loading done but the server side script inside the page still runs to get the data. Here my script is failing to identiffy the object. How to wait. 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.com
[wtr-general] two buttons Search and Go
Hi I have two buttons in a page Search and Go. I am able to click Go but not the Search, wiered Go button input name=Go onclick=javascript:go(this); type=button value=Go Search button input name=searchAccounts onclick=javascript:searchAcct(this); type=button value=Search I dont find any diff in the code. 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.com
[wtr-general] Click on link with href Javascript:calllogout()
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.com
[wtr-general] [wtr-General] Click on link with href Javascript:calllogout()
-- Forwarded message -- From: Aravind aravindredd...@gmail.com Date: Wed, Jan 19, 2011 at 5:54 PM Subject: Click on link with href Javascript:calllogout() To: watir-general@googlegroups.com 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.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
[wtr-general] button type = submit + Click
Hi Experts I have a button in my page with the html code span id=ADloginWSLSubmitButtoninput type=submit value=I Concur / span I used the code like button(:id, one).click But when i run it is not clicking the button 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.com
Re: [wtr-general] button type = submit + Click
Thanks Filipin it worked thanks aravind On Wed, Jan 12, 2011 at 8:24 PM, Aravind aravindredd...@gmail.com wrote: Hi Experts I have a button in my page with the html code span id=ADloginWSLSubmitButtoninput type=submit value=I Concur /span I used the code like button(:id, one).click But when i run it is not clicking the button 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.com