Re: [wtr-general] Unable to have multithreading
Create instances of browsers with different variable names like.. Brw1 = Watir::Browser.new Brw2 = Watir::Browser.new and so on... On Oct 10, 2012 4:06 PM, Kapil Rajak kapil1089thek...@gmail.com wrote: When I create 6 threads, I want them to run concurrently, but it runs one by one, even I have fond that all other threads are stuck at @browser=Watir::Browser.new by printing statement. What could be reasons? -- 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: Cannot click Apply button after using file upload dialog box
I would suggest you to use AutoIt software for getting the id of Apply button. I think you are not passing the right id, that's why it id not getting clicked... On Jun 16, 2012 12:53 AM, tkp trupty...@gmail.com wrote: I am using ruby 1.9 and watir 3.0.0. My problem still persists! On Tuesday, 31 March 2009 09:50:07 UTC+5:30, Shweta wrote: try with this $ie.button(:name,**ApplyAddDocument).click #try with Value also instead of name property or Watir.autoit.Send('{ENTER}') On Mar 31, 5:16 am, vladimir...@hotmail.com vladimir...@hotmail.com wrote: I need to select a document by clicking Browse... button. After selecting the file for download, I need to click Apply butoon. My code is simple # open Choose File Windows dialog box $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.button( :id, applyButton ).click No complaint, but the button Apply is not clicked. I also tried: $ie.file_field( :name, document ).set( c:\\Watir Testware\\Data\ \vb.txt ) $ie.form(:name, ApplyAddDocument).submit got the same result. Please, help. Thanks, Vladimir Belorusets SQA Manager, Xerox -- 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] How to handle a download window after clicking a link - RubyWatir
You can use my gem 'watir_helper' ...it provides u the function to click cancel button...u have to just pass the popup window title to it... On Jun 15, 2012 7:11 PM, Doris Tian 895512...@qq.com wrote: Hi all, Here is a new problem need your help, thank you very much. What I want to do: In one search answer page, I ask question and the answers are returned. and also there are many kinds of answers, such as: txt, html, DOC, PDF, XLS. when I click the answer: txt or html, that will be opened in the browser, but for the other types of answers, that will popup a window to download or open it. For me, I need to do the correct action according to the type of answers. 1. If the answer is txt or html, I click it, the page turned to another new page with the same browser, I need click page back.(This is easy) 2. If the answer is DOC or PDF or XLS, I click it, a window will popup to notify me to save or download this answer, I need to click cancel or to close this window. (For this one, I don't know how to judge that a window popup and how to click cancel to close the window) I'm looking forward your reply! Best Regards Doris -- 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] It doesn't work when clicking a button in Updatepanel
Hi Green, Are your sure that after clicking btnAdd button manually you go to the next page? Thanks Regards, Ankur Gera On Mon, Jun 20, 2011 at 6:08 AM, Green Yin green...@gmail.com wrote: My web application uses the updatepanel control. See my watir scripts: { ie = Watir::IE.start(url) ie.text_field(:id, txtLogin).set(XXX) ie.text_field(:id, txtPassword).set(xxx) # Without using updatepanel ie.button(:id, btnLogin).click # Using updatepanel ie.button(:id, btnAdd).click } It's no problem when clicking Login button, the page will go to the next page. After clicking btnAdd button, the page just refresh without going to next page. I was tried to use id, name and value of the button to click it, but it's the same result. Does anyone met the problem? Thanks! -- 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.comhttp://groups.google.com/group/watir-general%0awatir-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] New Watir/Ruby Based Testing Tool
Hi Lusey, Gr8!!! infoThanks a lot for sharing.. Thanks Regards, Ankur Gera On Tue, Sep 21, 2010 at 12:39 AM, Lusey blake.lusen...@janova.us wrote: I thought I'd share with everyone a new, software testing tool based on Watir and Ruby. Janova (www.janova.us) is a new software testing tool that just released that was based on watir and ruby principles. Janova runs in the cloud and operates in plain English. What's that mean? It means all the necessary coding is behind the scenes in Janova so that you operate only through English commands. Example: Say you want to validate that there is a text box on the screen? All you would do is select, Validate element from a select list, then type Text Box. Janova would then do the rest and give you a step: 1. I should see a Text Box element. That's the extent of how complicated Janova gets. They are currently giving away 30-day free trials on the website so it's definitely worth a look just to see how it works. There aren't any downloads necessary and you don't need to give any billing information for your free trial. If you like what you see, be sure to pass on the word. Thanks, Lusey -- 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.comwatir-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
Re: [wtr-general] Created a gem 'watir_helper' for making Automation Testing Simpler and Easier
Hi Željko, Thanks for your precious comments. Well i don't know so much about Watir Simple but through my gem 'watir_helper' following things are easy :- 1.)Pop-up handling is easy because you don't have to write three to four lines of code. 2.)Provided very useful validations used very much in Automation Testing for e.g e-mail validation,date in different formats and so on. These things may not be helpful for you but i think it will be useful for a large number of Automation Testers. Just want to share the following thing with all also :- One of the most important thing is you don't have to install AutoIt in general for pop-up handling.There is an AutoItX3.dll which comes in every Watir gem , you just have to register this .dll file.I have shown it in my readme.txt file on github that how can you register this file. Please do revert for your precious comments/suggestions. Thanks Regards, Ankur Gera On Fri, Mar 26, 2010 at 3:04 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Mar 25, 2010 at 12:40 PM, Ankur Gera ankurg...@gmail.com wrote: I have created a gem 'watir_helper' for making Automation Testing Simpler and Easier. Hi Ankur, Thanks for letting us know. A long time ago we had something similar, I think it was called Watir Simple, but nobody used it. I personally do not see a need for your code, but maybe you will help somebody else. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir 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. 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.comwatir-general%2bunsubscr...@googlegroups.com To unsubscribe from this group, send email to watir-general+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 To unsubscribe from this group, send email to watir-general+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [wtr-general] Re: Not able to access Dojo controls
Hi Betsy, Try to use the following code and let me know whether it works fine or not. * ie.text_field(:xpath,//fo...@id='stockEnq_loadDetails']/inp...@name='inputFromDate']).flash ie.text_field(:xpath,//fo...@id='stockEnq_loadDetails']/inp...@name='inputFromDate']).set xyz * Thanks Regards, Ankur Gera TCS -- 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
Re: [wtr-general] Re: Close function of watir 1.6.5 not working fine
Hi Tiffany, After closing manually IE browser i got the following error message :- *c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:402:in `method_missing': unknown property or method `hw nd' (WIN32OLERuntimeError) HRESULT error code:0x80010108 The object invoked has disconnected from its clients. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/wati r/ie-class.rb:402:in `close' * Sorry for the inconvenience!!! Please let me know if u need further any more info. Thanks Regards, Ankur Gera TCS On Tue, Jan 12, 2010 at 4:15 AM, Tiffany Fodor tcfo...@comcast.net wrote: Hi Ankur! What do you mean by the close function doesn't work fine. Please include the error message and behavior you're seeing to help in troubleshooting the problem. Thanks! -Tiffany On Jan 11, 4:02 am, Ankur Gera ankurg...@gmail.com wrote: Hi All, When i run the below code close function of watir 1.6.5 doesn't work fine after handling a pop-up.But of watir 1.6.2 work fine in the same situation. I would request to the Watir developers please resolve this problem. require 'watir' require 'rubygems' require 'win32ole' require 'C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\watir-1.6.2\\lib\\watir\\ie-class' #Note:- I have used the above require line because close function of Watir 1.6.5 was not working fine after handling a pop-up. $ie=Watir::IE.new $ai=WIN32OLE.new(AutoItX3.Control) $ie.goto(http://www.google.com/;) $ie.textfield(:name,q).set(Ruby) $ie.button(:name,btnG).click $ie.goto(http://www.autoitscript.com/autoit3/downloads.shtml;) $ie.image(:src,/download_autoit/).click_no_wait $ai.WinWait(File Download - Security Warning,,30) $ai.WinActivate(File Download - Security Warning) $ai.ControlClick(File Download - Security Warning,,Save) $ai.WinWait(Save As,,30) $ai.WinActivate(Save As) $ai.ControlSend(Save As,,Edit1, C:\AutoItV3.exe) $ai.ControlClick(Save As,,Save) $ie.close #Here at this place watir 1.6.5 close function doesn't work fine after handling the above pop-up but close function of watir 1.6.2 works fine in the same situation. For more information please check source code of close functions of both the versions(1.6.5 and 1.6.2) of Watir through this path :- C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\lib\watir\ie-class.rb C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb Thanks Regards, Ankur Gera TCS -- 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 -- 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
[wtr-general] ie.close function of watir-1.6.5 version is not working fine after handling a pop-up
Hi, ie.close function of watir-1.6.5 version is not working fine after handling a pop-up but ie.close function of watir-1.6.2 is working fine after handling a pop-up. For more details please check source code of following :- C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\lib\watir\ie-class.rb C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb Thanks Regards, Ankur Gera TCS -- 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
[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows
Hi Pallavi, Try to use the code which i provided for handling pop-up's through AutoIt. Thanks Regards, Ankur Gera TCS --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows
Hi Pallavi, Below is the respective code :- require 'watir' require 'win32ole' #Supply AutoItX3 as an argument to the constructor of WIN32OLE #for handling pop-up windows using WIN32OLE objects.WIN32OLE will act as an interface #for handling pop-up windows using AutoItX3 functions. ai = WIN32OLE.new(AutoItX3.Control) #New IE Browser window ie=Watir::IE.new #Go to AutoIt website ie.goto(http://www.autoitscript.com/autoit3/downloads.shtml;) #Click Download AutoIt image ie.image(:src,/download_autoit/).click_no_wait #Wait for the pop-up window with the specified title supplied to come res=ai.WinWait(File Download - Security Warning,,30) puts res #Used for debugging purpose #Always try to Activate the pop-up window before using ControlClick fn() res=ai.WinActivate(File Download - Security Warning) puts res #Used for debugging purpose #Click on the specified control on the pop-up window res=ai.ControlClick(File Download - Security Warning,,Save) puts res #Used for debugging purpose puts\n #Place the cursor on the next line #Wait for the pop-up window with the specified title supplied to come res=ai.WinWait(Save As,,30) puts res #Used for debugging purpose #Always try to Activate the pop-up window before using ControlClick fn() res=ai.WinActivate(Save As) puts res #Used for debugging purpose #Send the path in the pop-up window where you want to store the respective file res=ai.ControlSend(Save As,,Edit1, C:\AutoItV3.exe) puts res #Used for debugging purpose #Click on the specified control on the pop-up window res=ai.ControlClick(Save As,,Save) puts res #Used for debugging purpose #Close the IE Browser window ie.close Thanks Regards, Ankur Gera TCS --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows
Hi Pallavi, Use the AutoIt software(AutoIt Window Info) , you will get the info about class of that pop-up window.What i have seen is that , this class remains constant for almost all of the pop-up's , try to use this as an argument in place of title. Thanks Regards, Ankur Gera TCS --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows
Hi Pallavi, Welcome. Thanks Regards, Ankur Gera TCS --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Platforms
Hi Željko, Gr8 Job Thanks Regards, Ankur Gera TCS --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Need help checking a box in a table in an iframe
Hi Rollo, In these kind of situations you can use xpath also bcz there can any number of elements whose html will seems to be similar. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: FireWatir works in IRB not in script
Hi Brad, John is absolutely right.I have faced the similar issue in the past for IE also and get resolved it by adding the statement which John has provided here.You can search for the similar error on google then you will get the same solution. Thanks Regards, Ankur Gera TCS --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to identify new IE browser windows
Hi, Just try to use *click_and_wait* function at the fourth line of your code as shown below: browser.link(:text, 'PartnerName').*click_and_wait* Please let me know if u further face any issue. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: WATIR WITH QC INTEGRATION
Hi Kumar, Can u plz provide the code for connecting Watir with QC. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: javascript
Hi Kumar, You can use the following code with the changes according to ur pop-up window: ai = WIN32OLE.new(AutoItX3.Control) ai.WinWait(File Download, , 5) //Here the first argument is the Title of pop-up window and thrid is the waiting time ai.ControlFocus(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel ai.ControlClick(File Download, , Open) //First argument is same as described above,Third option for you can be OK or Cancel For further help please revert back. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: javascript
Hi Kumar, Then you can use the function GUICtrlGetState for getting info of the state of the required button. But you have to use autoit for accessing the pop-up and its controls as i have described in my previous mail of how to use it. For further help please revert back. Thanks Regards, Ankur Gera --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---