Re: [wtr-general] c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- unittests/setup/lib (LoadError)
Hi Mark, Thanks for help. Indeed it was confusing because in the past I always run them to check if all have been installed properly. Have a nice day. Anna 2010/1/25 marekj > Sorry but unittests will not run from the installed gem. > To run the tests please git clone the repo from github and run the > tests as a developer. > I hope next release of the gem will not include unittests so it will > not confuse people. > > marekj > > Watirloo: Semantic Page Objects in UseCases > http://github.com/marekj/watirloo/ > Support Watir Project http://pledgie.com/campaigns/2982 > > > > On Sun, Jan 24, 2010 at 6:40 AM, anna barbara ostrowska > wrote: > > Hi > > When I try to run unittests >all_tests.rb there is following error > > > > C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.5\unittests>all_tests.rb > > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require': no such file to load -- unittests/setup/lib > > (LoadError) > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `require' > > from > > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/unittests/../unittests/setup.rb:21 > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require' > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require' > > > > from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/unittests/all_tests.rb:4 > > > > > > > > gem env > > RubyGems Environment: > > - RUBYGEMS VERSION: 1.3.5 > > - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > > - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 > > - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe > > - EXECUTABLE DIRECTORY: c:/ruby/bin > > - RUBYGEMS PLATFORMS: > > - ruby > > - x86-mswin32-60 > > - GEM PATHS: > > - c:/ruby/lib/ruby/gems/1.8 > > - C:/Documents and Settings/anostrow/.gem/ruby/1.8 > > - GEM CONFIGURATION: > > - :update_sources => true > > - :verbose => true > > - :benchmark => false > > - :backtrace => false > > - :bulk_threshold => 1000 > > - REMOTE SOURCES: > > - http://gems.rubyforge.org/ > > > > Many thanks, > > Anna > > > > > > > > > > > > -- > > 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 > -- 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] Firewatir & rpxnow
Hello all. I have a question regarding accessing the elements in remote-javascript generated content on a page. It would appear that these created elements are not accessible with firewatir at all. I tried both tagged elements and xpath, but no matches for elements within rpxnow's javascript-generated content can be found. Example : RPX now's "not you?" link ff.link(:class, "not_you").exists? # <-- should return true, but doesn't ff.span(:text, "not you?").exists? # <-- also false ff.link(:xpath, "//a...@class='not_you']/span").exists? # <-- Doesn't return true ff.link(:xpath, "//a...@class='not_you']/").exists? # <-- jSSH doesn't like this formatting on an xpath Is this a known problem, or am I just not doing it right? I am using Ruby 1.8.6 via Netbeans 6.8, Firewatir 1.6.5 and Firefox 3.0.17 -Toni -- 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: fire_event not fired in firewatir
do we have any update on this one? any one got it working? On Jan 19, 10:49 am, ad wrote: > I also have 1.6.5 on my machine. > > On Jan 19, 7:20 am, al3kc wrote: > > > I use firewatir 1.6.5 butfire_eventdoesn't work properly for me > > too. > > > I use the following cheat: > > > module FireWatir > > module Container > > WINDOW_VAR = "window" > > BROWSER_VAR = "browser" > > DOCUMENT_VAR = "document" > > BODY_VAR = "body" > > end > > end > > > and replace window_var and document_vat by WINDOW_VAR and > > DOCUMENT_VAR infire_eventmethod. -- 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] Issue with clicking submit in a site modal window
The site I am testing has a page where I if I click on a specific element I can modify its properties by opening a modal window. In the modal window I enter in the needed data then click submit using: browser.link(:class, "create_and_move_button").click The link is highlighted in yellow in the modal window but the link is not actually clicked (i.e the model never closes and the object's properties are not updated). I am using Safariwaitr. Has anyone else had this kind of issue? Thanks -- 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] Watir + Verify JSON Response
Hello, Yeh we can read the JSON response. if we have a JSON output from some URL. then we can check this one for more help on going about reading a json output in RUBY http://snippets.dzone.com/posts/show/6133 On 1/25/10, tester86 wrote: > Hi > > Using Watir is it possible to check the JSON response content to make > sure that I am getting the correct result. > > Example JSON Response > > Content > ID 9 > username t...@google.com > > > Thanks, > > -- > 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] Re: "File Download - Security Warning" popup
I have previously used solution 2 on http://wiki.openqa.org/display/WTR/File+Downloads for downloading files. You'd have to tweak it (e.g. for starters, change "File Download" to "File Download - Security Warning"; change "&Save" to "&Run"), but it should get you going in the right direction. Hope it helps. orde On Jan 25, 4:30 pm, capri wrote: > I replaced click with click_no_wait in my code..doesn't seem to work.. > just stalls at this point and doesnt proceed further to click the > 'Run' button of the file download - security warning window. any > thoughts on this? > > many thanks.. > > On Jan 23, 6:19 am, Arihan wrote: > > > > > Pls use clicknowait method .. It would work .. > > > Sent from my iPhone > > > On 22 Jan 2010, at 22:53, capri wrote: > > > > Hi, > > > > I tried the below code to identify "file download -security warning" > > > message using autoit in my watir script. However it does not seem to > > > work. I am trying to click the 'Run' button of this window. On > > > running the script, it gets struck and doesn't show any errors. Any > > > thoughts,inputs would be highly appreciated. > > > > many thanks. > > > > Code: > > > - > > > require 'watir' > > > require 'rubygems' > > > require 'win32ole' # to invoke Autoit controls > > > > ie=Watir::IE.new > > > autoit=WIN32OLE.new('AutoItX3.Control') > > > > ie.goto "http://www.cooliris.com"; > > > > ie.link(:html,/return InstallHelper.clickedDownload()/).click > > > > r=autoit.WinExists("File Download - Security Warning") > > > puts r > > > > res=autoit.WinWait("File Download - Security Warning",'',3) > > > puts res > > > res=autoit.WinActivate("File Download - Security Warning") > > > puts res > > > res=ie.autoit.ControlFocus("File Download - Security Warning","", > > > "&Run") > > > res=ie.autoit.ControlClick("File Download - Security > > > Warning","","&Run") > > > puts res > > > puts "\n" > > > > -- > > > 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 > > > athttp://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
Re: [wtr-general] Re: "File Download - Security Warning" popup
You can use the command for TAB & ENTER to focus in run or save button of u r warning window and get it clicked Sent from my iPhone On 26 Jan 2010, at 20:57, orde wrote: I have previously used solution 2 on http://wiki.openqa.org/display/WTR/File+Downloads for downloading files. You'd have to tweak it (e.g. for starters, change "File Download" to "File Download - Security Warning"; change "&Save" to "&Run"), but it should get you going in the right direction. Hope it helps. orde On Jan 25, 4:30 pm, capri wrote: I replaced click with click_no_wait in my code..doesn't seem to work.. just stalls at this point and doesnt proceed further to click the 'Run' button of the file download - security warning window. any thoughts on this? many thanks.. On Jan 23, 6:19 am, Arihan wrote: Pls use clicknowait method .. It would work .. Sent from my iPhone On 22 Jan 2010, at 22:53, capri wrote: Hi, I tried the below code to identify "file download -security warning" message using autoit in my watir script. However it does not seem to work. I am trying to click the 'Run' button of this window. On running the script, it gets struck and doesn't show any errors. Any thoughts,inputs would be highly appreciated. many thanks. Code: - require 'watir' require 'rubygems' require 'win32ole' # to invoke Autoit controls ie=Watir::IE.new autoit=WIN32OLE.new('AutoItX3.Control') ie.goto "http://www.cooliris.com"; ie.link(:html,/return InstallHelper.clickedDownload()/).click r=autoit.WinExists("File Download - Security Warning") puts r res=autoit.WinWait("File Download - Security Warning",'',3) puts res res=autoit.WinActivate("File Download - Security Warning") puts res res=ie.autoit.ControlFocus("File Download - Security Warning","", "&Run") res=ie.autoit.ControlClick("File Download - Security Warning","","&Run") puts res puts "\n" -- 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 athttp://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 -- 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] Firewatir & rpxnow
Why do you add the underline between "not" and "you"? If you want to skip the '?', you have to regular expression, like: ff.link(:class, /not you/).exists? Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 26, 2010 at 9:20 PM, Gimle wrote: > Hello all. I have a question regarding accessing the elements in > remote-javascript generated content on a page. It would appear that > these created elements are not accessible with firewatir at all. I > tried both tagged elements and xpath, but no matches for elements > within rpxnow's javascript-generated content can be found. > > Example : RPX now's "not you?" link > > ff.link(:class, "not_you").exists? # <-- should return true, but > doesn't > ff.span(:text, "not you?").exists? # <-- also false > ff.link(:xpath, "//a...@class='not_you']/span").exists? # <-- Doesn't > return true > ff.link(:xpath, "//a...@class='not_you']/").exists? # <-- jSSH doesn't > like this formatting on an xpath > > Is this a known problem, or am I just not doing it right? > > I am using Ruby 1.8.6 via Netbeans 6.8, Firewatir 1.6.5 and Firefox > 3.0.17 > > -Toni > > -- > 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
Re: [wtr-general] Firewatir & rpxnow
Can you post the HTML code? Also, is this link is inside the FRAME? On Tue, Jan 26, 2010 at 6:50 PM, Gimle wrote: > Hello all. I have a question regarding accessing the elements in > remote-javascript generated content on a page. It would appear that > these created elements are not accessible with firewatir at all. I > tried both tagged elements and xpath, but no matches for elements > within rpxnow's javascript-generated content can be found. > > Example : RPX now's "not you?" link > > ff.link(:class, "not_you").exists? # <-- should return true, but > doesn't > ff.span(:text, "not you?").exists? # <-- also false > ff.link(:xpath, "//a...@class='not_you']/span").exists? # <-- Doesn't > return true > ff.link(:xpath, "//a...@class='not_you']/").exists? # <-- jSSH doesn't > like this formatting on an xpath > > Is this a known problem, or am I just not doing it right? > > I am using Ruby 1.8.6 via Netbeans 6.8, Firewatir 1.6.5 and Firefox > 3.0.17 > > -Toni > > -- > 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