[wtr-general] Watir 1.6.5 and Ruby 1.9.1
Hi, I am trying to install Watir 1.6.5 on Ruby 1.9.1, but this is the issue. I am encountering: E:\gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. E:/Ruby19/bin/ruby.exe extconf.rb checking for strncpy_s()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=E:/Ruby19/bin/ruby E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generat e an executable file. (RuntimeError) You have to install development tools first. from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:419:in `try_link' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:527:in `try_func' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:772:in `block in have_func' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpo ne' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:in `open' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:in `open' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:270:in `postpone' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:771:in `have_func' from extconf.rb:9:in `main' Gem files will remain installed in E:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api- 1.4.5 for inspection. Results logged to E:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api-1.4.5/ext/gem_mak e.out Any suggestions? Aidy -- 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: execute js in IE8
Resorted to toggling active scripting def toggle_javascript_capability(is_capable, zone_id) regpath = Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\#{zone_id} puts regpath regvalue = '3' if is_capable then regvalue = '0' end Win32::Registry::HKEY_CURRENT_USER.open(regpath, Win32::Registry::KEY_WRITE) do |reg| reg['1400', Win32::Registry::REG_DWORD]= regvalue end end #js on (0..4).each { |zone| toggle_javascript_capability(true, zone) } #js off (0..4).each { |zone| toggle_javascript_capability(false, zone) } Need to close and re-start the browser though Aidy 2009/11/25 aidy lewis aidy.le...@googlemail.com: Ethan, Same thing, but good suggestion. I am not even sure of the differences between eval and execScript. Cheers Aidy 2009/11/25 Ethan notet...@gmail.com: Do you get the same thing if you try browser.document.parentWindow.eval(whatever) ? On Wed, Nov 25, 2009 at 13:26, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am trying to execute some js in IE8: browser.ie.document.parentWindow.execScript(window.confirm=function(){return true}); However, I am getting an 'Access denied' error when I have scripting allowed in my IE settings and I am on the same domain as the application server. Aidy --~--~-~--~~~---~--~~ 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: execute js in IE8
Ethan, Same thing, but good suggestion. I am not even sure of the differences between eval and execScript. Cheers Aidy 2009/11/25 Ethan notet...@gmail.com: Do you get the same thing if you try browser.document.parentWindow.eval(whatever) ? On Wed, Nov 25, 2009 at 13:26, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am trying to execute some js in IE8: browser.ie.document.parentWindow.execScript(window.confirm=function(){return true}); However, I am getting an 'Access denied' error when I have scripting allowed in my IE settings and I am on the same domain as the application server. Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
Angrez et al It is unlikely that we would want to get all cookies, but get cookies for a particular uri. browser.get_cookies('www.google.com') How about remove_cookies(:domain = 'domain') remove_cookies(:all) add_cookie is good. Aidy 2009/11/19 Angrez Singh ang...@gmail.com: Bret proposed the following syntax or method names via Google Wave, so we should stick to this: Browser#cookies (get cookies as ruby array of hashes) Browser#add_cookie(opts) where opts is a hash of :name, :value, :path, :secure and :name/:value will raise ArgumentError if not supplied Browser#remove_cookie(opts) where opts is a hash of :domain and :name Browser#remove_all_cookies or Browser#remove_cookie(:all)? Thanks, Angrez On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.com wrote: Ethan 2009/11/18 aidy lewis aidy.le...@googlemail.com: Going to put the URI in, for #read_cookies or something 2009/11/18 Ethan notet...@gmail.com: That seems to be lacking the URI to set the cookie on. Would the method just infer that from the current location of the browser, or should that be be configurable by the user? I was lazily reading. I think the default will be the current uri unless specified. WDYT? Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
How about this browser.get_cookies(:domain = 'domain') browser.get_cookies(:all) browser.remove_cookies(:domain = 'domain') remove_cookies(:all) ? Aidy 2009/11/19 aidy lewis aidy.le...@googlemail.com: Angrez et al It is unlikely that we would want to get all cookies, but get cookies for a particular uri. browser.get_cookies('www.google.com') How about remove_cookies(:domain = 'domain') remove_cookies(:all) add_cookie is good. Aidy 2009/11/19 Angrez Singh ang...@gmail.com: Bret proposed the following syntax or method names via Google Wave, so we should stick to this: Browser#cookies (get cookies as ruby array of hashes) Browser#add_cookie(opts) where opts is a hash of :name, :value, :path, :secure and :name/:value will raise ArgumentError if not supplied Browser#remove_cookie(opts) where opts is a hash of :domain and :name Browser#remove_all_cookies or Browser#remove_cookie(:all)? Thanks, Angrez On Wed, Nov 18, 2009 at 10:16 PM, aidy lewis aidy.le...@googlemail.com wrote: Ethan 2009/11/18 aidy lewis aidy.le...@googlemail.com: Going to put the URI in, for #read_cookies or something 2009/11/18 Ethan notet...@gmail.com: That seems to be lacking the URI to set the cookie on. Would the method just infer that from the current location of the browser, or should that be be configurable by the user? I was lazily reading. I think the default will be the current uri unless specified. WDYT? Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
Angrez, Sounds good. Would you like me to write them? I can either push them to my fork or just email them to you. I will be just doing the FireWatir ones, as I am unsure on what method we should use for Watir. Will start with and include tests. Aidy 2009/11/18 Angrez Singh ang...@gmail.com: How about this: browser.set_cookie(:name = name, :value = value) browser.delete_cookie(:name = name) browser.delete_all_cookies() I want these methods to be with Browser as cookies are related to browser. Thoughts? - Angrez On Wed, Nov 18, 2009 at 12:28 AM, Bret Pettichord b...@pettichord.com wrote: Please make a proposal for the method names and parameters. Here is what we have for IE right now. http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb I've never used it. I would like to hear from some people who have. What functionality do you use the cookiemanager for? Bret Angrez Singh wrote: Yes, I have seen that preety interesting stuff. Need to see what all we can make into FireWatir. On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: have you seen this by Matt http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment ? Aidy 2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com: thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com mailto:ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com mailto:aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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: Delete cookies in Firewatir
have you seen this by Matt http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment ? Aidy 2009/11/17 Angrez Singh ang...@gmail.com: thats what I am waiting for method names. Let me discuss with Bret and will let you know you can go ahead and put these methods there. - Angrez On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis aidy.le...@googlemail.com wrote: Are you going to take this up then, otherwise I can do it, if you provide your preferred method names. Not sure how we are going to do it in Watir though. Aidy 2009/11/17 Angrez Singh ang...@gmail.com: :) correct thats the approach. Was discussing with Bret the syntax, method names so that its consistent with IE and FF. - Angrez On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Have you included cookie manipulation methods in FireWatir yet? If not I was think of using the Mozilla Classes https://developer.mozilla.org/en/Code_snippets/Cookies Thanks Aidy --~--~-~--~~~---~--~~ 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 Help
This missing 'a's were a problem with an older version of Cucumber and the parser on win32. This is an old example I wrote some time ago http://code.google.com/p/cucumber-and-watir Aidy 2009/11/10 Wesley Chen cjq@gmail.com: That's funny. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Nov 10, 2009 at 5:15 AM, Ethan notet...@gmail.com wrote: Somebody seems to be stealing all of your letters 'a'. Watir needs these, otherwise it's just 'wtir', and lacking the 'application' part can't do anything. I suggest you hire a privte detective to track down where all of your 'a's are disappearing to. The police are no help with this sort of thing - they have no 'a' in their name, and don't care. On Mon, Nov 9, 2009 at 15:29, tester86 sagar.am...@gmail.com wrote: Using cucumber and watir - Vista and Windows 7 Get the following error message: Unble to locte element, using :nme, q (Wtir::Exception::UnknownObjectException) ./fetures/step_definitions/serch_steps.rb:11:in `/I serch for (.*)/'fetures/serch.feture:8:in `When I serch for cucumber github' Then I should see BDD tht tlks to domin experts first nd code second # fet ures/step_definitions/serch_steps.rb:15 Anyone have any basic watir scripts that I can use with cucumber --~--~-~--~~~---~--~~ 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: Working on Chrome watir
Sai, Jarib, Would it not be an idea to put Chrome and Firewatir on top of WebDriver, to avoid duplication of browser access methods with all that entails? Aidy 2009/11/7 sai saidesertrose2...@gmail.com: Sorry for the delay guys... I am still working on the fix. Got delayed in setting up the environment in my new box. Will post soon on updates Regards, Sai On Nov 6, 8:06 pm, Mark Mckim mark.mc...@gmail.com wrote: Ah right ok, that's brilliant. Thanks for your very speedy response. I'll check back at a later date. Thanks again. Mark 2009/11/6 Željko Filipin zeljko.fili...@wa-research.ch On Fri, Nov 6, 2009 at 1:00 PM, Mark Mckim mark.mc...@gmail.com wrote: Any ideas as to how i can resolve this? I think due to recent change in Chrome, ChromeWatir is no longer working. Sai said he will fix it soon. Željko --~--~-~--~~~---~--~~ 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: Slightly OT: using two ie objects for execScript
I was wondering whether it was a good idea to have an ie attribute in an IE class? Aidy 2009/11/3 Ethan notet...@gmail.com: you are not using two Watir::IE objects there. I assume you are referring to the ie.ie - the first ie is the local variable 'ie' which is an instance of Watir::IE. the second is the #ie method of Watir::IE, which returns the win32ole object representing the browser. On Tue, Nov 3, 2009 at 10:43, aidy lewis aidy.le...@googlemail.com wrote: Hi, Does anyone know why I need to use two ie objects here? http://pastie.org/681645 http://pastie.org/681647 Aidy --~--~-~--~~~---~--~~ 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] Slightly OT: using two ie objects for execScript
Hi, Does anyone know why I need to use two ie objects here? http://pastie.org/681645 http://pastie.org/681647 Aidy --~--~-~--~~~---~--~~ 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] OT: Syntax highlighing for Cucumber features in Notepad++
The file is attached --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- NotepadPlus UserLang name=Features ext=feature Settings Global caseIgnored=no / TreatAsSymbol comment=no commentLine=no / Prefix words1=no words2=no words3=no words4=no / /Settings KeywordLists Keywords name=Delimiters/Keywords Keywords name=Folder+/Keywords Keywords name=Folder-/Keywords Keywords name=Operators:/Keywords Keywords name=Comment/Keywords Keywords name=Words1Feature/Keywords Keywords name=Words2Given When Then And/Keywords Keywords name=Words3Scenario/Keywords Keywords name=Words4/Keywords /KeywordLists Styles WordsStyle name=DEFAULT styleID=11 fgColor=00 bgColor=FF fontName=Verdana fontStyle=0 fontSize=9 / WordsStyle name=FOLDEROPEN styleID=12 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=FOLDERCLOSE styleID=13 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=KEYWORD1 styleID=5 fgColor=FF bgColor=FF fontName=Arial Black fontStyle=0 fontSize=12 / WordsStyle name=KEYWORD2 styleID=6 fgColor=008000 bgColor=FF fontName=Consolas fontStyle=2 fontSize=12 / WordsStyle name=KEYWORD3 styleID=7 fgColor=FF bgColor=FF fontName=Arial fontStyle=3 fontSize=12 / WordsStyle name=KEYWORD4 styleID=8 fgColor=004040 bgColor=FF fontName= fontStyle=0 / WordsStyle name=COMMENT styleID=1 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=COMMENT LINE styleID=2 fgColor=00 bgColor=FF fontName= fontStyle=0 fontSize=9 / WordsStyle name=NUMBER styleID=4 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=OPERATOR styleID=10 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=DELIMINER1 styleID=14 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=DELIMINER2 styleID=15 fgColor=00 bgColor=FF fontName= fontStyle=0 / WordsStyle name=DELIMINER3 styleID=16 fgColor=00 bgColor=FF fontName= fontStyle=0 / /Styles /UserLang /NotepadPlus
[wtr-general] IE8 Developer tools
IE8 has Developer tools, so we do not need to download extraneous tools. Press F12 and then clicking on the far-left hand arrow will allow you to select and read HTML elements Aidy --~--~-~--~~~---~--~~ 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: Basic authentication on Linux with FireWatir
Angrez, Is that code on github though? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~-~--~~~---~--~~ 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: Basic authentication on Linux with FireWatir
What file and methods should I be looking at? Thanks Aidy 2009/10/28 Angrez Singh ang...@gmail.com: Its in my fork on github. You can have a look. - Angrez On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Is that code on github though? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~-~--~~~---~--~~ 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: Basic authentication on Linux with FireWatir
Sorry Angrez But where is the getWindows method coming from? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: firefox.rb file contains code for basic authentication. On Wed, Oct 28, 2009 at 10:42 PM, aidy lewis aidy.le...@googlemail.com wrote: What file and methods should I be looking at? Thanks Aidy 2009/10/28 Angrez Singh ang...@gmail.com: Its in my fork on github. You can have a look. - Angrez On Wed, Oct 28, 2009 at 7:31 PM, aidy lewis aidy.le...@googlemail.com wrote: Angrez, Is that code on github though? Aidy 2009/10/28 Angrez Singh ang...@gmail.com: I have added the basic authentication mechanism to Firewatir. Its not yet released. Me Bret need to finalize on the syntax, method name etc so that its easier to use both with Watir/Firewatir. - Angrez On Wed, Oct 28, 2009 at 10:28 AM, Raveendran P jazzezr...@gmail.com wrote: Hi Aedorn, I got some idea's from Selenium.I implemented it in my Watir scripts. Have you tried this way? -- http://bit.ly/21zDrH Awaiting your reply Thanks On Wed, Oct 28, 2009 at 6:03 AM, Ethan notet...@gmail.com wrote: Yeah, you should be able to get a handle to the window where you enter username/password, get the text fields on that window, set them, click the 'ok' button. That'd all be in javascript over the jssh socket. On Tue, Oct 27, 2009 at 20:28, aidy lewis aidy.le...@googlemail.com wrote: The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~-~--~~~---~--~~ 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: Basic authentication on Linux with FireWatir
Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? --~--~-~--~~~---~--~~ 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: Basic authentication on Linux with FireWatir
The Firefox browser is completly scriptable. I would suggest looking at the Mozilla js classes. 2009/10/27 Chris christopher.mcma...@gmail.com: I looked into this a long time ago, and there is no way to persist a Basic Auth session in a browser. You have to have credentials for every page request and every frame within every page. I was hacking around deep in the guts of Watir trying to make this work and failed. Nor do I know of any other tool that makes this possible. There might be something fancy you could do in multiple libraries used by Watir, buiret I did not have that kind of mandate. I suggest a well-designed set of manual tours. -Chris On Oct 27, 1:53 pm, Aedorn Varanis aed...@gmail.com wrote: This doesn't really solve the problem. On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis aidy.le...@googlemail.comwrote: Can you not set your trusted uri's in about:config network.automatic-ntlm-auth.trusted-uris ? Aidy 2009/10/27 Aedorn Varanis aed...@gmail.com: I took a look around but it doesn't like there's any answer to this. I've recently been tasked to automate testing of a product, and the only thing I can't seem to solve is basic authentication, which is rather funny to me, but not so much to those who are waiting on this being done. So how can one go about doing basic authentication with FireWatir/Firefox on Linux currently? --~--~-~--~~~---~--~~ 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: cannot register window class in IE8
Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? Aidy -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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: cannot register window class in IE8
Jason, Looks like the fireshot plugin for IE. Aidy 2009/10/22 Jason Trebilcock jason.trebilc...@gmail.com: Couple of thoughts in the following: http://www.microsoft.com.nsatc.net/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.internetexplorer.betatid=77003381-d793-4236-a6a6-5466c779b85dcat=lang=cr=sloc=p=1 In a nutshell, three potential options: 1. Ctrl-F5 2. Delete temporary internet files 3. Disable Fireshot plugin in FF and try again On Thu, Oct 22, 2009 at 11:38 AM, aidy lewis aidy.le...@googlemail.com wrote: Hi Bret, I am getting an unspecified WIN32OLERuntimeError. Not much information, I know. Aidy 2009/10/22 Bret Pettichord b...@pettichord.com: I haven't heard of this. Can your provide a stack trace and complete error message? Bret aidy lewis wrote: Hi, Has anyone received 'cannot register window class' errors when running Watir tests in IE8? Aidy -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --~--~-~--~~~---~--~~ 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] Advanced Firewatir
Matt Ellis has blogged has experiences with the jssh, Mozilla classes and FireWatir http://tinyurl.com/ykarwvv Aidy --~--~-~--~~~---~--~~ 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: Disable java script of firefox through Ruby+watir
Using the mozilla component classes you could set javascript.enabled to equal true Aidy 2009/10/15 arihan sinha arihan.si...@googlemail.com: Hi All, Is there any way to disable java script of IE/Firefox through ruby+watir? Thanks Arihan --~--~-~--~~~---~--~~ 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: Disable java script of firefox through Ruby+watir
I meant false ## From Matt Ellis ## Not tested def set_bool_preference(key, value) jssh_command = var prefs = Components.classes[\@mozilla.org/preferences-service;1\].getService(Components.interfaces.nsIPrefBranch); jssh_command += prefs.setBoolPref(\#{key}\, #{value}); $jssh_socket.send(#{jssh_command}\n, 0) read_socket() end @browser.set_bool_preference(javascript.enabled, false) Aidy Aidy 2009/10/15 aidy lewis aidy.le...@googlemail.com: Using the mozilla component classes you could set javascript.enabled to equal true Aidy 2009/10/15 arihan sinha arihan.si...@googlemail.com: Hi All, Is there any way to disable java script of IE/Firefox through ruby+watir? Thanks Arihan --~--~-~--~~~---~--~~ 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: how to ALT+Shift+T ?
If you are trying to change IE options would it not be better to alter the registry settings? Aidy 2009/10/15 Paul Rogers paul.rog...@shaw.ca: you'll have to use autoit. This page has the key combinations http://www.autoitscript.com/autoit3/docs/functions/Send.htm Paul On Thu, Oct 15, 2009 at 10:36 AM, Andrew andrew.d...@lthree.com wrote: I know this is probably easy. How do you send the key combination ALT- Shift-T to the browser? Andy --~--~-~--~~~---~--~~ 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: Does anyone have examples of using rspec with safariwatir
Hi, If there were better examples, then I wouldn't have to re-write them. Your comments should have been taken off-line. Aidy On 13/10/2009, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis aidy.le...@googlemail.com wrote: I have written a new example here: http://wiki.openqa.org/display/WTR/RSpec Aidy, I appreciate your contribution, but you broke Tutorial navigation. Go to contents, previous, next page. text at the bottom of the page helps users to follow the tutorial. I have fixed it. Please be more careful the next time. Željko --~--~-~--~~~---~--~~ 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: Does anyone have examples of using rspec with safariwatir
Hi, If there were better examples, then I wouldn't have to re-write them. Your comments should have been taken off-line. Aidy On 13/10/2009, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis aidy.le...@googlemail.com wrote: I have written a new example here: http://wiki.openqa.org/display/WTR/RSpec Aidy, I appreciate your contribution, but you broke Tutorial navigation. Go to contents, previous, next page. text at the bottom of the page helps users to follow the tutorial. I have fixed it. Please be more careful the next time. Željko --~--~-~--~~~---~--~~ 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: Does anyone have examples of using rspec with safariwatir
Hi, Cucumber or Rspec? I will add to zeljko's link today. The example doesn't even use matchers. Richard Downie has a Waitr\Cucumber example here: http://wiki.github.com/aslakhellesoy/cucumber/watircuke, but I don't agree with his approach. Aidy 2009/10/9 Željko Filipin zeljko.fili...@wa-research.ch: On Fri, Oct 9, 2009 at 5:22 AM, yuping zhong littlezhong...@gmail.com wrote: Where can we get the video? http://www.vimeo.com/2871256 Found it with Google: http://www.google.com/search?q=Dave+Hoover+video+safariwatir+cucumber Željko --~--~-~--~~~---~--~~ 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: Does anyone have examples of using rspec with safariwatir
I have written a new example here: http://wiki.openqa.org/display/WTR/RSpec Aidy 2009/10/9 aidy lewis aidy.le...@googlemail.com: Hi, Cucumber or Rspec? I will add to zeljko's link today. The example doesn't even use matchers. Richard Downie has a Waitr\Cucumber example here: http://wiki.github.com/aslakhellesoy/cucumber/watircuke, but I don't agree with his approach. Aidy 2009/10/9 Željko Filipin zeljko.fili...@wa-research.ch: On Fri, Oct 9, 2009 at 5:22 AM, yuping zhong littlezhong...@gmail.com wrote: Where can we get the video? http://www.vimeo.com/2871256 Found it with Google: http://www.google.com/search?q=Dave+Hoover+video+safariwatir+cucumber Željko --~--~-~--~~~---~--~~ 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 1.6.5.rc1 - release candidate available for testing
Hi Charley 2009/10/5 Charley Baker charley.ba...@gmail.com: wrote: http://wiki.openqa.org/display/WTR/Development+Builds Would it not be an idea to install the gem(s) directly from github? Aidy --~--~-~--~~~---~--~~ 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
I am not so sure you can use Celerity through the standard Ruby MRI. Aidy 2009/10/5 Željko Filipin zeljko.fili...@wa-research.ch: I have created a new wiki page: http://wiki.openqa.org/display/WTR/Platforms Feel free to comment, edit, improve, fix bugs... Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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, Does anyone know of a verified Windows Ruby 1.9.1 installer? Aidy 2009/10/5 Charley Baker charley.ba...@gmail.com: Watir in the github master should be working with 1.9.1. Jari made some fixes, so for Watir we should be good. The one dependency we do have on user-choices isn't working. Talked to Jari on Sat, he pinged Brian Marick to update it a while back, said he would, but hasn't yet. I'd suggest we hit Brian up again and either have him make the changes or push to github so it can be more easily forked. That's a bit simplistic, but without going into the details that's more or less what it boils down to. -Charley On Mon, Oct 5, 2009 at 8:14 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Oct 5, 2009 at 3:12 PM, karimnumerouno karim@gmail.com wrote: i have tried using Ruby 1.9.1 on Ubuntu and it worked however the code needs some standard refractoring This sounds to me like Watir is not working with 1.9. :) Should I add a column that says so? Željko --~--~-~--~~~---~--~~ 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] Watir 1.7
Hi Guys, Do we have a timeline on when Watir 1.7 will be released? Aidy --~--~-~--~~~---~--~~ 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] api for ff 3.5?
Hi, Is there a windows firefox jssh.xpi for 3.5? Aidy --~--~-~--~~~---~--~~ 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] socket error
Hi, Has anyone experienced this socket error with the jssh: An established connection was aborted by the software in your host machine. - recvfrom(2) And managed to solve it? -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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] Watir Session @skillsmatter
Ruby and Watir are now getting some traction in London... http://skillsmatter.com/event/agile-testing/utilising-watir-to-test-in-an-agile-environment -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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: WatirCraft LLC is closing
Ironically Watir's easy-to-use API may have been WatirCraft's downfall Aidy --~--~-~--~~~---~--~~ 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: example problem
Chuck, Your comments are highly simplistic: We still have differences with list based indexes; Watir being one based and Firewatir zero based (as Watir wraps OLE and FireWatir, javascipt), the text representation of the HTML (browser.text), #click_no_wait, and to my knowledge parallelism. Aidy 2009/6/2 Chuck van der Linden sqa...@gmail.com: To be more clear, the current version of Watir has integrated in the Firewatir driver.. so you get both Watir and Firewatir when you install it. Most functions are pretty much equally supported on both browsers. and the way things work you now institute an instance of 'browser' which can be either IE or FF, and call most of your methods against that. (see http://wiki.openqa.org/display/WTR/Browser.new) The nice thing is that now I have scripts that do things like: browser.link(:text, clickme).click and they can be developed against either IE or FireFox, and then quickly switched (via a few different methods depending on what works best for you) to run against the other browser. not all of the tutorial and sample code has caught up to the new paradigm, so you will see a lot of code there, and also posted here, where people will write 'ie.method..' and 'ff.method...' but now adays we'd typically say 'browser.method' (and some will shorten that to bro.method, or br, or just b (although there's a bit of a preference style wise among ruby programmers to only use single letter variables for iterators) ) Hopefully that eliminates a bit of the confusion instead of just causing more. On May 30, 10:55 pm, James j.s.west...@gmail.com wrote: ok completely new to the world of ruby as well as programming The final goal is too scrape an ajax site... if I understand currently I need both watir and firewatir? I am trying to go through some online examples and am trying to complete the google_search.rb example that seems to be floating around. I don't think the program is running properly when I require watir because I get the error google_search.rb:14:in `require': no such file to load -- watir (LoadError) any idea what this means? I am running windows xp thanks for the help in advance -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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: forms in subframes - elements not found
ff.frame(:index, 1).form(:name, lay0803234_src350a).select_list(:id, LOV6) .inspect Try :index, 0 Aidy --~--~-~--~~~---~--~~ 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: Check div for null return
def wait_for?(seconds=0) slept = 0 until yield || slept == seconds sleep 0.5 slept += 0.5 end yield end boolean = wait_for?(35) { @@ie.div(:text, 'Loading...').exists? } assert(boolean) #you may get more benefit from using Rspec or Cucumber Aidy 2009/6/3 Jer lane...@gmail.com: Hi all, Just wondering can anyone help me with this code. I just want to check my assert at the finish to see if the value loading... is present. If after 35 seconds it is present I want it to fail, if it is gone from the screen I want it to pass. My code is included. Thanks. require 'yaml' require 'test/unit' require 'watir' require 'myCompany' require 'utils' include COMPANY::Utils #load test parameters @@ddt = open('data.yml') {|f| YAML.load(f) } @@ie = getBrowser(@@ddt['url']) class DocumentTestScripts Test::Unit::TestCase def setup �...@mycompany = COMPANY::MyCompany.new(@@ie) end def test_9_Bug4986_error_on_dialog_close �...@mycompany.loginissue @@ddt['username'], aasda #deliberately enter the wrong pwd if jsToEval = 'Ext.query(div.x-tool)[0].click()' #check for x and click if present @@ie.document.parentWindow.eval(jsToEval) else @@ie.button(:text, 'Close').click() #otherwise just click close end #sleep 1 until @@ie.text.!include? Loading... sleep 35 assert(@@ie.div(:text, 'Loading...').exists?) #Simple pusedo code representaion of what I want to do #if true #puts 'Loading present, test failed' #else #puts 'Test passed' #end end end -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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: Check div for null return
The predicate '?' in Ruby indicates that the method returns a Boolean. The wait_for? method will 'yield' if that block is true. And then we are asserting whether that block is true or false. Aidy 2009/6/3 Jerry Lane lane...@gmail.com: I am confused as to how you assert the boolean. Is it simply a true or false? 2009/6/3 aidy lewis aidy.le...@googlemail.com def wait_for?(seconds=0) slept = 0 until yield || slept == seconds sleep 0.5 slept += 0.5 end yield end boolean = wait_for?(35) { @@ie.div(:text, 'Loading...').exists? } assert(boolean) #you may get more benefit from using Rspec or Cucumber Aidy 2009/6/3 Jer lane...@gmail.com: Hi all, Just wondering can anyone help me with this code. I just want to check my assert at the finish to see if the value loading... is present. If after 35 seconds it is present I want it to fail, if it is gone from the screen I want it to pass. My code is included. Thanks. require 'yaml' require 'test/unit' require 'watir' require 'myCompany' require 'utils' include COMPANY::Utils #load test parameters @@ddt = open('data.yml') {|f| YAML.load(f) } @@ie = getBrowser(@@ddt['url']) class DocumentTestScripts Test::Unit::TestCase def setup �...@mycompany = COMPANY::MyCompany.new(@@ie) end def test_9_Bug4986_error_on_dialog_close �...@mycompany.loginissue @@ddt['username'], aasda #deliberately enter the wrong pwd if jsToEval = 'Ext.query(div.x-tool)[0].click()' #check for x and click if present @@ie.document.parentWindow.eval(jsToEval) else @@ie.button(:text, 'Close').click() #otherwise just click close end #sleep 1 until @@ie.text.!include? Loading... sleep 35 assert(@@ie.div(:text, 'Loading...').exists?) #Simple pusedo code representaion of what I want to do #if true #puts 'Loading present, test failed' #else #puts 'Test passed' #end end end -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis -- Jerry -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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: XPath and ñ
As I side note I have replaced REXML with nokogiri which will greatly improve the speed of your IE tests (at a guess 3 - 5 times faster) http://github.com/aidylewis/watir/blob/467c42a079c6f0b3e78a187353e288f8e3787503/watir/lib/watir/ie-class.rb Aidy --~--~-~--~~~---~--~~ 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: Check div for null return
2009/6/3 Jerry Lane lane...@gmail.com: Can I just use a simple if to do that thou? Something simple such as if boolean = true puts 'Test Passed' else puts 'Test Failed' end xUnit saves you from writing your own assertions (as above). Although I believe it to be of the wrong narrative for business facing tests. Look at: http://github.com/aslakhellesoy/cucumber/tree/9606fe835c84ed56ff5c41720a6fdbd6289feaa4/examples/watir/features Aidy --~--~-~--~~~---~--~~ 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: forms in subframes - elements not found
Hi Jason How then would you explain this? require 'rubygems' require 'watir' ['watir', 'firewatir'].each { | g | require g } ie = Watir::IE.new ff = FireWatir::Firefox.new [ie, ff].each { |b| b.goto(http://www.google.com;) } ff.table(:index, 1).rows[0].html ie.table(:index, 1).rows[0].html Aidy 2009/6/3 jason jason.franklin.sto...@gmail.com: firewatir index for all elements starts and frames starts with 1 index 0 should be the root document (but its not :-( ) so thanks for the thought jason. --~--~-~--~~~---~--~~ 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 DSL I Have been working on...update
Ruf, I quite like it, but I would wrap your assertions etc in Rspec and use their outputting\reporting. Aidy 2009/5/5 Ruf, Wadud wadud@capgemini.com: All, As I mentioned a few weeks back I have created a DSL for WATiR, I call it the WATiR Scripting Langauge – WSL. I have been creating a lot of collateral and am currently writing examples for it. You can view them and download the WSL gem and install locally from here – http://wsl.xqoob.com Your thoughts and any ideas for improvements would be appreciated! Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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 DSL I Have been working on...update
Ruf, I would also suggest you get rid of #start and #finish and use setup\teardown, Before\After, initialize\at_exit. Aidy 2009/5/5 aidy lewis aidy.le...@googlemail.com: Ruf, I quite like it, but I would wrap your assertions etc in Rspec and use their outputting\reporting. Aidy 2009/5/5 Ruf, Wadud wadud@capgemini.com: All, As I mentioned a few weeks back I have created a DSL for WATiR, I call it the WATiR Scripting Langauge – WSL. I have been creating a lot of collateral and am currently writing examples for it. You can view them and download the WSL gem and install locally from here – http://wsl.xqoob.com Your thoughts and any ideas for improvements would be appreciated! Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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: Stripping url
or goto the command line ri String ri String#split Aidy 2009/5/4 Željko Filipin zeljko.fili...@wa-research.ch: On Fri, May 1, 2009 at 15:02, ash ashbr...@gmail.com wrote: I don't really know Ruby yet And if you want to know what can you do with strings in Ruby (for future reference): http://www.ruby-doc.org/core/classes/String.html Željko -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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] setting browser through rake
Hi, Has anyone managed to set the browser through Rake? rake require 'cucumber/rake/task' require 'watir' Cucumber::Rake::Task.new(default, features) do |t| t.cucumber_opts = -f TeamCityFormatter -f html --out story-results.html end task :ff do ENV['ENVIRONMENT']='systest' Watir::Browser.default = 'firefox' Rake.application[default].execute end task :ie do ENV['ENVIRONMENT']='systest' Watir::Browser.default = 'ie' Rake.application[default].execute end /rake CI rake ie rake ff /CI As I get the default browser of Firefox, for both of the above commands. Thanks -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis --~--~-~--~~~---~--~~ 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: Load Error while running feature in cucumber (watir/cucumber)
require 'cucumber', not 'spec' or install full rspec. Aidy On 02/04/2009, Bret Pettichord b...@pettichord.com wrote: Doesn't look like a Watir bug. pallavi shashidhar wrote: Hi, I have ruby 1.8.6 and watir 1.6.2 installed in my system . I have installed cucumber 0.2 and have watir scripts in feature/steps when i try to run the feature, i constantly get the following error c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- spec (LoadError) Failed to load ./steps/env.rb from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' from c:/ruby/lib/ruby/gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require' tried looking up for solutions but in vain. Any idea what could be the cause? Regards, Pallavi -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16-17 www.watircraft.com/training --~--~-~--~~~---~--~~ 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] autoit and CI
Hi, Is anyone having any problems running autoit through CI? I am using interactive mode. Aidy --~--~-~--~~~---~--~~ 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::Element#visible? not working
It is not obvious, you should put it on the wiki. Aidy On 23/03/2009, Ruf, Wadud wadud@capgemini.com wrote: Yes that works! A Ruby newbie, I should've known to have checked for that :) Thanks Wadud -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of aidy lewis Sent: 23 March 2009 14:26 To: watir-general@googlegroups.com Subject: [wtr-general] Re: Watir::Element#visible? not working require 'watir/contrib/visible' Aidy Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --~--~-~--~~~---~--~~ 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: post request
From Ruby yes http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html Aidy On 23/03/2009, gtardini gtard...@gmail.com wrote: Hi all, first post! I wanted to know if it was possible to initiate a post request directly from watir ( or firewatir ). Thanks a lot in advance, Giovanni --~--~-~--~~~---~--~~ 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] Cucumber, Celerity FireWatir
http://video.google.com/videoplay?docid=470645360297935233 Aidy --~--~-~--~~~---~--~~ 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 in JRuby?
You could run your tests through Celerity which wraps HtmlUnit in a Watir API through JRuby Aidy On 17/03/2009, Jim Knowlton jknowlton...@gmail.com wrote: Does anyone know the status of porting Watir to JRuby? I saw some posts last year that indicated it was on the wish list, but that a stumbling block was the Win32OLE module...just thought I'd drop a note out here and see if anyone has knowledge of anything in the works. I love Ruby and Watir, but work on an enterprise Java app, and having the Java side of JRuby would be cool. Thanks, Jim --~--~-~--~~~---~--~~ 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: get attribute through xpath
Chuck. This was a non-standard HTML attribute so I had to use element_by_xpath to connect directly to the object through win32ole and then I was able to invoke raw DOM methods upon it. Aidy 2009/3/16 Chuck van der Linden sqa...@gmail.com: I am unable to retrieve an attribute of the below HTML snippet through standard Watir methods what did you try? that looks like a simple link to me, you should be able to deal with it via standard .link type methods without seeing a larger sample of the html surrounding that item, it's difficult to know why you might not have been able to address it, but offhand I'd start by asking if perhaps it's inside a frame or something? did you try using the IE developer toolbar to have a look at that item and see where it exists inside the DOM of the page? On Mar 14, 9:23 am, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am unable to retrieve an attribute of the below HTML snippet through standard Watir methods a id=dtrSeriesRightsWindowAnchor href=http://site.co.uk/index.htm; title=Awaiting approval I have tried the following XPath browser.element_by_xpath(//a...@id='dtrSeriesRightsWindowAnchor']...@title) I am hooking onto the obejct, but I am unsure on how to retrieve the value of title. Thanks Aidy --~--~-~--~~~---~--~~ 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] get attribute through xpath
Hi, I am unable to retrieve an attribute of the below HTML snippet through standard Watir methods a id=dtrSeriesRightsWindowAnchor href=http://site.co.uk/index.htm; title=Awaiting approval I have tried the following XPath browser.element_by_xpath(//a...@id='dtrSeriesRightsWindowAnchor']...@title) I am hooking onto the obejct, but I am unsure on how to retrieve the value of title. Thanks Aidy --~--~-~--~~~---~--~~ 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] Celerity, Cucumber and FireWatir
Hi, I will be doing a talk on Celerity, Cucumber and FireWatir at SkillsMatter London, on March 9th: http://skillsmatter.com/event/ruby-on-rails/lrug-march Aidy --~--~-~--~~~---~--~~ 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: Where to hold public training?
Natasha, I am based in London: if we could get 5 or 6 people we could form a user-group. But there is also LRUG: http://lrug.org/ Aidy On 13/02/2009, Natasha Ranney itsn...@yahoo.co.uk wrote: Is it possible to have some in London? Not sure if there are any Watir users in London. Thanks, Natasha --- On *Fri, 13/2/09, niartseoj niarts...@gmail.com* wrote: From: niartseoj niarts...@gmail.com Subject: [wtr-general] Re: Where to hold public training? To: Watir General watir-general@googlegroups.com Date: Friday, 13 February, 2009, 4:53 AM how about Washington DC? or someplace off GREEN BELT turnpike in Reston Virginia bring the show to the east PLEASE On Feb 12, 5:57 pm, Pete Dignan p...@watircraft.com wrote: The first public training class on Watir (including the new WatirCraft framework) is March 25-26 in Austin TX. We're discussing where to hold additional public classes after that. Portland OR has been mentioned. Bay Area? Chicagoland? We're looking for suggestions based on need. Pete --~--~-~--~~~---~--~~ 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: How to get the data in a SQL 2005 database table with ruby?
require 'dbi' module Databases class SQLServerConnection def initialize(server_name, db, user_name=nil, password=nil) @db = db if user_name.nil? or password.nil? @dbh=DBI.connect(DBI:ADO:Provider=SQLOLEDB;Data Source=#{server_name};Intitial catalog...@db};Integrated Security=SSPI) else @dbh=DBI.connect(DBI:ADO:Provider=SQLOLEDB;Data Source=#{server_name};Intitial catalog...@db};Integrated Security=SSPI;User Id=#{user_name};Password=#{password}) end end def execute_sql(sql) @dbh.execute(USE #...@db}) sth = @dbh.prepare(sql) sth.execute row=sth.fetch end end end --~--~-~--~~~---~--~~ 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: How to get the data in a SQL 2005 database table with ruby?
This uses windows authentication, but get the idea require 'dbi' module Database class SQLServerConnection attr_reader :row def initialize(server_name, db) @db = db @dbh=DBI.connect(DBI:ADO:Provider=SQLOLEDB;Data Source=#{server_name};Intitial catalog...@db};Integrated Security=SSPI) end def execute_sql(sql) @dbh.execute(USE #...@db}) sth = @dbh.prepare(sql) sth.execute @row=sth.fetch end end end Aidy On 10/02/2009, wesley chen cjq@gmail.com wrote: Suppose I have a SQL 2005 DB, db name: active, user id: wesley, password: 11, table_name: wesley_tb How can I get all the data in the tb wesley_tb? I have searched some resource, majorly two methods referred. First require 'win32ole' Second require 'dbi' Is anybody familiar with the functions? Really appreciate to your help. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ 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 open IE window
At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I follow: 1. require watir 2. ie = Watir::IE.new When I perform step 2 I get the following error: Win32::API::Error: Attempt to format message failed from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'new' . . . .. and the message continues. I can write the whole message down if necessary. It's really long =( --~--~-~--~~~---~--~~ 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: Eclipse is displaying the execution summary
Hi, For dynamic and duck typed languages I am not sure that you need and IDE. IDE's may be useful when you have got to build a lot of scaffold in languages like Java and C#. They also can be slow. I use: Notepad++ It's Explorer plugin And the command line http://notepad-plus.sourceforge.net/uk/site.htm Aidy 2009/2/5 Niharika Patro niharikapa...@gmail.com: Hi Bret and Chen, Thanks for your inputs :) I would try using Netbeans. Regards Niharika On Thu, Feb 5, 2009 at 8:14 AM, wesley chen cjq@gmail.com wrote: Maybe, Netbeans may be a good choice. I use it and find it really convenient. Thanks. Wesley Chen. On Thu, Feb 5, 2009 at 1:10 AM, Bret Pettichord b...@pettichord.com wrote: I used to use eclipse this way, and have had similar troubles and now just run my tests from the command line. I still use eclipse for editing. Even when i get Eclipse to run my tests, it is slow. Niharika Patro wrote: Hi, I am facing a weird issue while executing Watir scripts in Eclipse. After execution is complete, Eclipse should display the summary of number of tests, assertions, errors, failures etc at the end in the console. Its not displaying the same sometimes. Has anybody face this issue before? Please help me on this. Regards Niharika --~--~-~--~~~---~--~~ 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: Retaining variables between tests in a thread-safe manner
You could use a Singleton or pass your browser object around as a parameter. Aidy 2009/2/5 Justin Ko justin.t...@gmail.com: We are creating a smoke test for our web based application using the Test/Unit module in Ruby (v1.8.6) with Watir (v1.6.2). The smoke test would consist of a series of tests such as: Test 1: Open an IE browser and goto to the application's home page Test 2: Sign into the application Test 3: Test some feature that is accessible to the signed in user Test 4: Test some other feature that is accessible to the signed in user We would like to: 1) Use the same browser (Watir::IE object) throughout the entire series of tests and 2) Be able to run the smoke test multiple times concurrently. In trying to do this, we are running into problems with variable scope. When we assigned the Watir::IE object to an instance variable (@), the variable appeared to be destroyed during the teardown of each test. This prevents us from re-using the same browser across multiple tests. When we assigned the Watir::IE object to a class (@@) or global ($) variable, we could use the same browser throughout the series of tests. However, when using multiple threads to run the smoke test multiple times concurrently, the threads collided due to everyone using the same browser. The below code illustrates our problem. If you run the code as it is, two browsers will be opened and all of the .goto() commands end up being performed on the last created browser (ie both threads are sharing one browser). If you change the '@@browser' to '@browser', the test_open_browser test completes as expected (ie two browsers open and each navigates to a page). However, the browser is not retained from test to test, resulting in the test_navigate_somewhere_else test giving the following error: test_navigate_somewhere_else(TC_MyTest): NoMethodError: undefined method `goto' for nil:NilClass caller.rb:16:in `test_navigate_somewhere_else' Question: Are there any ideas on how we can retain a variable (the browser) between tests, yet still be thread-safe? Thanks, Justin Ko Code: require 'watir' require 'watir/ie' require 'test/unit' require 'test/unit/ui/console/testrunner' class TC_MyTest Test::Unit::TestCase def test_open_browser pages = ['www.google.ca', 'www.bestbuy.ca', 'www.futureshop.ca'] @@browser = Watir::IE.new sleep(2+rand(10)) @@browser.goto( pages[rand(pages.length)] ) end def test_navigate_somewhere_else pages = ['www.henrys.com', 'www.gmail.com', 'maps.google.ca'] @@browser.goto( pages[rand(pages.length)] ) end end class TS_MyTests def self.suite suite = Test::Unit::TestSuite.new suite TC_MyTest.suite return suite end end threads = [] 2.times do |x| threads Thread.new(x) { |myPage| Test::Unit::UI::Console::TestRunner.run(TS_MyTests) } end threads.each { |aThread| aThread.join } --~--~-~--~~~---~--~~ 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 open IE window
gem list -r win* gem update windows-api -y Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: How do I do that? On Feb 5, 12:36 pm, aidy lewis aidy.le...@googlemail.com wrote: At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I follow: 1. require watir 2. ie = Watir::IE.new When I perform step 2 I get the following error: Win32::API::Error: Attempt to format message failed from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'new' . . . .. and the message continues. I can write the whole message down if necessary. It's really long =(- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 open IE window
This will work require 'watir' Watir::Browser.default = ie @browser ||= Watir::Browser.new Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Thanks for answering so fast Aidy Unfortuneatly it still doesn't work =( (Going crazy soon...) /jasmin On Feb 5, 1:59 pm, aidy lewis aidy.le...@googlemail.com wrote: gem list -r win* gem update windows-api -y Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: How do I do that? On Feb 5, 12:36 pm, aidy lewis aidy.le...@googlemail.com wrote: At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I follow: 1. require watir 2. ie = Watir::IE.new When I perform step 2 I get the following error: Win32::API::Error: Attempt to format message failed from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'new' . . . .. and the message continues. I can write the whole message down if necessary. It's really long =(- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 open IE window
Your right Charley gem install windows-pr Will do it. Aidy 2009/2/5 Charley Baker charley.ba...@gmail.com: It seems there are some compatibility issues here with some of the win32utils. Try updating your win32-api gem, win32-process and the windows-pr gem as well. Same instructions that Aidy mentioned before with those gems. Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Feb 5, 2009 at 6:51 AM, aidy lewis aidy.le...@googlemail.com wrote: This will work require 'watir' Watir::Browser.default = ie @browser ||= Watir::Browser.new Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Thanks for answering so fast Aidy Unfortuneatly it still doesn't work =( (Going crazy soon...) /jasmin On Feb 5, 1:59 pm, aidy lewis aidy.le...@googlemail.com wrote: gem list -r win* gem update windows-api -y Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: How do I do that? On Feb 5, 12:36 pm, aidy lewis aidy.le...@googlemail.com wrote: At a guess try updating your windows api gem Aidy 2009/2/5 Jaz jasmin.chazarr...@gmail.com: Hi! Recently installed ruby to use watir, and I get a strange error when I execute the steps in Watir in 5 minutes http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes These are the steps I follow: 1. require watir 2. ie = Watir::IE.new When I perform step 2 I get the following error: Win32::API::Error: Attempt to format message failed from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ api.rb:333 in 'new' . . . .. and the message continues. I can write the whole message down if necessary. It's really long =(- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: browser seems to hang sporadically
Hi Lisa, 2009/2/3 Lisa Crispin lisa.cris...@gmail.com: Has anyone seen this problem running Watir suites in Vista (64-bit) / IE7? We have a number of Watir suites, plus one big giant suite that includes all the others, the giant one takes maybe 3 hours to run. I ran this giant suite for 3+ years unattended on XP / IE6 without too much trouble - I'd kick it off when I left for the day. Occasionally a script would get an error I couldn't figure out - it would run fine when I ran it individually. But probably 4 out of 5 times, it ran fine with no errors at all. We have just written some .Net screenshot code that will activate upon an exception. I will ask if we can open-source it. It took me quite awhile to get everything working on Vista with the latest Ruby and Watir (1.6.2). If I run the big giant suite, at some point, the browser window just seems to hang - as if it is waiting for it to render. As far as I can tell, this doesn't consistently happen in the same place, it seems pretty random. Usually if I refresh the browser window manually, the suite can continue. Re-open the 'Element' class maybe? and then ie.refresh if @browser.text.empty? If I run a large suite unattended, it always does that at some point, and of course I'm not here to 'wake it up' again. I thought it was because my Vista and hard drive were sleeping, so I set the sleep setting to 4 hours, but that didn't help much (definitely if the hard drive sleeps while the suites are running they will stop, but they get hung up even if the hard drive doesn't sleep). My temporary solution is run two suites separately rather than one big one while I am at work, and keep an eye on it so I can tickle it into going again if it hangs. But this is kind of a drag, I can't use the PC really while the scripts are running (I have a Mac and a Linux box to use so that isn't a giant problem but an annoyance). I've spent so much time on this that I have to move on, at least I can run the tests. I'm just wondering if anyone else has experienced the same problem? Is there some better way to run Watir scripts as a regression suite? thanks, Lisa Aidy --~--~-~--~~~---~--~~ 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 install WATIR on VM client machine
Try downloading the packaged gem and place on C: C: gem install -l watir 2009/2/4 Natasha itsn...@yahoo.co.uk: Hi All, I am having trouble installing WATIR on VM client machine. I have installed Ruby on the VM client machine. Now I have been trying to install Watir on it. I tried commands: gem update --system It simply hangs while executing the above command. Thanks, Natasha --~--~-~--~~~---~--~~ 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 install WATIR on VM client machine
Good point. Not sure if you can just copy over your gem folder. Or create the VM after you have installed your test environment Aidy 2009/2/4 Natasha itsn...@yahoo.co.uk: Thanks Aidy. I have tried doing that. Its keeps prompting me to install other gems first. Its asking me to install activesupport gem. I have been looking for that gem. Regards, Natasha On Feb 4, 3:04 pm, aidy lewis aidy.le...@googlemail.com wrote: Try downloading the packaged gem and place on C: C: gem install -l watir 2009/2/4 Natasha itsn...@yahoo.co.uk: Hi All, I am having trouble installing WATIR on VM client machine. I have installed Ruby on the VM client machine. Now I have been trying to install Watir on it. I tried commands: gem update --system It simply hangs while executing the above command. Thanks, Natasha --~--~-~--~~~---~--~~ 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 install WATIR on VM client machine
Does Natatsha need to copy the whole Ruby folder or will just the gems folder do? Aidy 2009/2/4 Bret Pettichord b...@pettichord.com: it is possible to simply copy over your ruby directory after you have installed watir on another machine. i've done this. bret aidy lewis wrote: Good point. Not sure if you can just copy over your gem folder. Or create the VM after you have installed your test environment Aidy 2009/2/4 Natasha itsn...@yahoo.co.uk: Thanks Aidy. I have tried doing that. Its keeps prompting me to install other gems first. Its asking me to install activesupport gem. I have been looking for that gem. Regards, Natasha On Feb 4, 3:04 pm, aidy lewis aidy.le...@googlemail.com wrote: Try downloading the packaged gem and place on C: C: gem install -l watir 2009/2/4 Natasha itsn...@yahoo.co.uk: Hi All, I am having trouble installing WATIR on VM client machine. I have installed Ruby on the VM client machine. Now I have been trying to install Watir on it. I tried commands: gem update --system It simply hangs while executing the above command. Thanks, Natasha --~--~-~--~~~---~--~~ 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 install watir
Is this a proxy error? set HTTP_PROXY=http://[proxy]:port Aidy 2009/2/4 arunaprabha...@gmail.com arunaprabha...@gmail.com: Hi, 1.Downloaded ruby186-26.exe 2.Installed it 3.got following error when im tried to install watir: C:\Documents and Settings\lagem update --system Updating RubyGems... ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) No connection could be made because the target machine actively refused it. - connect(2)(Errno::ECONNREFUSED) C:\Documents and Settings\lagem install watir ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) No connection could be made because the target machine actively refused it. - connect(2)(Errno::ECONNREFUSED) Please help me Thanks, Aruna --~--~-~--~~~---~--~~ 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 install WATIR on VM client machine
Hi Natasha, I think the consesus was to copy over the whole Ruby folder. Aidy 2009/2/4 Natasha Ranney itsn...@yahoo.co.uk: I also tried copying the entire gems folder from the machine where ruby+watir was installed, onto the VM client machine. Then tried executing the watir script, but it failed to execute. Let me try installing the gems one by one, after downloading the gems. --- On Wed, 4/2/09, Natasha Ranney itsn...@yahoo.co.uk wrote: From: Natasha Ranney itsn...@yahoo.co.uk Subject: [wtr-general] Re: Unable to install WATIR on VM client machine To: watir-general@googlegroups.com Date: Wednesday, 4 February, 2009, 10:50 PM I have tried copy the gem that Watir wants, Activesupport. copied C:\ruby\lib\ruby\gems\1.8\gems\activesupport-2.2.2 to the VM machine. Ruby is already installed on that machine. After copying the gem, I also set the path on VM machine, as shown below: C:\Installablesecho %PATH% c:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ruby\lib\ ruby\gems\1.8\gems\ C:\Installablesgem install -l watir ERROR: While executing gem ... (RuntimeError) Error instaling watir: watir requires activesupport = 0 C:\Installablesdir C:\ruby\lib\ruby\gems\1.8\gems\activesupport-2.2.2 Volume in drive C has no label. Volume Serial Number is 8C0E-0BA2 Directory of C:\ruby\lib\ruby\gems\1.8\gems\activesupport-2.2.2 02/04/2009 05:18 PMDIR . 02/04/2009 05:18 PMDIR .. 02/04/2009 05:18 PM61,344 CHANGELOG 02/04/2009 05:18 PMDIR lib 02/04/2009 05:18 PM 1,397 README 2 File(s) 62,741 bytes 3 Dir(s) 62,439,129,088 bytes free C:\Installables Thanks, Natasha --- On Wed, 4/2/09, Paul Rogers paul.rog...@shaw.ca wrote: From: Paul Rogers paul.rog...@shaw.ca Subject: [wtr-general] Re: Unable to install WATIR on VM client machine To: watir-general@googlegroups.com Date: Wednesday, 4 February, 2009, 9:44 PM as long as you set the env variables to point to the ruby executable, gems etc it should be fine. I guy I used to work with wanted to check the whole ruby tree in to svn along with a batch file to set the env vars so it was really easy to set up a new machine. Paul On Wed, Feb 4, 2009 at 9:03 AM, Bret Pettichord b...@pettichord.com wrote: it is possible to simply copy over your ruby directory after you have installed watir on another machine. i've done this. bret aidy lewis wrote: Good point. Not sure if you can just copy over your gem folder. Or create the VM after you have installed your test environment Aidy 2009/2/4 Natasha itsn...@yahoo.co.uk: Thanks Aidy. I have tried doing that. Its keeps prompting me to install other gems first. Its asking me to install activesupport gem. I have been looking for that gem. Regards, Natasha On Feb 4, 3:04 pm, aidy lewis aidy.le...@googlemail.com wrote: Try downloading the packaged gem and place on C: C: gem install -l watir 2009/2/4 Natasha itsn...@yahoo.co.uk: Hi All, I am having trouble installing WATIR on VM client machine. I have installed Ruby on the VM client machine. Now I have been trying to install Watir on it. I tried commands: gem update --system It simply hangs while executing the above command. Thanks, Natasha --~--~-~--~~~---~--~~ 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: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480
#How about this require 'watir' class Browser def initialize @browser ||= Watir::IE.new @browser.speed = :zippy @browser.bring_to_front @browser.maximize end def close @browser.close puts we have closed the browser end #watir methods not in Browser fall into here def method_missing(method_name,*args) @browser.send(method_name, *args) end end browser ||= Browser.new browser.goto('www.fsf.org') browser.close #Aidy On 02/02/2009, ab.ostrow...@gmail.com ab.ostrow...@gmail.com wrote: Hi there! def setup @browser = Wayn::BrowserFactory.create @user = Wayn::User.new(@browser) @user.login('tomcio', 'haslo') end where class BrowserFactory def BrowserFactory.create browser = Watir::Browser.new begin browser.speed = :zippy browser.bring_to_front rescue NoMethodError end browser end end end I have installed: Ruby Version 1.8.6 Installer Version 186-27 firewatir 1.6.2 commonwatir 1.6.2 I have following error: No method error: undefinied method 'goto' for # Watir::IE:0x3294480 I run the same script on another machine and it works therefore I dont know whats cousing this error. Thanks in advance --~--~-~--~~~---~--~~ 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: unit test load order
Unit tests should be independent. I don't think we can make the same assumption about business facing tests. This is another reason why I believe xUnit to be an inadequate narrative for Story Testing. However, if I remember correctly Bret wrote something to re-order Test::Unit methods. Aidy On 03/02/2009, Nathan Lane nathamberl...@gmail.com wrote: No, Ruby's unit test infrastructure and similar infrastructures use reflection to get each of the tests' names, which are always returned in alphanumeric order. So if you want your tests to run in a specific order, then you must name them with that in mind. On Tue, Feb 3, 2009 at 7:44 AM, Loft_Tester aaronr...@gmail.com wrote: Hi All, In order to kick off a unit test from a another file we are requiring that file. To launch a whole suite of tests we require multiple files. It seems that the order that the test run are dependent on the class name. Is there any was to conrtol the order that the test are run with out changing the names of the classes. see example below. require test1.rb # class testset_1 require test2.rb # class testset_2 require test3.rb # class testset_3 require test4.rb # class testset_4 require test5.rb # class testset_5 require test6.rb # class testset_6 require test7.rb # class testset_7 require test8.rb # class testset_8 require test9.rb # class testset_9 require test10.rb # class testset_10 require test11.rb # class testset_11 require test12.rb # class testset_12 The order I require the files in is the order that I would like the test to run in. However, the order seems dependant on class names here is the order that my test run. require test1.rb # class testset_1 require test10.rb # class testset_10 require test11.rb # class testset_11 require test12.rb # class testset_12 require test2.rb # class testset_2 require test3.rb # class testset_3 require test4.rb # class testset_4 require test5.rb # class testset_5 require test6.rb # class testset_6 require test7.rb # class testset_7 require test8.rb # class testset_8 require test9.rb # class testset_9 Without changing the names of the classes or files is there a way to control the test start order -- Nathan Lane Home, http://www.nathandelane.com Blog, http://nathandelane.blogspot.com --~--~-~--~~~---~--~~ 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: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480
What is the purpose of the BrowserFactory class? Has not Watir got its own 'factory' in Common Watir? Aidy On 02/02/2009, ab.ostrow...@gmail.com ab.ostrow...@gmail.com wrote: Hi there! def setup @browser = Wayn::BrowserFactory.create @user = Wayn::User.new(@browser) @user.login('tomcio', 'haslo') end where class BrowserFactory def BrowserFactory.create browser = Watir::Browser.new begin browser.speed = :zippy browser.bring_to_front rescue NoMethodError end browser end end end I have installed: Ruby Version 1.8.6 Installer Version 186-27 firewatir 1.6.2 commonwatir 1.6.2 I have following error: No method error: undefinied method 'goto' for # Watir::IE:0x3294480 I run the same script on another machine and it works therefore I dont know whats cousing this error. Thanks in advance --~--~-~--~~~---~--~~ 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: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480
And your class also shows leakage: http://en.wikipedia.org/wiki/Leaky_abstraction Pushing a free flowing language (e.g. English) - in my opinion - is also a bad move. Have a look at this: http://code.google.com/p/cucumber-and-watir/ If anyone wants to use Rspec Cucumber, I will gladly guide them through it on this list. Aidy On 02/02/2009, aidy lewis aidy.le...@googlemail.com wrote: What is the purpose of the BrowserFactory class? Has not Watir got its own 'factory' in Common Watir? Aidy On 02/02/2009, ab.ostrow...@gmail.com ab.ostrow...@gmail.com wrote: Hi there! def setup @browser = Wayn::BrowserFactory.create @user = Wayn::User.new(@browser) @user.login('tomcio', 'haslo') end where class BrowserFactory def BrowserFactory.create browser = Watir::Browser.new begin browser.speed = :zippy browser.bring_to_front rescue NoMethodError end browser end end end I have installed: Ruby Version 1.8.6 Installer Version 186-27 firewatir 1.6.2 commonwatir 1.6.2 I have following error: No method error: undefinied method 'goto' for # Watir::IE:0x3294480 I run the same script on another machine and it works therefore I dont know whats cousing this error. Thanks in advance --~--~-~--~~~---~--~~ 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: NoMethodError: undefinied method 'goto' for # Watir::IE:0x3294480
I meant to say: Pushing a free flowing language (e.g. English) into objects ... Aidy On 02/02/2009, aidy lewis aidy.le...@googlemail.com wrote: And your class also shows leakage: http://en.wikipedia.org/wiki/Leaky_abstraction Pushing a free flowing language (e.g. English) - in my opinion - is also a bad move. Have a look at this: http://code.google.com/p/cucumber-and-watir/ If anyone wants to use Rspec Cucumber, I will gladly guide them through it on this list. Aidy On 02/02/2009, aidy lewis aidy.le...@googlemail.com wrote: What is the purpose of the BrowserFactory class? Has not Watir got its own 'factory' in Common Watir? Aidy On 02/02/2009, ab.ostrow...@gmail.com ab.ostrow...@gmail.com wrote: Hi there! def setup @browser = Wayn::BrowserFactory.create @user = Wayn::User.new(@browser) @user.login('tomcio', 'haslo') end where class BrowserFactory def BrowserFactory.create browser = Watir::Browser.new begin browser.speed = :zippy browser.bring_to_front rescue NoMethodError end browser end end end I have installed: Ruby Version 1.8.6 Installer Version 186-27 firewatir 1.6.2 commonwatir 1.6.2 I have following error: No method error: undefinied method 'goto' for # Watir::IE:0x3294480 I run the same script on another machine and it works therefore I dont know whats cousing this error. Thanks in advance --~--~-~--~~~---~--~~ 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: ie.text.include?
if you use Rspec, your verification could be a little more readable: require 'rspec' ie.text.should include(whatever) Aidy On 28/01/2009, Mark Anderson mander...@drillinginfo.com wrote: Oh, yes, I'm aware of irb. I use it in combination with SciTE. In fact, I used it to go through the six frames as you suggested below, but they all returned 'false': ie.frame(:name,ctl140_ctl00_ctl03_ctl01).text.include? 'FIND THIS TEXT' and 5 other searches by frame returned 'false'. I think I'm missing something. Is there public access to the site that you are testing so that I could look at the page that you are testing? When I am testing an application in my browser, I can generally figure out where the frame borders are and which frame is which. When you are looking at the page in question in your browser, I assume that you can see 'FIND THIS TEXT' on the screen. Is there any way to ask your developers which frame that text is in? When writing a test, I generally want to make sure that the text I am searching for is in a more specific place than a frame if possible. Is your text within some element on the frame (table, text field, select list, button, etc.)? __ Information from ESET NOD32 Antivirus, version of virus signature database 3807 (20090128) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~-~--~~~---~--~~ 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] Ruby\Watir Contract Tester required London
Hi, We have a 3 month contract being offered in a large media company in West London. We use Watir and Cucumber Some .Net experience would also be handy. Give me an e-mail off-line if you are interested. Aidy --~--~-~--~~~---~--~~ 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: Including watir in ruby program
Hi, What do you get with this? gem list --local watir and this? require 'rubygems' require 'watir' test_site = http://www.google.com/; ie=Watir::IE.new ie.goto test_site Aidy On 29/01/2009, malar malar.je...@gmail.com wrote: Hi, I successfully Installed Ruby 186.26 and watir-1.6.2 common watir 1.6.2. I set the proxy value too. But I am not able to run my program. My coding as follows require 'rubygems' require 'watir' include watir Test-site=http://www.google.com/ ie=IE.new ie.goto Test-site ……. I am getting undefined local variable or method `watir' for main:Object (NameError) error when I run this code.. If I remove include watir line from the code I get an error uninitialized constant IE (NameError) What's the problem? Please help me… Thanks in Advance, malar --~--~-~--~~~---~--~~ 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: Including watir in ruby program
Hi, Not sure. Trying taking out require 'rubygems'. Otherwise 'gem update watir -y' Are you on Windows? Aidy On 29/01/2009, malar b malar.je...@gmail.com wrote: hi, c:/gem list --local watir this code Results ***LOCAL GEMS*** watir1.6.2 Automated Tool for web application if i run this code, i am getting the following error c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/clean_logger.rb:5:in `remove_const': constant Logger::Format not defined (NameError) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/clean_logger.rb:5 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support.rb:27 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/non_control_elements.rb:1 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82 and also i am not behind a firewall Thanx Malar --~--~-~--~~~---~--~~ 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] Rspec beta book
http://www.pragprog.com/titles/achbd/the-rspec-book Aidy --~--~-~--~~~---~--~~ 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] exception on an exists?
Hi, Has anyone received an exception on object.exists? i = 0 until browser.link(:text, /Delete Asset/).exists? or i = 10 browser.link(:text, /Refresh/).click sleep 5 end This: 'browser.link(:text, /Delete Asset/).exists?' should be returning true of false, but is throwing an exception. Aidy --~--~-~--~~~---~--~~ 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: exception on an exists?
Please forgive me for being stupid i == 10 not i = 10 Aidy On 29/01/2009, aidy lewis aidy.le...@googlemail.com wrote: Hi, Has anyone received an exception on object.exists? i = 0 until browser.link(:text, /Delete Asset/).exists? or i = 10 browser.link(:text, /Refresh/).click sleep 5 end This: 'browser.link(:text, /Delete Asset/).exists?' should be returning true of false, but is throwing an exception. Aidy --~--~-~--~~~---~--~~ 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: Page load time script
Natasha, There easiest way to do this is to use BadBoy and JMeter. If you need help with this drop me a mail off-line. Aidy On 28/01/2009, Natasha itsn...@yahoo.co.uk wrote: Hello All, Am writing a script to find the load time for certain web pages. I tried it in a way that my watir script just has one line of code i.e. $browser.goto(www.google.com) But is there a simpler way to do it. Basically want to create a script to do that and run that script as a cron job. It may not use Watir. Not sure if Ruby by itself can be sufficient. Any pointers will be helpful. Thanks, Natasha --~--~-~--~~~---~--~~ 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: Integration with Rally
Hi Richard 2009/1/27 Richard Lawrence rslawre...@gmail.com: A Cucumber editor is one of the things on my list of projects. I could see that making Cucumber + Watir an easy sell for customer acceptance tests. Not sure when I'll actually start on it, though. Richard I understand that you can use Cucumber with Writeboards and there may be a TextMate bundle and a VIM plug-in. Do you want to collaborate on a Watir Cucumber wiki? Aidy --~--~-~--~~~---~--~~ 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] unknown property or method `toString' when using xpath
Hi, Has anyone received this? unknown property or method `toString' HRESULT error code:0x8000 Catastrophic failure When using xpath:? browser.image(:xpath, //*...@id='ctl00_mainContent_TcabControl1_CreateClipControl1_imgbtnSave']).click The method executes though. Thanks Aidy --~--~-~--~~~---~--~~ 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: Win 32 apps
On 22/01/2009, John Fitisoff jfitis...@yahoo.com wrote: There's a recent Ruby book that discusses some automation techniques, think it has 'agile testing' in the title (but unfortunately can't remember the name of it right now). http://www.pragprog.com/titles/idgtr/scripted-gui-testing-with-ruby Aidy --~--~-~--~~~---~--~~ 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: using a table cell variable
2009/1/17 wesley chen cjq@gmail.com: Try : row = checkbox_id.match(/\d\d/).to_i row = checkbox_id.match(/\d\d/).to_s.to_i Aidy --~--~-~--~~~---~--~~ 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] unknown property or method `eval'
Hi, Could anyone tell why I would receive this error unknown property or method `eval' HRESULT error code:0x80020006 Unknown name. (WIN32OLERuntimeError) with this line browser.document.parentWindow.eval('canPlayFlash').should == true browser is the Watir object Thanks Aidy --~--~-~--~~~---~--~~ 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] using a table cell variable
Hi, Has anyone had problems using a variable in the cell array? checkbox_id = ingest.find_enabled_checkbox(Search_ItemDetail_SpoolGrid).id row = checkbox_id.match(/\d\d/) browser.table(:id, /Search_ItemDetail_SpoolGrid/)[row][3].text This is the stack trace undefined method `-' for #MatchData:0x6012f10 (NoMethodError) c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `_row' c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:99:in `[]' This will work the though browser.table(:id, /Search_ItemDetail_SpoolGrid/)[15][3].text Aidy --~--~-~--~~~---~--~~ 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: overriding javascript
Hi Tony, Certainly works, even though I have changed #click_no_wait to #click. I think we need to put this example in the js pop-up wiki and we need an example for alerts as well. For Firewatir you could re-open the FireWatir class and use #$jssh_socket.send class FireWatir::Firefox def close_js_confirm $jssh_socket.send([js]\n, 0) self.read_socket() sleep 1 end end Aidy 2009/1/8 Tony ynot...@gmail.com: Hi Aidy, Got the error - The problem is the script disp_confirm is being called from a frame, and its this frames disp_confirm and window_confirm, that should be overridden. So this should be done on the page and also for all frames. (which is going to call your overridden function) require 'watir' ie = Watir::IE.new ie.goto(http://www.w3schools.com/JS/tryit.asp? filename=tryjs_confirm) ie.maximize # override the frames window.confirm ie.frame(:name, view).document.parentWindow.execScript (window.confirm=function(){return true;}) ie.frame(:name, view).button(:value, Display a confirm box).click_no_wait Wow .. great way to get rid of these confirm boxes.. only have to get this to work on firewatir tooo... Anyways I have tried this on IE8 RC1 - 8.0.6001.18344 - Tony --~--~-~--~~~---~--~~ 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] watir trunk
Hi, Could someone please give me the path to the new Watir trunk ( I understand it has moved from OpenQa) Aidy --~--~-~--~~~---~--~~ 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: overriding javascript
The trouble however with this method is that we will never know if it executes the js or not or does what it is supposed to do. Aidy 2009/1/8 aidy lewis aidy.le...@googlemail.com: Hi Tony, Certainly works, even though I have changed #click_no_wait to #click. I think we need to put this example in the js pop-up wiki and we need an example for alerts as well. For Firewatir you could re-open the FireWatir class and use #$jssh_socket.send class FireWatir::Firefox def close_js_confirm $jssh_socket.send([js]\n, 0) self.read_socket() sleep 1 end end Aidy 2009/1/8 Tony ynot...@gmail.com: Hi Aidy, Got the error - The problem is the script disp_confirm is being called from a frame, and its this frames disp_confirm and window_confirm, that should be overridden. So this should be done on the page and also for all frames. (which is going to call your overridden function) require 'watir' ie = Watir::IE.new ie.goto(http://www.w3schools.com/JS/tryit.asp? filename=tryjs_confirm) ie.maximize # override the frames window.confirm ie.frame(:name, view).document.parentWindow.execScript (window.confirm=function(){return true;}) ie.frame(:name, view).button(:value, Display a confirm box).click_no_wait Wow .. great way to get rid of these confirm boxes.. only have to get this to work on firewatir tooo... Anyways I have tried this on IE8 RC1 - 8.0.6001.18344 - Tony --~--~-~--~~~---~--~~ 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: overriding javascript
Hi Jagdeep, I am still unable to override the confirm function. The result should tell me that 'You pressed OK!'. It seems that execScript is running as a DOS window flashes, however I am just left with the dialog. Do I need to change some js settings in IE. Aidy 2009/1/5 Jagdeep Jain jagdeep.j...@gmail.com: Hi Aidy, I have changed disp_confirm with the earlier one you have supplied window.confirm and removed JavaScript from the end and it works fine for me. require 'watir' ie = Watir::IE.new ie.goto(http://www.w3schools.com/JS/tryit.asp? filename=tryjs_confirm) ie.maximize ie.document.parentWindow.execScript(window.confirm=function(){return true;}) ie.frame(:name, view).button(:value, Display a confirm box).click_no_wait Thanks, Jagdeep On Jan 4, 3:44 am, aidy lewis aidy.le...@googlemail.com wrote: Hi Charley, Thanks for the advice but I am stilling having trouble overriding the js script. require 'watir' ie = Watir::IE.new ie.goto(http://www.w3schools.com/JS/tryit.asp?filename=tryjs_confirm;) ie.document.parentWindow.execScript('disp_confirm=function{return true;}', 'JavaScript') ie.frame(:name, view).button(:value, Display a confirm box).click_no_wait Aidy 2009/1/3 Charley Baker charley.ba...@gmail.com: Execscript exists on the window object, drop the body call from your code and it should work: http://msdn.microsoft.com/en-us/library/ms536420(VS.85).aspx Charley Baker blog:http://charleybakersblog.blogspot.com/ Project Manager, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Sat, Jan 3, 2009 at 1:05 PM, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am trying to override js to bypass a js dialog: This is what I have got: require 'watir' ie = Watir::IE.new ie.goto(http://www.w3schools.com/JS/tryit.asp?filename=tryjs_confirm;) #ie.frame(:name, view).button(:value, Display a confirm box).click ie.document.body.parentElement.execScript(window.confirm=function(){return true;}) I am getting unknown property or method `execScript' Could anyone please direct me? Aidy --~--~-~--~~~---~--~~ 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: Selenium 2.0 plans to drive native browsers
Hi Chris, 2009/1/4 Chris christopher.mcma...@gmail.com: Yes, but last I heard the implementations of Ruby in the JVM (JRuby, etc) are getting pretty robust. My argument would be do we really need a JVM? Do we need Java libraries? Are JVM's optimised for dynamic languages? Does it matter? As an Acceptance Tester an interpreter and Ruby gems seem adequate for my needs. Aidy --~--~-~--~~~---~--~~ 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: Selenium 2.0 plans to drive native browsers
Chris wrote but I would not be surprised in the coming years to see Selenium and Watir growing closer together. I am not so sure these worlds will collide, however we can learn and borrow off each other. Selenium and WebDriver are primarily Java apps, the family of Watir tools are explicitly Ruby. Webdriver follows the Watir method by using IE com to drive the actual browser, but WebDriver goes through the JNI. Charley wrote I've recently taken a brief look at WebDriver - specifically the Firefox extension and feel like it'd be a good idea to ditch JSSH with all of it's complications and compilations :) in favor of their extension. The WebDriver extension telnets into Firefox like the JSSH.xpi and all of Charley's comments regarding the xpi are valid. However additionally, I and others have noticed the xpi to 'fall-out', which makes CI (if we can include Acceptance Tests as CI) very frustrating Regards Aidy --~--~-~--~~~---~--~~ 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 Installation
Hi Bret, 2008/12/29 Bret Pettichord b...@pettichord.com: It is good that you are doing this. Suggestions. If target is Windows + Mac + Linux 1. gem install firewatir I was thinking about this: can we still gem install watir on a Mac and GNU\Linux even though classic Watir may not run? Aidy --~--~-~--~~~---~--~~ 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 Installation
Hi, Can anyone please have a quick look at this to see if it is accurate? http://github.com/aslakhellesoy/cucumber/wikis/setting-up-firewatir I am explicitly using the word FireWatir because: 1. Many people still think Watir is just Windows and IE 2. Many of the Rspec guys use Macs and\or GNU\Linux. Thanks Aidy --~--~-~--~~~---~--~~ 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] persistant 'about:blank' window on Vista.
Hi, I am not currently at home, so I am on a Vista machine. Has anyone seen a persistant 'about:blank' ie window on Vista? require 'watir' Watir::Browser.default = ie browser = Watir::Browser.new browser.goto(www.gmail.com) (left with two ie windows: about:blank and gmail) Aidy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---