Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir
http://stackoverflow.com/questions/3861871/can-i-use-watir-to-scrape-data-from-a-website-on-a-linux-server-without-monitor http://stackoverflow.com/questions/3859769/full-and-true-automation-with-watir-and-autoit -- 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] Re: Watir 1.6.6 final released
Thanks for your all great work! Just ran my sample test suite with v1.6.6, it cuts the execution time from 5 minutes to 3 minutes! Regards, Zhimin Zhan -- http://testwisely.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] Registering the Watir autoit .dll control without local admin?
Hi, I was wondering if anyone knows how to get Watir to work with dialog boxes without being able to register the autoit .dll file? (regsvr32 AutoItX3.dll does not work) Basically we have no access to update the registry and everything works in watir besides the dialogs that autoit handles. Any ideas? Cheers, Alister Scott -- 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] Watir Podcast #37: Jeff Lusenhop on Janova
Charley and I talk with Jeff on Janova (part 1 of 3): http://watirpodcast.com/37-jeff-lusenhop-on-janova/ http://twitter.com/#!/watirpodcast/status/26444373519 Feel free to spread the word and comment (here, at watirpodcast.com or at Twitter). :) Ž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
[wtr-general] Question on Sendkeys XPATH
Hi All, Im new to Watir, coming from a QTP background. I'm using the following Ruby 1.8.7, Rubygems 1.3.6, Watir 1.6.6 on a Windows 7 X64 system. I happen to need to run multiple 'modules' at the same time on 1 box. Would it be possible to implement a separate instance of 'send_keys' per each run? If the 'modules' happen to use 'sendkeys' at the same time, the whole script gets messed up (focus, typing and sending on the wrong browser). I was also looking at XPATH to avoid using sendkeys (trying to click actual objects); but I am stumped with the syntax to get it working.. please help? Like with and without regex methods please. b.element_by_xpath(// i...@class='CreateRequestComboContainerRightImageCell']/).click b.image(:xpath, // i...@class='CreateRequestComboContainerRightImageCell']/).click None of them seem to get the desired result; (I'm assuming this for instances that I wont be able to get a unique id or name) Here is a sample structure: td class=CreateRequestComboContainerRightImageCell id=Master_PageContentPlaceHolder_screen_ctl01_bc8ee8e9_1efe_463b_9e46_780e216598f1_screen_jobTitleCombo_ContainerRightImageCell jQuery1286272679885=60 img class=CreateRequestComboRightImage id=Master_PageContentPlaceHolder_screen_ctl01_bc8ee8e9_1efe_463b_9e46_780e216598f1_screen_jobTitleCombo_RightImage src=/XXX/Theme/AttachmentHandler.ashx? Parameter=Theme.ControlImages.XComboSelectorDropDown complete=complete/ -- 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] Re: Watir installation errors
It did not help avoiding the domain name :-( I tried the below: Installed ruby 1.9.2 using rubyinstaller-1.9.2-p0.exe Then... C:\ InstallFilesgem install win32-api-1.4.5-x86-mswin32-60.gem C:\ InstallFilesgem install windows-pr-1.0.8.gem This installed the below gems: 1. windows-api-0.4.0 2. windows-pr-1.0.8 C:\InstallFiles gem install win32-process-0.6.1.gem C:\InstallFiles gem install activesupport-2.2.3.gem C:\InstallFiles gem install watir-1.6.5.gem This installed the below gems: 1. xml-simple-1.0.12 2. json_pure-1.4.6 3. rubyforge-2.0.4 4. hoe-2.6.2 5. s4t-utils-1.0.4 6. builder-2.1.2 7. user-choices-1.1.6.1 8. commonwatir-1.6.5 9. firewatir-1.6.5 10. nokogiri-1.4.3.1-x86-mingw32 11. watir-1.6.5 All installed successfully. But an error crops up moment I try to create instance of IE as require 'Watir' ie=Watir::IE.new The error says: This application has failed to start becuase msvcrt-ruby18.dll was not found. Re-installing the application may fix this problem I uninstalled ruby, deleted Ruby192 folder and freshly installed all the abover components. This time with --platform=ruby option as suggested on the stackoverflow.com but the error still persists. Please guide. On Oct 1, 7:03 pm, Charley Baker charley.ba...@gmail.com wrote: You'll want to use Ruby 1.8.6 or 1.8.7. If you have true IE modal_dialogs (called in the source as showModalDialog, ask your devs if you use these) in your application then stick with 1.8.6, otherwise 1.8.7 seems to work for everything else. You're close on the proxy settting, but skip the domain, this might help: http://stackoverflow.com/questions/4418/how-do-i-update-ruby-gems-fro... Charley Baker Lead Developer, Watir,http://watir.com On Fri, Oct 1, 2010 at 6:46 AM, sam neu2...@gmail.com wrote: Hello, I am trying to install watir on a Windows XP PC. I could install ruby and check gem version as: C:\gem -v 1.3.7 #Next I tried: C:\gem update --system #I got the below response: Updating RubyGems ERROR: http://rubygems.org/does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo: No such host is known. (http:// rubygems.org/yaml) #My Ruby version shown is: C:\ruby -v ruby 1.9.2p0 (2010-08-18) [i386-mingw32] #Then I tried: C:\gem update --system -phttp://proxy.companyserver.com:8080 #The response was: Updating RubyGems ERROR: http://rubygems.org/does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Proxy Authentication Required ( The ISA Server requires authori zation to fulfill the request. Access to the Web Proxy filter is denied. ) 407 (http://rubygems.org/yaml) #Then I tried: C:\gem update --system -phttp://domain\user:passw...@proxy.companyserver.com:8080 #The response was: ERROR: While executing gem ... (OptionParser::InvalidArgument) invalid argument: -phttp://domain\user:passw...@proxy.companyserver.com:8080 #Normally I specify domain\username while loggin to the proxy for internet. Is \ a problem? #My password has special character #. Is this any issue? #I went through many posts on watirinstallationbut could not find one that totally matches thiserror. Please guide. I am new to ruby/ watir. -- 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- Hide quoted text - - Show quoted text - -- 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] Re: Watir installation errors
The above mentioned gems were manually downloaded from Rubyforge.org On Oct 5, 4:58 pm, sam neu2...@gmail.com wrote: It did not help avoiding the domain name :-( I tried the below: Installed ruby 1.9.2 using rubyinstaller-1.9.2-p0.exe Then... C:\ InstallFilesgem install win32-api-1.4.5-x86-mswin32-60.gem C:\ InstallFilesgem install windows-pr-1.0.8.gem This installed the below gems: 1. windows-api-0.4.0 2. windows-pr-1.0.8 C:\InstallFiles gem install win32-process-0.6.1.gem C:\InstallFiles gem install activesupport-2.2.3.gem C:\InstallFiles gem install watir-1.6.5.gem This installed the below gems: 1. xml-simple-1.0.12 2. json_pure-1.4.6 3. rubyforge-2.0.4 4. hoe-2.6.2 5. s4t-utils-1.0.4 6. builder-2.1.2 7. user-choices-1.1.6.1 8. commonwatir-1.6.5 9. firewatir-1.6.5 10. nokogiri-1.4.3.1-x86-mingw32 11. watir-1.6.5 All installed successfully. But an error crops up moment I try to create instance of IE as require 'Watir' ie=Watir::IE.new The error says: This application has failed to start becuase msvcrt-ruby18.dll was not found. Re-installing the application may fix this problem I uninstalled ruby, deleted Ruby192 folder and freshly installed all the abover components. This time with --platform=ruby option as suggested on the stackoverflow.com but the error still persists. Please guide. On Oct 1, 7:03 pm, Charley Baker charley.ba...@gmail.com wrote: You'll want to use Ruby 1.8.6 or 1.8.7. If you have true IE modal_dialogs (called in the source as showModalDialog, ask your devs if you use these) in your application then stick with 1.8.6, otherwise 1.8.7 seems to work for everything else. You're close on the proxy settting, but skip the domain, this might help: http://stackoverflow.com/questions/4418/how-do-i-update-ruby-gems-fro... Charley Baker Lead Developer, Watir,http://watir.com On Fri, Oct 1, 2010 at 6:46 AM, sam neu2...@gmail.com wrote: Hello, I am trying to install watir on a Windows XP PC. I could install ruby and check gem version as: C:\gem -v 1.3.7 #Next I tried: C:\gem update --system #I got the below response: Updating RubyGems ERROR: http://rubygems.org/doesnot appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo: No such host is known. (http:// rubygems.org/yaml) #My Ruby version shown is: C:\ruby -v ruby 1.9.2p0 (2010-08-18) [i386-mingw32] #Then I tried: C:\gem update --system -phttp://proxy.companyserver.com:8080 #The response was: Updating RubyGems ERROR: http://rubygems.org/doesnot appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Proxy Authentication Required ( The ISA Server requires authori zation to fulfill the request. Access to the Web Proxy filter is denied. ) 407 (http://rubygems.org/yaml) #Then I tried: C:\gem update --system -phttp://domain\user:passw...@proxy.companyserver.com:8080 #The response was: ERROR: While executing gem ... (OptionParser::InvalidArgument) invalid argument: -phttp://domain\user:passw...@proxy.companyserver.com:8080 #Normally I specify domain\username while loggin to the proxy for internet. Is \ a problem? #My password has special character #. Is this any issue? #I went through many posts on watirinstallationbut could not find one that totally matches thiserror. Please guide. I am new to ruby/ watir. -- 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- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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: Watir installation errors
On Tue, Oct 5, 2010 at 1:58 PM, sam neu2...@gmail.com wrote: Installed ruby 1.9.2 using rubyinstaller-1.9.2-p0.exe This application has failed to start becuase msvcrt-ruby18.dll was not found. I think Watir does not work on Ruby 1.9. The error message says it could not find a file that looks to me is part of Ruby 1.8. Ž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
[wtr-general] Re: Watir 1.6.6 final released
Nice :) Are you using #click_no_wait extensively? Jarmo On Oct 5, 11:34 am, Zhimin zhiminz...@gmail.com wrote: Thanks for your all great work! Just ran my sample test suite with v1.6.6, it cuts the execution time from 5 minutes to 3 minutes! Regards, Zhimin Zhan --http://testwisely.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] Registering the Watir autoit .dll control without local admin?
Vapir has a good api for popup handling whose only external dependency is FFI. http://vapir.org/ http://github.com/vapir/vapir/wiki/modal-dialogs On Tue, Oct 5, 2010 at 06:14, Alister Scott alister.sc...@gmail.com wrote: Hi, I was wondering if anyone knows how to get Watir to work with dialog boxes without being able to register the autoit .dll file? (regsvr32 AutoItX3.dll does not work) Basically we have no access to update the registry and everything works in watir besides the dialogs that autoit handles. Any ideas? Cheers, Alister Scott -- 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] Question on Sendkeys XPATH
I think your html code is not enough for others to understand. Wesley. For life, the easier, the better. On Tue, Oct 5, 2010 at 7:10 PM, Taki Sama timothy...@gmail.com wrote: Hi All, Im new to Watir, coming from a QTP background. I'm using the following Ruby 1.8.7, Rubygems 1.3.6, Watir 1.6.6 on a Windows 7 X64 system. I happen to need to run multiple 'modules' at the same time on 1 box. Would it be possible to implement a separate instance of 'send_keys' per each run? If the 'modules' happen to use 'sendkeys' at the same time, the whole script gets messed up (focus, typing and sending on the wrong browser). I was also looking at XPATH to avoid using sendkeys (trying to click actual objects); but I am stumped with the syntax to get it working.. please help? Like with and without regex methods please. b.element_by_xpath(// i...@class='CreateRequestComboContainerRightImageCell']/).click b.image(:xpath, // i...@class='CreateRequestComboContainerRightImageCell']/).click None of them seem to get the desired result; (I'm assuming this for instances that I wont be able to get a unique id or name) Here is a sample structure: td class=CreateRequestComboContainerRightImageCell id=Master_PageContentPlaceHolder_screen_ctl01_bc8ee8e9_1efe_463b_9e46_780e216598f1_screen_jobTitleCombo_ContainerRightImageCell jQuery1286272679885=60 img class=CreateRequestComboRightImage id=Master_PageContentPlaceHolder_screen_ctl01_bc8ee8e9_1efe_463b_9e46_780e216598f1_screen_jobTitleCombo_RightImage src=/XXX/Theme/AttachmentHandler.ashx? Parameter=Theme.ControlImages.XComboSelectorDropDown complete=complete/ -- 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] Welcome Jarmo Pertman to the core Watir team
Welcome Pertman, another great guy! I think Watir will be more powerful and attractive! Wesley. For life, the easier, the better. On Mon, Sep 27, 2010 at 4:56 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Jarmo, welcome to the team! :) One comment inline. On Fri, Sep 24, 2010 at 11:26 PM, Charley Baker charley.ba...@gmail.com wrote: I'd recommend anyone doing Watir testing to also do a podcast with Zeljko +1 :) Ž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.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] Re: Object Repository gem
Hi Ivan, Is this any different than the repository you used here: http://groups.google.com/group/watir-general/browse_thread/thread/aa7ca79359e9fdb6/968e2555bf89d0fa?hl=enlnk=gstq=ObjectRepository#968e2555bf89d0fa I've been using this quite extensively and it's been great, especially since the :id attributes I rely on are being updated from time to time. -George On Oct 4, 12:02 pm, Ivan Kabluchkov ikabluch...@gmail.com wrote: It is useful if your application has many fields and always changing. And test file become clearer. For examples: Instead of browser.div(:id, content).table(:index, 1).cell(:index, 2).text_field(:class, required).set(Test Value) you can use repository.get(Awesome field).set(Test Value) If location of field will change then you can fix it in one repository file It is easy to organize Data Driven Testing If you use the Cucumber as testing framework it will be clear for all (developers, testers, managers, users): Given ... When user set Awesome field with Test Value Then ... where step definition will be When /^use set (.*) with (.*)$/ do |field, value| repository.get(field).set(value) end On 4 окт, 19:35, Ethan notet...@gmail.com wrote: Interesting, but.. what is it? What does it do, why is it useful? On Sun, Oct 3, 2010 at 04:58, Ivan Kabluchkov ikabluch...@gmail.com wrote: Hi Watir community! I've created gem which can work with object repository. For more information seehttp://github.com/lfidnl/watir-or/wiki I you have any quetion or problem reply to this thread -- 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
Re: [wtr-general] Question on Sendkeys XPATH
1) send_keys isn't going to work with two things trying to send_keys simultaneously. 2) send_keys is almost never a good solution, in my experience, doing through the dom via watir's api is better. 3) your xpath refers to an image with class of CreateRequestComboContainerRightImageCell but the thing that has that class is a table. 4) you don't really need xpath for this, watir's api is simpler: b.table(:class, 'CreateRequestComboContainerRightImageCell') will get the table and you can get the image inside that. On Tue, Oct 5, 2010 at 07:10, Taki Sama timothy...@gmail.com wrote: Hi All, Im new to Watir, coming from a QTP background. I'm using the following Ruby 1.8.7, Rubygems 1.3.6, Watir 1.6.6 on a Windows 7 X64 system. I happen to need to run multiple 'modules' at the same time on 1 box. Would it be possible to implement a separate instance of 'send_keys' per each run? If the 'modules' happen to use 'sendkeys' at the same time, the whole script gets messed up (focus, typing and sending on the wrong browser). I was also looking at XPATH to avoid using sendkeys (trying to click actual objects); but I am stumped with the syntax to get it working.. please help? Like with and without regex methods please. b.element_by_xpath(// i...@class='CreateRequestComboContainerRightImageCell']/).click b.image(:xpath, // i...@class='CreateRequestComboContainerRightImageCell']/).click None of them seem to get the desired result; (I'm assuming this for instances that I wont be able to get a unique id or name) Here is a sample structure: td class=CreateRequestComboContainerRightImageCell id=Master_PageContentPlaceHolder_screen_ctl01_bc8ee8e9_1efe_463b_9e46_780e216598f1_screen_jobTitleCombo_ContainerRightImageCell jQuery1286272679885=60 img class=CreateRequestComboRightImage id=Master_PageContentPlaceHolder_screen_ctl01_bc8ee8e9_1efe_463b_9e46_780e216598f1_screen_jobTitleCombo_RightImage src=/XXX/Theme/AttachmentHandler.ashx? Parameter=Theme.ControlImages.XComboSelectorDropDown complete=complete/ -- 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] Re: Object Repository gem
Hi George, thanks for using Yes there are some differents: 1. [ ] method was removed 2. XLS type of repository was added 3. Ability to create custom elements was implemented. More in: http://github.com/lfidnl/watir-or/wiki/Custom-element On 5 окт, 19:29, George george.sand...@gmail.com wrote: Hi Ivan, Is this any different than the repository you used here: http://groups.google.com/group/watir-general/browse_thread/thread/aa7... I've been using this quite extensively and it's been great, especially since the :id attributes I rely on are being updated from time to time. -George On Oct 4, 12:02 pm, Ivan Kabluchkov ikabluch...@gmail.com wrote: It is useful if your application has many fields and always changing. And test file become clearer. For examples: Instead of browser.div(:id, content).table(:index, 1).cell(:index, 2).text_field(:class, required).set(Test Value) you can use repository.get(Awesome field).set(Test Value) If location of field will change then you can fix it in one repository file It is easy to organize Data Driven Testing If you use the Cucumber as testing framework it will be clear for all (developers, testers, managers, users): Given ... When user set Awesome field with Test Value Then ... where step definition will be When /^use set (.*) with (.*)$/ do |field, value| repository.get(field).set(value) end On 4 окт, 19:35, Ethan notet...@gmail.com wrote: Interesting, but.. what is it? What does it do, why is it useful? On Sun, Oct 3, 2010 at 04:58, Ivan Kabluchkov ikabluch...@gmail.com wrote: Hi Watir community! I've created gem which can work with object repository. For more information seehttp://github.com/lfidnl/watir-or/wiki I you have any quetion or problem reply to this thread -- 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
[wtr-general] Re: Watir 1.6.6 final released
No, my test suite has only a few popup handler operations, from what I see, it is simply faster with v1.6.6. Zhimin On Oct 5, 10:51 pm, Jarmo Pertman jarm...@gmail.com wrote: Nice :) Are you using #click_no_wait extensively? Jarmo On Oct 5, 11:34 am, Zhimin zhiminz...@gmail.com wrote: Thanks for your all great work! Just ran my sample test suite with v1.6.6, it cuts the execution time from 5 minutes to 3 minutes! Regards, Zhimin Zhan --http://testwisely.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