[wtr-general] running suites with testrunner (--runner=t)
I finally got my old watir scripts running by copying my Ruby 1.8.6 (with Watir 1.6.2) folder from a Vista 64 PC where everything works fine to my new Win 7 PC. After many hours of work I have found all the environment variables and path settings I need to run the scripts. I can also run suites. However, I can't run suites with the tk testrunner. When I use --runner=t, I don't get an error, but the suite doesn't run, either, it just stops. I copied the tcl directory from the old PC where everything works. I also installed tcl 1.8.5. I tried both the 32 and 64 bit versions. The 64 bit version gets an error that some part of memory that doesn't exist was accessed, or something to that effect. I've got the tcl\bin dir in my path. I've edited the registry entry for ruby so that I can associate ruby.exe with .rb programs and pass in runtime parameters. As far as I can tell, my installation is identical to the two PCs here where the suites run fine with the tk testrunner. I've googled a bunch, and can't find any information where --runner=t causes the suites to simply not run, rather than giving an error message. Any ideas how I can debug this? If I can't get the tk testrunner to work, is there another option? I've given up on trying to upgrade to a later version of Ruby and/or Watir, but still cling to the hope that I could run my suites as before. Of course, I can run them, but if they fail, I'm going to have a hard time debugging them. Thanks for any ideas. -- Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly
I first tried gem install watir -v 1.6.2 and that didn't work either. I've been trying everything I can find searching in the archives etc. My goal is to get my scripts running on my new PC. I don't really care what versions of anything I have, but it seems intuitive that if I put the same versions on my new PC that I have on the old PC where all my scripts work, it would work. But I can't get those versions installed. I'm open to other advice on how to proceed. I wonder if installing the newest Ruby and Watir messed things up, even though I uninstalled them, maybe the uninstall didn't clean up all the registry entries or something. I'll look for you on gtalk or skype, Z. Thanks! -- Lisa On Thu, Feb 16, 2012 at 9:12 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Feb 16, 2012 at 9:29 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I know, I had uninstalled Ruby 1.8.7 because the require 'watir' kept failing, and installed Ruby 1.8.6, but now the install of watir won't work. Is there a reason not to install ruby 1.9.3? Ruby 1.8.6 probably has rubygems version so old that it can not be updated with gem update --system If you really like 1.8.6 take a look how I updated it on Mac, it should be similar on Windows (RubyGems on 10.5 chapter): https://github.com/zeljkofilipin/watirbook/blob/master/installation/mac.md When I typed gem install watir in Ruby 1.8.7, I got Watir 2. I don't want Watir 2, I want 1.6.2. For instructions on how to install an older version of watir: - go to https://rubygems.org/gems/watir - click link Show all versions (43 total) (at the bottom of the page) - click the version you like (1.6.2) - page with instructions how to install that version will appear In short: gem install watir -v 1.6.2 Feel free to ping me on skype/gtalk/irc, it would probably be faster to debug the problem that way. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] How to install Watir 1.6.2 with Ruby 1.9.3? Or with any Ruby, such that my scripts will work?
At Zeljko's suggestion, I installed the latest Ruby, then tried to install Watir 1.6.2. I got this error: gem install watir -v 1.6.2 ERROR: While executing gem ... (Gem::Dependenc yError) Unable to resolve dependencies: watir requires commonwatir (= 1.6.2); firewa tir requires commonwatir (= 1.9.2) Z suggested to install both versions of commonwatir, which I did. When I ran a Watir script, I got this error: C:/Ruby193/lib/ ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_ conflicts': Unable to activate watir-1.6.2, because commonwatir-1.9.2 conflicts with commonwatir (= 1.6.2) (Gem::LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:741:i n `activate' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `rescue in t ry_activate' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:206:in `try_activat e' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:i n `rescue in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i n `require' I uninstalled commonwatir at Z's suggestion, then when I ran the watir script I got this: but when I run script, it still says, C:/Ruby193/lib/ ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_ conflicts': Unable to activate firewatir-1.9.4, because commonwatir-1.6.2 confli cts with commonwatir (= 1.9.2) (Gem::LoadError) Z suggested I uninstall firewatir, I did that. Then when I ran the script I get this error: C:/Ruby193/lib/ ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Co uld not find firewatir (= 0) amongst [activesupport-3.2.1, bigdecimal-1.1.0, bu ilder-3.0.0, commonwatir-1.6.2, hoe-2.13.1, i18n-0.6.0, io-console-0.3, json-1.5 .4, minitest-2.5.1, multi_json-1.0.4, rake-0.9.2.2, rdoc-3.9.4, s4t-utils-1.0.4, user-choices-1.1.6.1, watir-1.6.2, win32-api-1.4.8-x86-mingw32, win32-process-0 .6.5, windows-api-0.4.1, windows-pr-1.2.1, xml-simple-1.1.1] (Gem::LoadError) I don't WANT firewatir. Why do I have to have it? The basic question is - how may I get Watir 1.6.2 working on my Windows 7 PC? I don't care what version of either Ruby or Watir that I have, I just need for my many Watir scripts to work here. They work fine on my old Vista 64 PC that has Ruby 1.8.6 and Watir 1.6.2. I have tried to install both Ruby 1.8.7/Watir 1.6.2 - scripts didn't work - and tried to install Ruby 1.8.6, but when I did that, the install of watir wouldn't work. I'm losing the will to live. Please help! -- Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Ignore this Re: How to install Watir 1.6.2 with Ruby 1.9.3? Or with any Ruby, such that my scripts will work?
I finally got around that error, but got a new one. Now I am going to try just copying my ruby folder from my old machine, apparently I missed that suggestion in a prior email. Sigh. -- Lisa On Fri, Feb 17, 2012 at 1:03 PM, Lisa Crispin lisa.cris...@gmail.comwrote: At Zeljko's suggestion, I installed the latest Ruby, then tried to install Watir 1.6.2. I got this error: gem install watir -v 1.6.2 ERROR: While executing gem ... (Gem::Dependenc yError) Unable to resolve dependencies: watir requires commonwatir (= 1.6.2); firewa tir requires commonwatir (= 1.9.2) Z suggested to install both versions of commonwatir, which I did. When I ran a Watir script, I got this error: C:/Ruby193/lib/ ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_ conflicts': Unable to activate watir-1.6.2, because commonwatir-1.9.2 conflicts with commonwatir (= 1.6.2) (Gem::LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:741:i n `activate' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `rescue in t ry_activate' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:206:in `try_activat e' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:i n `rescue in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i n `require' I uninstalled commonwatir at Z's suggestion, then when I ran the watir script I got this: but when I run script, it still says, C:/Ruby193/lib/ ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_ conflicts': Unable to activate firewatir-1.9.4, because commonwatir-1.6.2 confli cts with commonwatir (= 1.9.2) (Gem::LoadError) Z suggested I uninstall firewatir, I did that. Then when I ran the script I get this error: C:/Ruby193/lib/ ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Co uld not find firewatir (= 0) amongst [activesupport-3.2.1, bigdecimal-1.1.0, bu ilder-3.0.0, commonwatir-1.6.2, hoe-2.13.1, i18n-0.6.0, io-console-0.3, json-1.5 .4, minitest-2.5.1, multi_json-1.0.4, rake-0.9.2.2, rdoc-3.9.4, s4t-utils-1.0.4, user-choices-1.1.6.1, watir-1.6.2, win32-api-1.4.8-x86-mingw32, win32-process-0 .6.5, windows-api-0.4.1, windows-pr-1.2.1, xml-simple-1.1.1] (Gem::LoadError) I don't WANT firewatir. Why do I have to have it? The basic question is - how may I get Watir 1.6.2 working on my Windows 7 PC? I don't care what version of either Ruby or Watir that I have, I just need for my many Watir scripts to work here. They work fine on my old Vista 64 PC that has Ruby 1.8.6 and Watir 1.6.2. I have tried to install both Ruby 1.8.7/Watir 1.6.2 - scripts didn't work - and tried to install Ruby 1.8.6, but when I did that, the install of watir wouldn't work. I'm losing the will to live. Please help! -- Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Trying to go back to watir 1.6.2, won't install correctly
I've thrown in the towel on trying to upgrade to Watir 2.0. I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead. I installed the ruby dev kit. I did a gem update --system. I did a gem install watir -v 1.6.2 and that appeared to work ok, at least, I didn't get any errors. However, when I try to run a script, I get an error 'require': no such file to load -- watir (LoadError). I googled on that error and found another way to install, which I tried - gem install watir-1.6.2.gem --local (I first downloaded the watir-1.6.2.gem). But that doesn't help. I still get the same error. I get it that it's crazy to be asking this question years after 1.6.2 was released. I just want to be able to keep using my many Watir scripts on my new Windows box. I'm still running them fine on my old Windows box, which has Ruby 1.8.6 and Watir 1.6.2, but that box has to go away. If I can't get this working, I'm just going to have to give up entirely and sacrifice many years investment in these scripts (they were written 2004 - 2006 and I have maintained them ever since). They are valuable to me, but I don't know what else to try. Y'all would probably be just as happy to not having me asking stupid questions on this list anymore, but I thought I'd give it one more shot. We don't use Watir for regression tests, we use Canoo WebTest and, recently adopted, Se/Webdriver with a Geb framework. I suppose eventually we could build up new scripts that do what our Watir scripts do in Se/Webdriver, but since I'm the only person on the team that likes to semi-automate my manual exploratory testing, that probably ain't gonna happen. Only I am feeling this pain. Which teaches me a valuable lesson about making sure a team REALLY buys into a test driver and framework before adopting it. Do I need to go back to Ruby 1.8.6? I was advised by someone who seemed to know that 1.8.7 would be better even with Watir 1.6.2. Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly
I didn't have to do that on my other machine, but what the heck, I tried adding require 'rubygems'. Here's a snippet of my code where the requires are: require 'test/unit' require 'rubygems' require 'watir' It doesn't help. I still get the same error. I read that page in your book, but it looks like I'm doing what you suggest there. Other ideas? thanks Lisa On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin zeljko.fili...@gmail.comwrote: Hi Lisa, comments are inline. Željko On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead. Is there a reason for using ruby 1.8.7.? I would suggest that you install ruby 1.9.3. However, when I try to run a script, I get an error 'require': no such file to load -- watir (LoadError). This usually happens when your ruby installation does not require rubygems by default. Try adding this to the top of the file: require rubygems By the way, I wrote about that problem in the book: https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly
Also, I tried putting the gems folder in my Path variable, someone suggested that to me on Twitter, that doesn't help either. 2012/2/16 Lisa Crispin lisa.cris...@gmail.com I didn't have to do that on my other machine, but what the heck, I tried adding require 'rubygems'. Here's a snippet of my code where the requires are: require 'test/unit' require 'rubygems' require 'watir' It doesn't help. I still get the same error. I read that page in your book, but it looks like I'm doing what you suggest there. Other ideas? thanks Lisa On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin zeljko.fili...@gmail.comwrote: Hi Lisa, comments are inline. Željko On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead. Is there a reason for using ruby 1.8.7.? I would suggest that you install ruby 1.9.3. However, when I try to run a script, I get an error 'require': no such file to load -- watir (LoadError). This usually happens when your ruby installation does not require rubygems by default. Try adding this to the top of the file: require rubygems By the way, I wrote about that problem in the book: https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly
My next bright idea was to uninstall ruby 1.8.7 and try installing 1.8.6, which is what works on my old pc. That seemed to install ok, but when I do gem update --system, I get an error ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP response 302 Is there a different way to install watir 1.6.2 with ruby 1.8.6? I have looked at the archived emails on this and they say to do gem update --system and then gem install watir-1.6.2.gem. But neither of those works for me now. They did work, with ruby 1.8.7, but require 'watir' doesn't work with ruby 1.8.7 for me. -- Lisa 2012/2/16 Lisa Crispin lisa.cris...@gmail.com Also, I tried putting the gems folder in my Path variable, someone suggested that to me on Twitter, that doesn't help either. 2012/2/16 Lisa Crispin lisa.cris...@gmail.com I didn't have to do that on my other machine, but what the heck, I tried adding require 'rubygems'. Here's a snippet of my code where the requires are: require 'test/unit' require 'rubygems' require 'watir' It doesn't help. I still get the same error. I read that page in your book, but it looks like I'm doing what you suggest there. Other ideas? thanks Lisa On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin zeljko.fili...@gmail.com wrote: Hi Lisa, comments are inline. Željko On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead. Is there a reason for using ruby 1.8.7.? I would suggest that you install ruby 1.9.3. However, when I try to run a script, I get an error 'require': no such file to load -- watir (LoadError). This usually happens when your ruby installation does not require rubygems by default. Try adding this to the top of the file: require rubygems By the way, I wrote about that problem in the book: https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly
I get *** LOCAL GEMS *** On Thu, Feb 16, 2012 at 6:08 PM, Željko Filipin zeljko.fili...@gmail.comwrote: 2012/2/16 Lisa Crispin lisa.cris...@gmail.com I still get the same error. What do you get if you execute this in the command line? gem list watir Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Trying to go back to watir 1.6.2, won't install correctly
I know, I had uninstalled Ruby 1.8.7 because the require 'watir' kept failing, and installed Ruby 1.8.6, but now the install of watir won't work. When I typed gem install watir in Ruby 1.8.7, I got Watir 2. I don't want Watir 2, I want 1.6.2. Will that just happen by magic? I know I can just try it, but I'm getting really tired of uninstalling and installing things. thanks, Lisa On Thu, Feb 16, 2012 at 6:28 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Feb 16, 2012 at 7:10 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I get *** LOCAL GEMS *** If it does not list watir gem there, then you do not have it installed. Try running this again: gem install watir Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] problem with radio button after upgrade
Thanks everyone for the links, it's a big help. As usual, I had to switch off to other work, trying to get a big block of time to get back to getting our many scripts to work in the new Watir/Webdriver. One of my coworkers who is new to Watir is helping. The doc will be a big help to us. -- Lisa On Fri, Jan 27, 2012 at 3:44 AM, Jari Bakken jari.bak...@gmail.com wrote: The watir-webdriver docs can certainly be improved (especially when it comes to examples), but the standard API docs (for any ruby gem actually) can be found on rubydoc.info, as Zeljko mentions: http://rubydoc.info/github/watir/watir-webdriver/frames As for the attribute methods on the element object, those are largely created through metaprogramming and thus not picked up by the default docs generator. To generate the *full* set of docs, you can run `rake yard` in a source checkout (we could perhaps host these ourselves somewhere?). Jari On Fri, Jan 27, 2012 at 12:09 AM, Lisa Crispin lisa.cris...@gmail.comwrote: The good news is, the syntax you gave me does work. Thank you! Then I realized this page I found that looks like such nice doc is for the old Watir. Does that not exist for Watir 2? This is *really* what I need. Something that shows all the possibilities (eg., can use name, id, value or whatever), and lots of examples. thanks Lisa On Thu, Jan 26, 2012 at 4:03 PM, Lisa Crispin lisa.cris...@gmail.comwrote: OK, and now I see in your email the link to this http://watir.com/support. So I just went there and did a search 'watir radio', and finally found this page, which is what I was looking for: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html Thank you! -- Lisa On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin zeljko.fili...@gmail.com wrote: On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Error with brand new install
I'm doing a brand new install of Watir on Windoze 7, following the instructions on the site. I'm getting this error when I do the test recommended in the instructions: irb(main):002:0 browser = Watir::Browser.new C:/Ruby193/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:4: Use RbConfig instead of obsolete and deprecated Config. I found someone posted the same problem here: http://stackoverflow.com/questions/8337338/watir-does-not-work-with-ruby-1-9-3 Zeljko says It works for me and shows his versions of everything. I have the exact same versions. The person who posted the problem says It all went down to ffi gem. I have no idea what that is, but I looked it up and installed it with 'gem install ffi'. That didn't help my problem. I've browsed around on the mailing list and google but haven't found the solution. Please help. thanks Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Error with brand new install
Hi Željko On Thu, Jan 26, 2012 at 10:16 AM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Jan 26, 2012 at 11:10 AM, Lisa Crispin lisa.cris...@gmail.com wrote: I'm doing a brand new install of Watir on Windoze 7, following the instructions on the site. This instructions? https://github.com/zeljkofilipin/watirbook/blob/master/installation/windows.md I have updated the instructions there, but I did not have the time to publish a new version of the book. Yes, that's the page I used I'm getting this error when I do the test recommended in the instructions: irb(main):002:0 browser = Watir::Browser.new C:/Ruby193/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:4: Use RbConfig instead of obsolete and deprecated Config. Is this just a warning message? (Looks like it comes from windows-api gem.) Does the browser open? It's just a warning message. It refers to a Config:: something or other, but I don't have that anywhere in my Ruby scripts. I get this warning any time I run a script, too. The person who posted the problem says It all went down to ffi gem. There was a problem with one version of ffi gem on Windows, but I think that is solved now. Did you install DevKit? Yes, at least, I followed all those instructions and it seemed to work Željko -- watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com Thanks! -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] problem with radio button after upgrade
I'm trying to get all our zillions of Ruby/Watir/Test::Unit scripts working in the latest Watir version. Right away I ran into this problem. We have an old legacy page that has several radio buttons with the same name. So I can only select them by value. Here's the html: input type=radio onclick=javascript: location.href = 'userLogin.jsp?selectType=65546'; checked= value=65546 style=vertical-align: middle; name=rst Here is the Watir code (do you call this code?) that has worked for 8 years: ie.radio(:name, 'rst', '65546').set When I run the script, I get this error: ArgumentError: wrong number of arguments (3 for 2) (eval):1:in `radio' I've Googled the documentation and it looks to me like what we have should still work. However, I cannot find a specific example to use both name and value. Still, the documentation indicates that the value is supported. I have two questions: 1. Why am I getting this error? 2. Is there ONE definitive place where Watir commands (or whatever you call them) are documented? 3. Is there a side-by-side comparison of the old Watir and the new Watir? I saw some links that were pointing to github, but when I clicked them I got 404. If it's going to be too hard to upgrade, I can just stay on the old version forever, but I would really like to use webdriver. We are now using webdriver with Selenium and Geb, but I'd like to use it with Watir as well. Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] problem with radio button after upgrade
OK, and now I see in your email the link to this http://watir.com/support. So I just went there and did a search 'watir radio', and finally found this page, which is what I was looking for: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html Thank you! -- Lisa On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] problem with radio button after upgrade
The good news is, the syntax you gave me does work. Thank you! Then I realized this page I found that looks like such nice doc is for the old Watir. Does that not exist for Watir 2? This is *really* what I need. Something that shows all the possibilities (eg., can use name, id, value or whatever), and lots of examples. thanks Lisa On Thu, Jan 26, 2012 at 4:03 PM, Lisa Crispin lisa.cris...@gmail.comwrote: OK, and now I see in your email the link to this http://watir.com/support. So I just went there and did a search 'watir radio', and finally found this page, which is what I was looking for: http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html Thank you! -- Lisa On Thu, Jan 26, 2012 at 3:13 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Thu, Jan 26, 2012 at 4:08 PM, Lisa Crispin lisa.cris...@gmail.com wrote: ie.radio(:name, 'rst', '65546').set The new api is: ie.radio(:name = rst, :value = 65546).set Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Upgrading anxiety
We have Watir 1.6.2 and Ruby 1.8.6. We have MANY Watir/Test/Unit scripts which we (well, I) mainly use to help with exploratory testing, and to verify releases. I can't live without these scripts, so I don't want to break them. At the same time, I want to try the latest Watir and Webdriver to see if it correctly interprets the JS that our new Dojo code has - the version of Watir we have can't cope with it, and Canoo WebTest/HtmlUnit also cannot correctly interpret it. I perused the latest install instructions and info about the later Watir releases, and it sounds like our older Watir scripts aren't going to work with the later version? Is this true? How much effort is required to fix them? Is there a central location with this information that I just haven't found yet? If I install the latest Ruby and Watir/WebDriver, and our scripts don't work, can I back up to the old versions again? I only spend about 10% of my time doing any sort of coding, so though this might all be really obvious to y'all, it is something quite challenging and scary for me. I would hate to abandon Watir and the excellent scripts we have, but I don't get any support from my team on this. They are keen to try Selenium. Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: type-ahead select lists
(re-sending, I don't think it got sent for some reason) Now I am able to type text into the hidden field, but after looking at the links Chuck recommended, the code from Paul, and lots of other Googling around, I'm still flummoxed on trying to get the event to fire. Here is the html: select dojoType=dijit.form.FilteringSelect id='advisorId' name='advisorId' onchange=javascript:selectPlanAdvisor(); option value=0 selected No Advisor /option option value=3785 FERNANDEZ, KEVIN S /option /select Here is what I've tried to try to fire the event: ie.hidden(:id, 'advisorId').fire_event(onchange) This returns a value of yellow in irb (WTF?) but does not fire the JS. One of the Java developers here tried to help, but he's as baffled as I am. Any other suggestions? I will have many scripts broken because of this, and I depend on those scripts to help with our exploratory testing as well as testing releases to the staging environment. I don't want to lose them! thanks, Lisa On Thu, May 26, 2011 at 1:44 AM, Chuck van der Linden sqa...@gmail.comwrote: I'd wager it's working off keypress events. Problem is we can't easily fire those in watir because the .fire_event method only takes a single parameter (the event) and I believe to work properly keypress needs a parameter for the value of the key that was depressed. You might need to write your own function that executes the javascript fireevent function instead, similar to this item from Stackoverflow a year or two ago http://stackoverflow.com/questions/602069/autocomplete-dropdown-test-with-ruby-watir Another alternative is described here http://zbarzone.blogspot.com/2008/08/watir-sendkeys-and-javascript.html and that approach might actually be better for you. To fix this 'for real' it seems we'd need to first modify .fire_event to allow for a second parameter, or create a new method such as .fire_key_event that would take two parameters. Then any other methods that have keypress events in them such as .set would need to be altered to fire the down/press/up events character by character and fire those events with the proper 'key' values for each character. On May 24, 11:24 am, Lisa Crispin lisa.cris...@gmail.com wrote: I tried the log events thing, it's nice to know about that, but I don't see anything that really looks like the JS firing. I see a lot of 'select', 'click' 'keydown', 'input', 'keypress', 'keyup', none of that looks like what the JS is doing with the type ahead. -- LIsa On Mon, May 23, 2011 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 23, 2011 at 9:44 PM, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Is the page public? Or a similar page? Frameworks usually have examples somewhere online. If you think the only problem is that a JavaScript event is not fired (by Watir), take a look at this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-java. .. If the site is not public, but you could show it to me, contact me off list. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009)http://lisacrispin.com @lisacrispin on Twitterhttp://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com
Re: [wtr-general] Re: type-ahead select lists
, or create a new method such as .fire_key_event that would take two parameters. Then any other methods that have keypress events in them such as .set would need to be altered to fire the down/press/up events character by character and fire those events with the proper 'key' values for each character. On May 24, 11:24 am, Lisa Crispin lisa.cris...@gmail.com wrote: I tried the log events thing, it's nice to know about that, but I don't see anything that really looks like the JS firing. I see a lot of 'select', 'click' 'keydown', 'input', 'keypress', 'keyup', none of that looks like what the JS is doing with the type ahead. -- LIsa On Mon, May 23, 2011 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 23, 2011 at 9:44 PM, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Is the page public? Or a similar page? Frameworks usually have examples somewhere online. If you think the only problem is that a JavaScript event is not fired (by Watir), take a look at this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-java. .. If the site is not public, but you could show it to me, contact me off list. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitterhttp://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: type-ahead select lists
Thanks, I will take a look! -- Lisa On Thu, May 26, 2011 at 11:10 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, May 26, 2011 at 7:05 PM, Lisa Crispin lisa.cris...@gmail.com wrote: my main problem is the field is hidden, and I can't figure out the Watir syntax to force a hidden input field. Watir can work with hidden fields: browser.hidden(how, what) More info: http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir (This will not work in watir-webdriver.) Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: type-ahead select lists
OK, I got the hidden part to work, but I do need the fire event, I think. I wish I knew how this is so easily done in Canoo WebTest with the forceHiddenInputField. Not being a programmer, I am thinking I'm not going to be able to figure this out. The Java programmers here aren't too keen to help me but maybe I can get one of them to, I'm sure they could figure it out with all the info y'all have provided. Thanks. -- Lisa On Thu, May 26, 2011 at 1:44 AM, Chuck van der Linden sqa...@gmail.comwrote: I'd wager it's working off keypress events. Problem is we can't easily fire those in watir because the .fire_event method only takes a single parameter (the event) and I believe to work properly keypress needs a parameter for the value of the key that was depressed. You might need to write your own function that executes the javascript fireevent function instead, similar to this item from Stackoverflow a year or two ago http://stackoverflow.com/questions/602069/autocomplete-dropdown-test-with-ruby-watir Another alternative is described here http://zbarzone.blogspot.com/2008/08/watir-sendkeys-and-javascript.html and that approach might actually be better for you. To fix this 'for real' it seems we'd need to first modify .fire_event to allow for a second parameter, or create a new method such as .fire_key_event that would take two parameters. Then any other methods that have keypress events in them such as .set would need to be altered to fire the down/press/up events character by character and fire those events with the proper 'key' values for each character. On May 24, 11:24 am, Lisa Crispin lisa.cris...@gmail.com wrote: I tried the log events thing, it's nice to know about that, but I don't see anything that really looks like the JS firing. I see a lot of 'select', 'click' 'keydown', 'input', 'keypress', 'keyup', none of that looks like what the JS is doing with the type ahead. -- LIsa On Mon, May 23, 2011 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 23, 2011 at 9:44 PM, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Is the page public? Or a similar page? Frameworks usually have examples somewhere online. If you think the only problem is that a JavaScript event is not fired (by Watir), take a look at this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-java. .. If the site is not public, but you could show it to me, contact me off list. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009)http://lisacrispin.com @lisacrispin on Twitterhttp://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: type-ahead select lists
Now I am able to type text into the hidden field, but after looking at the links Chuck recommended, the code from Paul, and lots of other Googling around, I'm still flummoxed on trying to get the event to fire. Here is the html: select dojoType=dijit.form.FilteringSelect id='advisorId' name='advisorId' onchange=javascript:selectPlanAdvisor(); option value=0 selected No Advisor /option option value=3785 FERNANDEZ, KEVIN S /option /select Here is what I've tried to try to fire the event: ie.hidden(:id, 'advisorId').fire_event(onchange) This returns a value of yellow in irb (WTF?) but does not fire the JS. One of the Java developers here tried to help, but he's as baffled as I am. Any other suggestions? I will have many scripts broken because of this, and I depend on those scripts to help with our exploratory testing as well as testing releases to the staging environment. I don't want to lose them! thanks, Lisa On Thu, May 26, 2011 at 1:44 AM, Chuck van der Linden sqa...@gmail.comwrote: I'd wager it's working off keypress events. Problem is we can't easily fire those in watir because the .fire_event method only takes a single parameter (the event) and I believe to work properly keypress needs a parameter for the value of the key that was depressed. You might need to write your own function that executes the javascript fireevent function instead, similar to this item from Stackoverflow a year or two ago http://stackoverflow.com/questions/602069/autocomplete-dropdown-test-with-ruby-watir Another alternative is described here http://zbarzone.blogspot.com/2008/08/watir-sendkeys-and-javascript.html and that approach might actually be better for you. To fix this 'for real' it seems we'd need to first modify .fire_event to allow for a second parameter, or create a new method such as .fire_key_event that would take two parameters. Then any other methods that have keypress events in them such as .set would need to be altered to fire the down/press/up events character by character and fire those events with the proper 'key' values for each character. On May 24, 11:24 am, Lisa Crispin lisa.cris...@gmail.com wrote: I tried the log events thing, it's nice to know about that, but I don't see anything that really looks like the JS firing. I see a lot of 'select', 'click' 'keydown', 'input', 'keypress', 'keyup', none of that looks like what the JS is doing with the type ahead. -- LIsa On Mon, May 23, 2011 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 23, 2011 at 9:44 PM, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Is the page public? Or a similar page? Frameworks usually have examples somewhere online. If you think the only problem is that a JavaScript event is not fired (by Watir), take a look at this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-java. .. If the site is not public, but you could show it to me, contact me off list. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009)http://lisacrispin.com @lisacrispin on Twitterhttp://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] type-ahead select lists
I tried the log events thing, it's nice to know about that, but I don't see anything that really looks like the JS firing. I see a lot of 'select', 'click' 'keydown', 'input', 'keypress', 'keyup', none of that looks like what the JS is doing with the type ahead. -- LIsa On Mon, May 23, 2011 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 23, 2011 at 9:44 PM, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Is the page public? Or a similar page? Frameworks usually have examples somewhere online. If you think the only problem is that a JavaScript event is not fired (by Watir), take a look at this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired If the site is not public, but you could show it to me, contact me off list. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] type-ahead select lists
We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Here's the HTML: select dojoType=dijit.form.FilteringSelect id=advisor.dealerId name=advisor.dealerId style='width: 550px;' option value=0 /option option value=1059 1717 Capital Management / 300 Continental Drive / Suite 3 South / Newark, DE 19713-4329 / /option ...etc I thought I could use text_field to set a value here, just as if I typed it manually on the page. I tried ie.text_field(:id, 'advisor.dealerId').set(some value). When I do this in irb, I see it set the value, but when I submit, it shows the default value was selected instead. I also tried fire_event(onclick), that didn't help. We were able to get our Canoo WebTest scripts to select these with its forceHiddenInputField step. I thought maybe I could do something similar in Watir with input type=hidden, but I can't get the syntax right and I can't find any examples. I can't figure out where I would put input type=hidden in my text_field step. Would someone please point me to examples that might help me figure this out? I apologize if this is an ignorant question. I searched the mailing list and the Watir site but I could not figure out how to make this work. thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] type-ahead select lists
That's what I had when this was just a regular select list, it doesn't work anymore now that we have this dojo stuff. -- Lisa On Mon, May 23, 2011 at 1:59 PM, Ashok Tulachan tulachanas...@gmail.comwrote: Hi Lisa, I don't know how you still have select as the input type if the dropdown is changed. Can you try this code? ie.select_list(:id, advisor.dealerId).select some value Thanks On Mon, May 23, 2011 at 2:44 PM, Lisa Crispin lisa.cris...@gmail.comwrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Here's the HTML: select dojoType=dijit.form.FilteringSelect id=advisor.dealerId name=advisor.dealerId style='width: 550px;' option value=0 /option option value=1059 1717 Capital Management / 300 Continental Drive / Suite 3 South / Newark, DE 19713-4329 / /option ...etc I thought I could use text_field to set a value here, just as if I typed it manually on the page. I tried ie.text_field(:id, 'advisor.dealerId').set(some value). When I do this in irb, I see it set the value, but when I submit, it shows the default value was selected instead. I also tried fire_event(onclick), that didn't help. We were able to get our Canoo WebTest scripts to select these with its forceHiddenInputField step. I thought maybe I could do something similar in Watir with input type=hidden, but I can't get the syntax right and I can't find any examples. I can't figure out where I would put input type=hidden in my text_field step. Would someone please point me to examples that might help me figure this out? I apologize if this is an ignorant question. I searched the mailing list and the Watir site but I could not figure out how to make this work. thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Regards, Ashok Tulachan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: type-ahead select lists
Wow, I never even heard of send_keys, I'll give it a try, thank you. -- Lisa On Mon, May 23, 2011 at 3:26 PM, George george.sand...@gmail.com wrote: Hi Lisa, I think I found an example you're using here: http://www.upscale.utoronto.ca/test/dojo/tests/widget/test_Select.html I'm looking at Select #2 (dataUrl, autocomplete=true). The only way I could get it to work is by using send_keys: b = Watir::IE.attach(:title, /Dojo/) test_field = b.span(:class = dojoComboBoxOuter dj_ie, :index = 2).text_field(:class, dojoComboBox) test_field.focus b.send_keys(florida) sleep 2 b.send_keys({ENTER}) On May 23, 12:44 pm, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Here's the HTML: select dojoType=dijit.form.FilteringSelect id=advisor.dealerId name=advisor.dealerId style='width: 550px;' option value=0 /option option value=1059 1717 Capital Management / 300 Continental Drive / Suite 3 South / Newark, DE 19713-4329 / /option ...etc I thought I could use text_field to set a value here, just as if I typed it manually on the page. I tried ie.text_field(:id, 'advisor.dealerId').set(some value). When I do this in irb, I see it set the value, but when I submit, it shows the default value was selected instead. I also tried fire_event(onclick), that didn't help. We were able to get our Canoo WebTest scripts to select these with its forceHiddenInputField step. I thought maybe I could do something similar in Watir with input type=hidden, but I can't get the syntax right and I can't find any examples. I can't figure out where I would put input type=hidden in my text_field step. Would someone please point me to examples that might help me figure this out? I apologize if this is an ignorant question. I searched the mailing list and the Watir site but I could not figure out how to make this work. thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009)http://lisacrispin.com @lisacrispin on Twitterhttp://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] type-ahead select lists
The pages where we're using this aren't public. But I will look at this link, thanks! -- Lisa On Mon, May 23, 2011 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 23, 2011 at 9:44 PM, Lisa Crispin lisa.cris...@gmail.com wrote: We are changing what used to be regular drop-down select list boxes to a dojo widget thingie that allows type ahead to select the item. Is the page public? Or a similar page? Frameworks usually have examples somewhere online. If you think the only problem is that a JavaScript event is not fired (by Watir), take a look at this: http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired If the site is not public, but you could show it to me, contact me off list. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host viaqa.mobi conference on software testing - organizer -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] HTML element order different in IE8 from IE7
Thanks, Ethan and Charley. I didn't write this script, and the person who did left a few years ago, so I can't say why he did what he did, but he wrote LOTS of scripts that parse html in this way. He was trying to make the scripts really flexible, and kind of act like a manual tester just trying lots of different cases on the page. So the test scrapes all the data on the page and clicks different anniversary dates for different people listed. I think it's overkill, and we need to refactor these tests and simplify them. I didn't know about the order with html - that's good to know. It's a wonder the test has run fine all these years. I'll put a bug in about the error message. thanks, Lisa On Fri, Sep 3, 2010 at 2:03 PM, Ethan notet...@gmail.com wrote: There are several problems here. - The attributes of an html object aren't meant to be in any particular order; them changing is not really a bug. - Using a regexp to parse html is a fundamentally broken idea. - Why are you passing a third argument to #radio at all if you are just getting that value from the html, corresponding to the same element you are trying to retrieve? why not just do ie.radio(:name, 'anniversaryDate') ? The error message isn't great, that is true. I would recommend to open a ticket for that at http://jira.openqa.org/browse/WTR On Fri, Sep 3, 2010 at 15:34, Lisa Crispin lisa.cris...@gmail.com wrote: I had a script fail when running it on IE8, it's several years old and works fine on IE7. It's setting a radio button: ie.radio(:name, 'anniversaryDate', anniversary_date).set The value of anniversary_date is a date like '10-01-2008' (at least, in IE7), it's set by using regex to parse the html anniv_regex = /id=anniversaryDate(\d+).*?value=?(.+?)? name=/ In IE7 the html looks like this: input type=radio value=10-01-1992 name=anniversaryDate id=anniversaryDate1 In IE8 the html looks like this: input name=anniversaryDate id=anniversaryDate1 type=radio value=10-01-1992/ In IE7, the value of anniversary_date ends up as: 10-01-2010 In IE8, the value of anniversary_date ends up as: 10-01-2010 type=radio And I get an error Watir::Exception::UnknownObjectException: Unable to locate element, using :name, anniversaryDate C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_exists' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in `enabled?' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in `assert_enabled' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:538:in `set' But in IRB if I type ie.radio(:name, 'anniversaryDate', '10-01-2010').set it works fine - so it's not that it can't find the name, the value is wrong. So one problem is a weird IE8 thing, I don't know what to do about that. But the other problem is, the error message is misleading. I wasted some time thinking something was wrong with the name. Thanks Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] HTML element order different in IE8 from IE7
) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.startup.JiraStartupChecklistFilter.doFilter(JiraStartupChecklistFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) On Sat, Sep 4, 2010 at 8:33 AM, Lisa Crispin lisa.cris...@gmail.com wrote: Thanks, Ethan and Charley. I didn't write this script, and the person who did left a few years ago, so I can't say why he did what he did, but he wrote LOTS of scripts that parse html in this way. He was trying to make the scripts really flexible, and kind of act like a manual tester just trying lots of different cases on the page. So the test scrapes all the data on the page and clicks different anniversary dates for different people listed. I think it's overkill, and we need to refactor these tests and simplify them. I didn't know about the order with html - that's good to know. It's a wonder the test has run fine all these years. I'll put a bug in about the error message. thanks, Lisa On Fri, Sep 3, 2010 at 2:03 PM, Ethan notet...@gmail.com wrote: There are several problems here. - The attributes of an html object aren't meant to be in any particular order; them changing is not really a bug. - Using a regexp to parse html is a fundamentally broken idea. - Why are you passing a third argument to #radio at all if you are just getting that value from the html, corresponding to the same element you are trying to retrieve? why not just do ie.radio(:name, 'anniversaryDate') ? The error message isn't great, that is true. I would recommend to open a ticket for that at http://jira.openqa.org/browse/WTR On Fri, Sep 3, 2010 at 15:34, Lisa Crispin lisa.cris...@gmail.comwrote: I had a script fail when running it on IE8, it's several years old and works fine on IE7. It's setting a radio button: ie.radio(:name, 'anniversaryDate', anniversary_date).set The value of anniversary_date is a date like '10-01-2008' (at least, in IE7), it's set by using regex to parse the html anniv_regex = /id=anniversaryDate(\d+).*?value=?(.+?)? name=/ In IE7 the html looks like this: input type=radio value=10-01-1992 name=anniversaryDate id=anniversaryDate1 In IE8 the html looks like this: input name=anniversaryDate id=anniversaryDate1 type=radio value=10-01-1992/ In IE7, the value of anniversary_date ends up as: 10-01-2010 In IE8, the value of anniversary_date ends up as: 10-01-2010 type=radio And I get an error Watir::Exception::UnknownObjectException: Unable to locate element, using :name, anniversaryDate C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_exists' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in `enabled?' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in `assert_enabled' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:538:in `set' But in IRB if I type ie.radio(:name, 'anniversaryDate', '10-01-2010').set it works fine - so it's not that it can't find the name, the value is wrong. So one problem is a weird IE8 thing, I don't know what to do about that. But the other problem is, the error message is misleading. I wasted some time thinking something was wrong with the name. Thanks Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http
[wtr-general] HTML element order different in IE8 from IE7
I had a script fail when running it on IE8, it's several years old and works fine on IE7. It's setting a radio button: ie.radio(:name, 'anniversaryDate', anniversary_date).set The value of anniversary_date is a date like '10-01-2008' (at least, in IE7), it's set by using regex to parse the html anniv_regex = /id=anniversaryDate(\d+).*?value=?(.+?)? name=/ In IE7 the html looks like this: input type=radio value=10-01-1992 name=anniversaryDate id=anniversaryDate1 In IE8 the html looks like this: input name=anniversaryDate id=anniversaryDate1 type=radio value=10-01-1992/ In IE7, the value of anniversary_date ends up as: 10-01-2010 In IE8, the value of anniversary_date ends up as: 10-01-2010 type=radio And I get an error Watir::Exception::UnknownObjectException: Unable to locate element, using :name, anniversaryDate C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_exists' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in `enabled?' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in `assert_enabled' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:538:in `set' But in IRB if I type ie.radio(:name, 'anniversaryDate', '10-01-2010').set it works fine - so it's not that it can't find the name, the value is wrong. So one problem is a weird IE8 thing, I don't know what to do about that. But the other problem is, the error message is misleading. I wasted some time thinking something was wrong with the name. Thanks Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Misleading error message on set radio button
Oops, that was a bad subject line before. It's not Watir's fault IE8 is screwy. On Fri, Sep 3, 2010 at 1:34 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I had a script fail when running it on IE8, it's several years old and works fine on IE7. It's setting a radio button: ie.radio(:name, 'anniversaryDate', anniversary_date).set The value of anniversary_date is a date like '10-01-2008' (at least, in IE7), it's set by using regex to parse the html anniv_regex = /id=anniversaryDate(\d+).*?value=?(.+?)? name=/ In IE7 the html looks like this: input type=radio value=10-01-1992 name=anniversaryDate id=anniversaryDate1 In IE8 the html looks like this: input name=anniversaryDate id=anniversaryDate1 type=radio value=10-01-1992/ In IE7, the value of anniversary_date ends up as: 10-01-2010 In IE8, the value of anniversary_date ends up as: 10-01-2010 type=radio And I get an error Watir::Exception::UnknownObjectException: Unable to locate element, using :name, anniversaryDate C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_exists' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in `enabled?' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in `assert_enabled' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:538:in `set' But in IRB if I type ie.radio(:name, 'anniversaryDate', '10-01-2010').set it works fine - so it's not that it can't find the name, the value is wrong. So one problem is a weird IE8 thing, I don't know what to do about that. But the other problem is, the error message is misleading. I wasted some time thinking something was wrong with the name. Thanks Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] New proposed Watir project home on the wiki
I vote for the new page. It is more inviting and looks easier to navigate. -- Lisa On Sun, Jan 31, 2010 at 9:32 PM, Alister Scott alister.sc...@gmail.comwrote: Hi, Now that we have the latest version of Confluence, I was thinking of updating the project home page on the wiki. I wanted to make it more dynamic, so I have come up with a proposal. The current page is: http://wiki.openqa.org/display/WTR/Project+Home The new proposed page is: http://wiki.openqa.org/display/WTR/Project+Home+%28Proposed%29 Please take a look and let me know what you think, and what you think could be better. Cheers, Alister Scott -- 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 -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: happy belated birthday watir.
Happy Birthday! That is so cool! Did you tweet this? On Wed, Nov 18, 2009 at 1:53 PM, Paul Rogers paul.rog...@shaw.ca wrote: If Im correct, watirs first public appearance was 5 years ago ( plus a few days as I forgot to send the email). Bret was teaching a class on test automation at StarWest, and I helped out. This was the first appearance of watir. During the class we found lots of bugs. Thanks to all the students for not walking out on us. Is anyone from that class on the list? http://www.sqe.com/Events/Archive/sw2004/tutorials.html Paul -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Sai
That is a good idea, where can we update the doc? Is it all in github also? -- Lisa On Mon, Sep 28, 2009 at 10:22 PM, Paul Rogers paul.rog...@shaw.ca wrote: You're a good writer, documentation is always in need of improvemnet. Paul On Mon, Sep 28, 2009 at 6:14 PM, Lisa Crispin lisa.cris...@gmail.comwrote: I'm in awe of anyone who contributes to open source tools. To me, the more recognition they get, the better. I am a guilty user of all these contributions. On Mon, Sep 28, 2009 at 6:22 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Sep 28, 2009 at 5:26 PM, Bret Pettichord bpettich...@gmail.com wrote: I think we could also recognize a community team. Maybe we add Sai to this group as well? I was planning to suggest more people for the core team after I see the response for Sai. Jari Bakken of Celerity (http://celerity.rubyforge.org/) and Dave Hoover of SafariWatir (http://safariwatir.rubyforge.org/). Looks like Jari belongs even to Watir core developers. I guess I did not monitor github close enough. Sai and Dave did not contribute any code to Watir, so they do not belong to core developers, but they created support for a browser that Watir did not support, and I think their effort should be recognized by adding them to the community team. Anyway, that is just my opinion. I this community does not think the same, I will accept it. Željko -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Sai
I'm in awe of anyone who contributes to open source tools. To me, the more recognition they get, the better. I am a guilty user of all these contributions. On Mon, Sep 28, 2009 at 6:22 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Sep 28, 2009 at 5:26 PM, Bret Pettichord bpettich...@gmail.com wrote: I think we could also recognize a community team. Maybe we add Sai to this group as well? I was planning to suggest more people for the core team after I see the response for Sai. Jari Bakken of Celerity (http://celerity.rubyforge.org/) and Dave Hoover of SafariWatir (http://safariwatir.rubyforge.org/). Looks like Jari belongs even to Watir core developers. I guess I did not monitor github close enough. Sai and Dave did not contribute any code to Watir, so they do not belong to core developers, but they created support for a browser that Watir did not support, and I think their effort should be recognized by adding them to the community team. Anyway, that is just my opinion. I this community does not think the same, I will accept it. Željko -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Sai
That's funny, I just met Sai week before last in India, I didn't even know he had done ChromeWatir, I'm out of the Watir look ATM. I would sure add him to the core team! He rocks. -- Lisa On Sun, Sep 27, 2009 at 3:43 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: I have just realized that Sai Venkatakrishnan ( http://developer-in-test.blogspot.com, http://twitter.com/sai_venkat, https://github.com/saivenkat), creator of ChromeWatir ( http://code.google.com/p/chrome-watir), but not just that, is not in Watir Core team (http://watir.com/community/). I do not know if we have official way of introducing new people to the core team (if we do, please point me there), but I suggest that we add Sai to the core team. Thoughts? Željko -- http://watirpodcast.com/ -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: WatirCraft LLC is closing
I was really bummed to hear about this too. Congratulations on your new gig, Bret. I suspect you will continue to contribute to the software dev and testing community in some way, as you always have! Thanks to Bret and Pete for all they have done to improve Watir, it sure helped me and my team a ton. And thanks to all the other Watir contributors and us users hope you will all stay involved! -- Lisa On Thu, Jun 4, 2009 at 9:25 AM, Pete Dignan p...@watircraft.com wrote: Z* - sure, it's ok to ask. When Bret and I started WatirCraft, we believed there were things that needed to be done for open source Watir (like support for Firefox, and a standard framework), to make the tool more attractive to a broader group of users than the innovators and early adopters who were already using it. It took a while to do those things, and by the time they were done, we didn't have enough time/money to build a product, get it to market, and become cash flow positive. We changed our strategy and began to offer training and consulting services; but we were not able to find enough companies to buy these services (soon enough). We had made a decision early on not to raise VC or Angel investment in the business, which in hindsight might have been a good idea. So, we ran out of money. I want to thank you, Z* the Watir Journalist, and Charley, and Alister, and all the many many members of the Watir community who welcomed me and encouraged us in trying to make a go of WatirCraft. What an amazing, remarkable group of people! By the way - Bret and I are in the process of quickly shutting down all the bits and pieces that make up a company; so if anyone reading this is thinking Wait! I would like to take over WatirCraft! please contact us right away. Soon my WatirCraft email will be disabled, but if anyone wants to reach me, you can use pdignan at prototest dot com, or petedignan at gmail dot com. Thanks again to everyone for all your support, good ideas and encouragement. Pete On Jun 4, 6:37 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jun 4, 2009 at 5:45 AM, Bret Pettichord b...@pettichord.com wrote: Pete Dignan and I have decided to shut down WatirCraft LLC. I am really sorry to hear that. Is it polite to ask why? I will begin working full time for Convio in July. Good luck on your new job. Željko -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Running Watir suite from Hudson
We don't use Watircraft or rspec, but I'll look into that batch task. Thanks! -- Lisa On Fri, May 22, 2009 at 1:33 AM, karim rayani karim@gmail.com wrote: yeh watircraft does the same. we need to define the tasks in the spec folder and run with the command rake rspec. i did try it for a couple of tasks On Fri, May 22, 2009 at 12:50 PM, al3kc aleks.kiev...@gmail.com wrote: I think the Batch Task is all you need to run your tests. This plugin should be installed by default. -- Regards, Alkarim Rayani -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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] Running Watir suite from Hudson
Is anyone using Hudson to run their Watir suites? Is there a Hudson plugin for Watir? We've always run our suites from the DOS window, using testrunner (we use the test/unit framework). But we really need to get it into a scheduled build. We can run it on a slave Windows vm from Hudson, but we aren't sure how to be able to see the results. Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: How to work with popups?
There was a recent thread on this so you may want to search the email archive. This is what we do, but I don't know if it is the best way. require 'watir\ie' require 'watir\contrib\enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end On Thu, May 14, 2009 at 3:35 PM, satish spanchumar...@gmail.com wrote: Can you some one give me an idea how to work with popups. Here is my requirement. - When I click on Save image icon on the IE browser, according to data validation rules I will get a warning popup box. I will have to validate the warning message on the popup box whether it is correct or not and then needs to respond by click on OK button. Can some one give me an idea around this. I am very new to Watir. Appreciate your help. Here I tried thisbut did not work.. == require watir require win32ole require watir/contrib/enabled_popup ie.image(:id, 'ctl00_contentChildWindow_secUserDetails_ctl02_menu_secUserDetails_DXI0_Img').click hwnd = ie.enabled_popup(5) if (hwnd) #yeah! a popup popup = WinClicker.new popup.makeWindowActive(hwnd) popup.clickWindowsButton(Windows Internet Explorer, OK, 30) end === ruby Phone_Mask_Test.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from Phone_Mask_Test.rb:4 Exit code: 1 Thank you, Satish -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: thinking about automation frameworks/harnesses
Speaking as someone who is definitely OO-challenged and a barely competent Ruby scripter, I like the simplicity of what Chris did, I can understand it right away. If I were someone just starting out on Watir, it would make sense to me. -- Lisa On Wed, Apr 29, 2009 at 9:08 AM, Chris McMahon christopher.mcma...@gmail.com wrote: On Apr 29, 12:47 am, JArkelen johnvanarke...@gmail.com wrote: It wasn't broad criticism, it was just my 2 cents about combining test data and object data. I don't know what you mean by object data. Probably a character flaw on my part, but that's why I was hoping for an example of what you meant. And since the original example is so tiny (and so imperative), refactoring it shouldn't take more than a minute or so. -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: What editor should I use for mac?
I have Eclipse 3.4.1 and it kind of seems like it came with the Ruby plug-in, but as our sys admin installed it for me (I'm challenged at setting up Eclipse correctly) maybe he installed the plug-in too. Anyway, works fine for me. -- Lisa On Wed, Apr 22, 2009 at 9:42 AM, Jeff Fry jeff@gmail.com wrote: There isn't a separate ruby version of Eclipse, though you'll want to install the ruby plug-in. See the Watir wiki page on Eclipse: http://wiki.openqa.org/display/WTR/Setting+up+Eclipse+for+Ruby On Wed, Apr 22, 2009 at 8:32 AM, Hassan Malik hassanm_...@yahoo.comwrote: I am curently SciTe on windows and wold like to try Eclipse. Does it matter what version I use? They have Eclipse IDE for Java, C/C++, but I don't see one for ruby. http://www.eclipse.org/downloads/ -- *From:* Lisa Crispin lisa.cris...@gmail.com *To:* watir-general@googlegroups.com *Sent:* Tuesday, April 21, 2009 5:26:31 PM *Subject:* [wtr-general] Re: What editor should I use for mac? I confess I don't use Watir much on my mac yet - it's on my list to someday get the scripts running in Firewatir. But I just use Eclipse to edit my Watir scripts on either box. Works well. -- Lisa On Tue, Apr 21, 2009 at 3:14 PM, Moochie dduph...@redbrickhealth.comwrote: I was just give a mac and I've attempted to get watir working on it, but it said I couldn't save a file as .rb I could only save it as .rtb. Also, should I install ubuntu? -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.com -- Jeff Fry http://testingjeff.wordpress.com http://associationforsoftwaretesting.org -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: What editor should I use for mac?
I confess I don't use Watir much on my mac yet - it's on my list to someday get the scripts running in Firewatir. But I just use Eclipse to edit my Watir scripts on either box. Works well. -- Lisa On Tue, Apr 21, 2009 at 3:14 PM, Moochie dduph...@redbrickhealth.comwrote: I was just give a mac and I've attempted to get watir working on it, but it said I couldn't save a file as .rb I could only save it as .rtb. Also, should I install ubuntu? -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Error in handling popup
We seem to do just this. I haven't looked at it in awhile so I'm not sure if this is everything. This is in a module. require 'watir\ie' require 'watir\contrib\enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end On Wed, Apr 8, 2009 at 6:26 AM, spike vinaykumarl...@gmail.com wrote: Hi I'm woking on windows platform and IE7 using WATIR I've used the following code for handling JavaScript popup require 'win32ole' wsh WIN32OLE.new('Wscript.Shell') wsh.AppActivate('Windows Internet Explorer') wsh.Sendkeys('{ENTER}') but its not working i'm getting the following error. 1) Error: test_manage_resources(Manageresources): NoMethodError: undefined method `wsh' for #Manageresources:0x2b8c4bc manageresource.rb:24:in `test_manage_resources' Please Please please... give a solution to my problem i'm stuck with handling popup from past 2 days.. thankingyou -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Test Automation? Pashaw!
results to be replicated?) 5) regression suites which are boring as hell to execute manually over and over.. One problem is that many of these rarely find bugs after the test is first written. and since a tester's goal is generaly to find bugs, that can be a problem. If I'm looking for a quick win, I want something that can benefit the entire team, so something like a useful utility script (if you've a need for one) or a BVT type test to save people from wasting time with bad buids, might be your best bet.. The tests of type 3 are often complicated to setup and may require a speciaized environment to run them, so that wouldn't be my first choice, OTOH managers LOVE graphs and numbers so something that reports on the product performance and can be run on each build might be a way to gain some good visibility. What is it you are assigned to do in terms of scripting? can you find something in there you believe might represent a potential 'quick win' and/or proof-of-concept? On Apr 4, 11:14 am, George george.sand...@gmail.com wrote: It seems that I've been encountering more people within my workplace (and, alas, even within my own QA team!) that are not sold on test automation. From what I've learned so far, there seems that automation will never cover 100% of what needs to be tested, but this doesn't negate the need. Another frustration is that I've been tasked to write automation scripts as part of my year-end goals. However, I haven't been assigned hours in my work week to do them! All of my script development has been after-hours and weekends (notice I'm posting this on a Saturday!). Has anyone else run into naysayers? How can I convince the decision- makers that this is a worthwhile effort? -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Watir design patterns?
Gerard Meszaros' book is excellent, I highly recommend it. IMO, the patterns apply to tests above the unit level equally well. He also has a lot of general good test design advice. However, it didn't provide me with any specific help about how to design Ruby/Watir test scripts. -- Lisa On Fri, Apr 3, 2009 at 4:05 PM, Paul Rogers paul.rog...@shaw.ca wrote: I didnt know about this book, I'll try and check it out. There is also xUnit Patterns by Gerard Mezaros ( i think thats the right spelling ) I think its more appropriate for regular developer unit tests though. Paul On Fri, Apr 3, 2009 at 3:58 PM, Bret Pettichord b...@pettichord.comwrote: The Design Patterns in Ruby book by Russ Olsen addresses many of these questions. Have you looked at it? Bret Lisa Crispin wrote: +1 on all that. Plus, as someone not very good w/ OO, I want to know stuff like when to use a class vs. a mixin, what kind of variables to use (global or whatever), tradeoffs of flexibility and maintainability. I'm sure if we were starting with Watir today, we'd use WatirCraft and things would be easier, but now that we're 4 years down the road and have a huge suite of scripts, I'm never sure what's the best way forward. -- Lisa On Fri, Apr 3, 2009 at 2:09 PM, Jim Knowlton jknowlton...@gmail.com mailto:jknowlton...@gmail.com wrote: I think the biggest thing alot of us Watir developers need is a good guide to design patterns with Watir. I know for myself, I know the commands and basic syntax pretty well, and can design a test structure that works, but I'm sure there are things I'm doing that could be designed better (I'm a tester, after all, not a full-time programmer). I'd love a guide that describes best practices for how to set up a directory structure, set up rake for common tasks, etc. I know WatirCraft attempts to address this to some extent, but I guess I'm suggesting that some people might need to design their own framework, but not know how to do it. My two cents. Jim -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.com -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16-17 www.watircraft.com/training -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Ramping up your Ruby skills
I mentioned it! On Fri, Apr 3, 2009 at 10:44 AM, Paul Rogers paul.rog...@shaw.ca wrote: im surprised no one has mentioned Brian Maricks book, Everyday Scripting with Rubyhttp://search.barnesandnoble.com/Everyday-Scripting-with-Ruby/Brian-Marick/e/9780977616619 Paul On Fri, Apr 3, 2009 at 10:41 AM, Wesley Chen cjq@gmail.com wrote: The book: Pragmatic Bookshelf, Programming Ruby 2nd is really good for Ruby studying. Thanks. Wesley Chen. On Sat, Apr 4, 2009 at 12:18 AM, George george.sand...@gmail.com wrote: Thanks for the links, Tiffany! On Apr 3, 9:02 am, Tiffany Fodor tcfo...@comcast.net wrote: Hey Bret! For some this may be a little remedial, but I really liked Chris Pine's 'Learn to Program' tutorial. He starts out assuming you haven't ever written any code at all. I hadn't written any code for several years and this got me up and running in a couple of days. http://pine.fm/LearnToProgram/ Of course, there's lots more to learn after that. I think the Pragmatic Programmers 'Pickaxe' book is the most popular with this group: http://www.rubycentral.com/book/ -Tiffany On Apr 3, 9:45 am, Bret Pettichord b...@pettichord.com wrote: People who are new to Watir often need to learn Ruby to be effective. What resources should we recommend for this? What books, websites, blogs or videos have you found to be helpful? Online training? -- Bret Pettichord CTO, WatirCraft LLC,www.watircraft.com Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog http://www.io.com/%7Ewazmo/blog Twitter,www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16-17www.watircraft.com/training -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Watir design patterns?
+1 on all that. Plus, as someone not very good w/ OO, I want to know stuff like when to use a class vs. a mixin, what kind of variables to use (global or whatever), tradeoffs of flexibility and maintainability. I'm sure if we were starting with Watir today, we'd use WatirCraft and things would be easier, but now that we're 4 years down the road and have a huge suite of scripts, I'm never sure what's the best way forward. -- Lisa On Fri, Apr 3, 2009 at 2:09 PM, Jim Knowlton jknowlton...@gmail.com wrote: I think the biggest thing alot of us Watir developers need is a good guide to design patterns with Watir. I know for myself, I know the commands and basic syntax pretty well, and can design a test structure that works, but I'm sure there are things I'm doing that could be designed better (I'm a tester, after all, not a full-time programmer). I'd love a guide that describes best practices for how to set up a directory structure, set up rake for common tasks, etc. I know WatirCraft attempts to address this to some extent, but I guess I'm suggesting that some people might need to design their own framework, but not know how to do it. My two cents. Jim -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Performance Testing
We have done a baseline with JMeter, we like the tool, but we used BadBoy to create the scripts (and it was a fairly rudimentary test). I was just wondering the other day if it's possible to incorporate Watir scripts with some perf/load test tool. I heard BrowserMob can use Selenium scripts. -- Lisa On Thu, Apr 2, 2009 at 2:21 PM, Jason Shelton jas.shel...@hotmail.comwrote: All, I am writing to ask the group what tools you all are using for performance/load testing on your web apps. Are you using Watir? If so, how did you structure your tests to simulate multiple users? Thanks in advance for all responses. - Shelton -- Quick access to your favorite MSN content and Windows Live with Internet Explorer 8. Download FREE now!http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Watir users: What is your role at work?
George, that's interesting that you want to migrate more into development. The person who wrote most of our Watir scripts (and did a good job with the design, I think) was a Perl scripter before he came to us, and while he is still working as a tester / test automation guy, he wants to move back into development. The tester we hired after he left, who also did a lot of work on the Watir scripts, decided to learn Java and be a developer so that is what he has done (still on our team). So I can't help wondering if someone who succeeds with Watir is always going to be someone with a strong desire to do programming. I personally love automating test scripts, but I wouldn't want to write production code. I can't explain why that is (I used to be a programmer, back in the pre-OO days). I'm trying to do most of the Watir work now in fear that our latest new tester might go through the same transition! Just joking, but she also has a strong programming and automation background. I think that's really required on a small team like ours. -- Lisa On Thu, Mar 5, 2009 at 9:46 AM, George george.sand...@gmail.com wrote: Charley, speaking on that spectrum, I'm just getting into real programming, and would like to slide more towards being a real developer while retaining and building on my testing skills. Out of our entire QA team, I'm becoming the scripting guy, which is kind of sad since we all need to be at the same level. Nevertheless, I'm thoroughly enjoying my education and it seems that I have some job security. I've been tasked to automate testing for all of our web applications. I hope to go from understanding 20% of the posts on this forum to at least 40% :) On Mar 4, 2:25 pm, Charley Baker charley.ba...@gmail.com wrote: I'm a test developer, with a background in testing as well as development. Test scripts and automation testing should be run as development projects - scm, code reviews, ideally paired programming, branch cuts, working with the production code developers, running, creating and sharing tests. There's a spectrum of where you place yourself on the scale between tester and developer. The question definitely deserves a longer answer. Something we tried tackling at the td/dt conf a year or two back. As a side note, I don't hire people who have no automation experience, there has to be some scripting skills. It's an interesting question. Charley Baker blog:http://charleybakersblog.blogspot.com/ Lead Developer, Watir,http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Wed, Mar 4, 2009 at 1:00 PM, JArkelen johnvanarke...@gmail.com wrote: Hi, I'm a test automater en performance tester and use Watir for our functional regression tests. On Mar 4, 6:14 pm, Lisa Crispin lisa.cris...@gmail.com wrote: Hi George, I'm a tester, I have learned enough Ruby to maintain and write new Watir scripts, and I know enough Java to sometimes be able to look at a traceback and figure out what the problem might be! It's a great question, I'm curious to know now too. Most Watir people I know have solid programming skills, and I think that makes things much easier all around for using Watir. -- Lisa On Wed, Mar 4, 2009 at 8:39 AM, george.sand...@gmail.com - Show quoted text - george.sand...@gmail.com wrote: I was just curious to know who is purely a QA tester (like myself) and who is both a tester and a developer... -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009)http://lisacrispin.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: Watir users: What is your role at work?
Hi George, I'm a tester, I have learned enough Ruby to maintain and write new Watir scripts, and I know enough Java to sometimes be able to look at a traceback and figure out what the problem might be! It's a great question, I'm curious to know now too. Most Watir people I know have solid programming skills, and I think that makes things much easier all around for using Watir. -- Lisa On Wed, Mar 4, 2009 at 8:39 AM, george.sand...@gmail.com george.sand...@gmail.com wrote: I was just curious to know who is purely a QA tester (like myself) and who is both a tester and a developer... -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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] browser seems to hang sporadically
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. 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. 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 --~--~-~--~~~---~--~~ 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: scripts for IE and Firefox both
My hope was: 1 set of scripts, different runtime parameters, works on mac or linux firefox and windows IE. On Fri, Jan 30, 2009 at 11:25 AM, Paul Rogers paul.rog...@shaw.ca wrote: I think applescript will do it on macs, but its another variable into the regression mix. Paul On Fri, Jan 30, 2009 at 11:20 AM, Bret Pettichord b...@pettichord.com wrote: Maybe someone else knows how to handle this on Macs. Like I've said before, i've never needed to work with these dialogs before for any of my clients, so i've never taken much time to research the possibilities. Bret Lisa Crispin wrote: Thanks, Bret. I was hoping to make it work with Firefox on the mac, actually. But it sounds like that's a non starter. I will pursue these issues more with my team! thanks Lisa On Thu, Jan 29, 2009 at 7:50 PM, Bret Pettichord b...@pettichord.com mailto:b...@pettichord.com wrote: Lisa, The problem with your code is that it is specific to both Windows and IE. Making it work with Firefox on Windows is a medium sized problem, but it still wouldn't help your developers with their macs. Off hand, I wouldn't know how to start on getting this work on other platforms. And yes, these kinds of dialogs are somewhat weird. Few apps use them today, they are considered poor design. Nowadays developers get the same effect using lighboxes which end up being modal according the strict definition of modal, but the look better. And they are fairly easy to handle with Watir on both IE and Firefox (on Windows and Macs). Bret Lisa Crispin wrote: To clarify - our Watir scripts handle our modal dialogs in IE just fine. For example: def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end I'm looking for affirmation that we will never be able to get these scripts to work with modal dialogs in Firefox unless the test automation fairy turns me into some better kind of programmer and I can add this functionality to Watir myself. I'm puzzled though - are modal dialogs weird? Do most apps not use them? What do you use instead? thanks Lisa On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote: ok, modal dialogs are a different beast entirely. I dont have a need for dialog support right now, and am working on drag and drop support in watir. If you are only require ing this on windows, you might want to look into autoit - if you want cros platform, no idea. Paul On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote: I guess I mean regular js pop up boxes. A modal dialog window that pops up and you have to click ok to keep going. They look the same in firefox as in IE. Lisa On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote: what do you use in Firefox for the modaldialogs? or do you mean regular js pop up boxes? Paul On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote: Hi, I hope this isn't too annoying of a question. I'm just trying to decide our next steps wrt Watir and our test automation. I just thought I'd double check on what I think I know already. I spent the last several weeks getting our Watir suites working with v. 1.6.2 and Vista. I finally beat them into submission, and I'm exhausted. (This is not a reflection on Watir, but probably on the design of our scripts, and definitely on my lack of expertise). My ultimate goal was to get these scripts working with Firefox also, and I had some hope when I first read about 1.6.2 that this would be possible. However, I recall that Bret replied
[wtr-general] Re: scripts for IE and Firefox both
Our app works fine, maybe because it's so old school, who knows! ;- On Fri, Jan 30, 2009 at 12:05 PM, Paul Rogers paul.rog...@shaw.ca wrote: im guessing many developers would hope for: 1 set of html pages, works on mac or linux firefox and windows IE ;-) Its really hard to do cross browser web apps well, and there are usually many more developers than testers, so dont be too disappointed you havent got cross browser/platform test software just yet. Paul On Fri, Jan 30, 2009 at 11:58 AM, Lisa Crispin lisa.cris...@gmail.com wrote: My hope was: 1 set of scripts, different runtime parameters, works on mac or linux firefox and windows IE. On Fri, Jan 30, 2009 at 11:25 AM, Paul Rogers paul.rog...@shaw.ca wrote: I think applescript will do it on macs, but its another variable into the regression mix. Paul On Fri, Jan 30, 2009 at 11:20 AM, Bret Pettichord b...@pettichord.com wrote: Maybe someone else knows how to handle this on Macs. Like I've said before, i've never needed to work with these dialogs before for any of my clients, so i've never taken much time to research the possibilities. Bret Lisa Crispin wrote: Thanks, Bret. I was hoping to make it work with Firefox on the mac, actually. But it sounds like that's a non starter. I will pursue these issues more with my team! thanks Lisa On Thu, Jan 29, 2009 at 7:50 PM, Bret Pettichord b...@pettichord.com mailto:b...@pettichord.com wrote: Lisa, The problem with your code is that it is specific to both Windows and IE. Making it work with Firefox on Windows is a medium sized problem, but it still wouldn't help your developers with their macs. Off hand, I wouldn't know how to start on getting this work on other platforms. And yes, these kinds of dialogs are somewhat weird. Few apps use them today, they are considered poor design. Nowadays developers get the same effect using lighboxes which end up being modal according the strict definition of modal, but the look better. And they are fairly easy to handle with Watir on both IE and Firefox (on Windows and Macs). Bret Lisa Crispin wrote: To clarify - our Watir scripts handle our modal dialogs in IE just fine. For example: def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end I'm looking for affirmation that we will never be able to get these scripts to work with modal dialogs in Firefox unless the test automation fairy turns me into some better kind of programmer and I can add this functionality to Watir myself. I'm puzzled though - are modal dialogs weird? Do most apps not use them? What do you use instead? thanks Lisa On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote: ok, modal dialogs are a different beast entirely. I dont have a need for dialog support right now, and am working on drag and drop support in watir. If you are only require ing this on windows, you might want to look into autoit - if you want cros platform, no idea. Paul On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote: I guess I mean regular js pop up boxes. A modal dialog window that pops up and you have to click ok to keep going. They look the same in firefox as in IE. Lisa On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote: what do you use in Firefox for the modaldialogs? or do you mean regular js pop up boxes? Paul On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote: Hi, I hope this isn't too annoying of a question. I'm just trying to decide our next steps wrt Watir and our test automation. I just thought I'd
[wtr-general] scripts for IE and Firefox both
Hi, I hope this isn't too annoying of a question. I'm just trying to decide our next steps wrt Watir and our test automation. I just thought I'd double check on what I think I know already. I spent the last several weeks getting our Watir suites working with v. 1.6.2 and Vista. I finally beat them into submission, and I'm exhausted. (This is not a reflection on Watir, but probably on the design of our scripts, and definitely on my lack of expertise). My ultimate goal was to get these scripts working with Firefox also, and I had some hope when I first read about 1.6.2 that this would be possible. However, I recall that Bret replied to one of my emails relating to dealing with modal dialogs this way: I'm saying that I do not have a plan on how to support modal dialog testing that will work with both IE and Firefox, and as far as I know, no one else is working on this. I'm wondering if this means we should abandon all hope of ever being able to run our scripts against Firefox (which would make them a lot easier to integrate with our build process, as well as easier for the developers who all use Macs to run them to help with their own testing)? The developers could run the scripts on their Parallels or VMWare, but the scripts run very slowly there for some reason. Should we be thinking about migrating to a different browser driver if we want to have scripts that everyone can use to help with testing? We have good tools for our automated regression tests, and I guess we could adapt those tests to do the same purpose of Watir, it just happened that it was the Watir scripts that got all the good flexibility that make them handy for setting up test scenarios. Do other people have automated scripts to help with exploratory testing and manual testing, and if so, what tools do you use for that? Or are other people just luckier and don't have modal dialogs to deal with? Thanks, Lisa --~--~-~--~~~---~--~~ 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: scripts for IE and Firefox both
To clarify - our Watir scripts handle our modal dialogs in IE just fine. For example: def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end I'm looking for affirmation that we will never be able to get these scripts to work with modal dialogs in Firefox unless the test automation fairy turns me into some better kind of programmer and I can add this functionality to Watir myself. I'm puzzled though - are modal dialogs weird? Do most apps not use them? What do you use instead? thanks Lisa On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca wrote: ok, modal dialogs are a different beast entirely. I dont have a need for dialog support right now, and am working on drag and drop support in watir. If you are only require ing this on windows, you might want to look into autoit - if you want cros platform, no idea. Paul On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com wrote: I guess I mean regular js pop up boxes. A modal dialog window that pops up and you have to click ok to keep going. They look the same in firefox as in IE. Lisa On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca wrote: what do you use in Firefox for the modaldialogs? or do you mean regular js pop up boxes? Paul On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com wrote: Hi, I hope this isn't too annoying of a question. I'm just trying to decide our next steps wrt Watir and our test automation. I just thought I'd double check on what I think I know already. I spent the last several weeks getting our Watir suites working with v. 1.6.2 and Vista. I finally beat them into submission, and I'm exhausted. (This is not a reflection on Watir, but probably on the design of our scripts, and definitely on my lack of expertise). My ultimate goal was to get these scripts working with Firefox also, and I had some hope when I first read about 1.6.2 that this would be possible. However, I recall that Bret replied to one of my emails relating to dealing with modal dialogs this way: I'm saying that I do not have a plan on how to support modal dialog testing that will work with both IE and Firefox, and as far as I know, no one else is working on this. I'm wondering if this means we should abandon all hope of ever being able to run our scripts against Firefox (which would make them a lot easier to integrate with our build process, as well as easier for the developers who all use Macs to run them to help with their own testing)? The developers could run the scripts on their Parallels or VMWare, but the scripts run very slowly there for some reason. Should we be thinking about migrating to a different browser driver if we want to have scripts that everyone can use to help with testing? We have good tools for our automated regression tests, and I guess we could adapt those tests to do the same purpose of Watir, it just happened that it was the Watir scripts that got all the good flexibility that make them handy for setting up test scenarios. Do other people have automated scripts to help with exploratory testing and manual testing, and if so, what tools do you use for that? Or are other people just luckier and don't have modal dialogs to deal with? Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.com -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: scripts for IE and Firefox both
Thanks, Bret. I was hoping to make it work with Firefox on the mac, actually. But it sounds like that's a non starter. I will pursue these issues more with my team! thanks Lisa On Thu, Jan 29, 2009 at 7:50 PM, Bret Pettichord b...@pettichord.comwrote: Lisa, The problem with your code is that it is specific to both Windows and IE. Making it work with Firefox on Windows is a medium sized problem, but it still wouldn't help your developers with their macs. Off hand, I wouldn't know how to start on getting this work on other platforms. And yes, these kinds of dialogs are somewhat weird. Few apps use them today, they are considered poor design. Nowadays developers get the same effect using lighboxes which end up being modal according the strict definition of modal, but the look better. And they are fairly easy to handle with Watir on both IE and Firefox (on Windows and Macs). Bret Lisa Crispin wrote: To clarify - our Watir scripts handle our modal dialogs in IE just fine. For example: def click_modal_button(ie, type='OK', sleep_time=6, timeout=20) hwnd = ie.enabled_popup(sleep_time) if (hwnd) w = WinClicker.new w.clickWindowsButton_hwnd( hwnd, #{type}) w=nil end end I'm looking for affirmation that we will never be able to get these scripts to work with modal dialogs in Firefox unless the test automation fairy turns me into some better kind of programmer and I can add this functionality to Watir myself. I'm puzzled though - are modal dialogs weird? Do most apps not use them? What do you use instead? thanks Lisa On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote: ok, modal dialogs are a different beast entirely. I dont have a need for dialog support right now, and am working on drag and drop support in watir. If you are only require ing this on windows, you might want to look into autoit - if you want cros platform, no idea. Paul On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote: I guess I mean regular js pop up boxes. A modal dialog window that pops up and you have to click ok to keep going. They look the same in firefox as in IE. Lisa On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote: what do you use in Firefox for the modaldialogs? or do you mean regular js pop up boxes? Paul On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote: Hi, I hope this isn't too annoying of a question. I'm just trying to decide our next steps wrt Watir and our test automation. I just thought I'd double check on what I think I know already. I spent the last several weeks getting our Watir suites working with v. 1.6.2 and Vista. I finally beat them into submission, and I'm exhausted. (This is not a reflection on Watir, but probably on the design of our scripts, and definitely on my lack of expertise). My ultimate goal was to get these scripts working with Firefox also, and I had some hope when I first read about 1.6.2 that this would be possible. However, I recall that Bret replied to one of my emails relating to dealing with modal dialogs this way: I'm saying that I do not have a plan on how to support modal dialog testing that will work with both IE and Firefox, and as far as I know, no one else is working on this. I'm wondering if this means we should abandon all hope of ever being able to run our scripts against Firefox (which would make them a lot easier to integrate with our build process, as well as easier for the developers who all use Macs to run them to help with their own testing)? The developers could run the scripts on their Parallels or VMWare, but the scripts run very slowly there for some reason. Should we be thinking about migrating to a different browser driver if we want to have scripts that everyone can use to help with testing? We have good tools for our automated regression tests, and I guess we could adapt those tests to do the same purpose of Watir, it just happened that it was the Watir scripts that got all the good flexibility that make them handy for setting up test scenarios. Do other people have automated scripts to help with exploratory testing and manual
[wtr-general] Re: Agile testing book
Thank y'all for your support! I'm interested to know what people think of it. Janet and I are big mind map fans, so we're glad to get positive feedback on that. Gojko's book is really good, +1 on that recommendation. -- Lisa On Wed, Jan 21, 2009 at 8:21 AM, Charley Baker charley.ba...@gmail.comwrote: Lisa, I'm more than happy to support the authors, so I did order a copy and will add my review on Amazon. :) After leafing through it at AWTA, I'm really excited to read it. The mind maps for the chapters is one of the coolest things I've seen. Sai, Also ordered a copy of Gojko's book as well. There must be something in the Watir, having a few great authors on this mailing list. :) -Charley On Tue, Jan 20, 2009 at 9:43 PM, sai saidesertrose2...@gmail.com wrote: Cool.. I am planning to buy one. As well Gojko's book on Bridging the communication gap is also good. Regards, Sai http://code.google.com/p/chrome-watir http://code.google.com/p/flash-watir On Jan 21, 9:04 am, Charley Baker charley.ba...@gmail.com wrote: Hi all, There are a few books that I recommend having on your shelf, this is one. I've just ordered this book, and am looking forward to reading it. http://www.amazon.com/Agile-Testing-Practical-Addison-Wesley-Signatur... This looks to be an interesting book. Ping me for book recommendations on various topics. -c -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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: figured it out Re: stupid install problem
I didn't think so either. I had just installed it a few weeks ago on the exact same configuration. -- Lisa On Sat, Dec 27, 2008 at 10:49 PM, Charley Baker charley.ba...@gmail.comwrote: Strange, you shouldn't have to do that in Windows. The one click installer used to do it. -c On Fri, Dec 26, 2008 at 1:43 PM, Lisa Crispin lisa.cris...@gmail.comwrote: I had to add RUBYOPT -rubygems to my environment variables - I have NO memory of ever doing that before, did Watir or Ruby change, or are my brain cells just dying off faster than usual? Sigh. On Fri, Dec 26, 2008 at 2:29 PM, Lisa Crispin lisa.cris...@gmail.comwrote: Hi all, My mac had a hard disk disaster, and only after that did I discover I had had a time machine backup disaster earlier, so I didn't have a backup from after I got watir working on my vmware windows xp on the mac. I reinstalled using the same steps I had done a few weeks back, but my watir scripts don't work, I get an error that watir isn't found. When I do irb and require 'watir', I get this: irb(main):001:0 require 'watir' LoadError: no such file to load -- watir from (irb):1:in `require' from (irb):1 I see emails on this list saying you have to require 'rubygems' before require 'watir', and that *does* work, however, I never did that before. Do I now have to go edit every Watir script I have and add require 'rubygems'? And is that going to work on a real PC? (I'm at home where I don't have a PC right now). I've never had problems like this installing watir - I have the latest of both Ruby and Watir ruby 1.8.6 patch level 287 watir 1.6.2 I installed per the instructions on http://wtr.rubyforge.org/install.html This stuff only happens to me when I'm at home and have no other options! :- Thanks, Lisa Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.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] stupid install problem
Hi all, My mac had a hard disk disaster, and only after that did I discover I had had a time machine backup disaster earlier, so I didn't have a backup from after I got watir working on my vmware windows xp on the mac. I reinstalled using the same steps I had done a few weeks back, but my watir scripts don't work, I get an error that watir isn't found. When I do irb and require 'watir', I get this: irb(main):001:0 require 'watir' LoadError: no such file to load -- watir from (irb):1:in `require' from (irb):1 I see emails on this list saying you have to require 'rubygems' before require 'watir', and that *does* work, however, I never did that before. Do I now have to go edit every Watir script I have and add require 'rubygems'? And is that going to work on a real PC? (I'm at home where I don't have a PC right now). I've never had problems like this installing watir - I have the latest of both Ruby and Watir ruby 1.8.6 patch level 287 watir 1.6.2 I installed per the instructions on http://wtr.rubyforge.org/install.html This stuff only happens to me when I'm at home and have no other options! :- Thanks, Lisa Thanks, Lisa --~--~-~--~~~---~--~~ 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] figured it out Re: stupid install problem
I had to add RUBYOPT -rubygems to my environment variables - I have NO memory of ever doing that before, did Watir or Ruby change, or are my brain cells just dying off faster than usual? Sigh. On Fri, Dec 26, 2008 at 2:29 PM, Lisa Crispin lisa.cris...@gmail.comwrote: Hi all, My mac had a hard disk disaster, and only after that did I discover I had had a time machine backup disaster earlier, so I didn't have a backup from after I got watir working on my vmware windows xp on the mac. I reinstalled using the same steps I had done a few weeks back, but my watir scripts don't work, I get an error that watir isn't found. When I do irb and require 'watir', I get this: irb(main):001:0 require 'watir' LoadError: no such file to load -- watir from (irb):1:in `require' from (irb):1 I see emails on this list saying you have to require 'rubygems' before require 'watir', and that *does* work, however, I never did that before. Do I now have to go edit every Watir script I have and add require 'rubygems'? And is that going to work on a real PC? (I'm at home where I don't have a PC right now). I've never had problems like this installing watir - I have the latest of both Ruby and Watir ruby 1.8.6 patch level 287 watir 1.6.2 I installed per the instructions on http://wtr.rubyforge.org/install.html This stuff only happens to me when I'm at home and have no other options! :- Thanks, Lisa Thanks, Lisa --~--~-~--~~~---~--~~ 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: Is the FireWatir-Watir integration working for you?
I just haven't had time to get it working. Actually I haven't even had time to get my whole suite of tests working again. They run individually, but fail in a suite - windows are not getting closed and the next test fails. The suite ran before fine although we had been having random failures we couldn't figure out. This is a big problem for us but we've been swamped. I am determined to figure it out this sprint and we added a story this sprint to be sure we have time. It is ultimately our goal to be able to use FireWatir since 100% of our team works on a Mac. A couple of us also have PCs. I am excited about the potential, though! I guess it's a movie I really, really want to see how it ends! -- Lisa On Thu, Dec 18, 2008 at 3:09 PM, Pete Dignan p...@watircraft.com wrote: I'm curious, now that 1.6.2 has been out for a little while. Is the integration of FireWatir and Watir working for you? Are you using it to test on both IE and Firefox? Are there issues that are preventing you from using it effectively? If 1.6.2 were a movie and you were a movie critic, how many stars would you give it? Pete -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisa.crispin.home.att.net http://lisacrispin.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: 1.6.2: Issue with enabled_popup.rb
As someone whose programming skills are limited, and who primarily works as a tester, it's hard for me to understand what you're saying. We've been running a big Watir suite for a few years now and it has handled our modal dialogs fairly well up to now. That took a bit of doing but we got it stable. I don't know what showModalDialogs is so I need to go look that up - would that solve our problem of being able to close the modal dialogs? Or are you saying modal dialogs aren't really supported? If that is true, are these our only choices: 1. Go back to the previous version of Watir and stay there forever, or until modal dialog support is provided (which sounds chancy as apparently we're the only ones using modal dialogs a lot?) 2. Dump Watir and look for another tool - we have a huge investment in our scripts and depend on them and I really don't want to do that. Am I overreacting - I just don't quite understand what you're saying. Thanks, Lisa On Tue, Dec 2, 2008 at 6:23 PM, Bret Pettichord [EMAIL PROTECTED] wrote: The reason that enabled popup is in contrib is to indicate that it is unsupported code. I've never used Watir's modal dialog support for production testing (except for showModalDialogs, which i've used and which IMHO has excellent support). The support for the other modal dialogs needs work simply for IE much less working on how to make this work cross-platform. Some of this code is not in contrib, although it probably should be. I've always found it easier to avoid dealing with modal dialogs, so I've never had personal motivation to work on this code. I've considered removing the nascent support for modal dialogs from Watir entirely (perhaps bundling as a separate gem), to help telegraph that this code is not being maintained or supported. Perhaps this would help this code find a new owner. Bret Lisa Crispin wrote: Hi Bret, Just to clarify - So for now we have to use require 'watir\ie' in order to require 'watir\contrib\enabled_popup', but in the next version, we won't have to use require 'watir\ie', correct? My next question may be ignorant - if we want to be able to run our scripts in firewatir as well as watir, does that mean we can't use this enabled_popup thing to deal with modal dialogs? In that case, how DO we deal with modal dialogs? thanks, Lisa On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: i've added the require statement to the enabled popup script itself, so this workaround will not be required with the next version of watir jpweston wrote: Thanks for this and your explanation in the Uninitialzied Constant post. j. On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: the solution is to add require 'watir/ie' to your script jpweston wrote: After installing WATIR 1.6.2, scripts that have the following line: require 'watir/contrib/enabled_popup' are causing the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' Here is what I have at the top of my scripts: require 'test/unit' require 'ci/reporter/rake/test_unit_loader.rb' require 'watir' require 'watir/testcase' require 'watir/contrib/enabled_popup' class TC_sales_tests Watir::TestCase include Watir code end Can someone point me toward what I am doing wrong here? These scripts worked with the version of 1.5 that I had installed. Thanks. Johnathan -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://www.agiletester.ca http://lisa.crispin.home.att.net http://lisacrispin.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb
Oh, ok. That kinda sucks, but we were already used to not being able to run the suites w/ firefox. But just to make sure - should it work with IE in the latest version? thanks, Lisa On Wed, Dec 3, 2008 at 2:47 PM, Bret Pettichord [EMAIL PROTECTED] wrote: I'm saying that I do not have a plan on how to support modal dialog testing that will work with both IE and Firefox, and as far as I know, no one else is working on this. Bret Lisa Crispin wrote: As someone whose programming skills are limited, and who primarily works as a tester, it's hard for me to understand what you're saying. We've been running a big Watir suite for a few years now and it has handled our modal dialogs fairly well up to now. That took a bit of doing but we got it stable. I don't know what showModalDialogs is so I need to go look that up - would that solve our problem of being able to close the modal dialogs? Or are you saying modal dialogs aren't really supported? If that is true, are these our only choices: 1. Go back to the previous version of Watir and stay there forever, or until modal dialog support is provided (which sounds chancy as apparently we're the only ones using modal dialogs a lot?) 2. Dump Watir and look for another tool - we have a huge investment in our scripts and depend on them and I really don't want to do that. Am I overreacting - I just don't quite understand what you're saying. Thanks, Lisa On Tue, Dec 2, 2008 at 6:23 PM, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The reason that enabled popup is in contrib is to indicate that it is unsupported code. I've never used Watir's modal dialog support for production testing (except for showModalDialogs, which i've used and which IMHO has excellent support). The support for the other modal dialogs needs work simply for IE much less working on how to make this work cross-platform. Some of this code is not in contrib, although it probably should be. I've always found it easier to avoid dealing with modal dialogs, so I've never had personal motivation to work on this code. I've considered removing the nascent support for modal dialogs from Watir entirely (perhaps bundling as a separate gem), to help telegraph that this code is not being maintained or supported. Perhaps this would help this code find a new owner. Bret Lisa Crispin wrote: Hi Bret, Just to clarify - So for now we have to use require 'watir\ie' in order to require 'watir\contrib\enabled_popup', but in the next version, we won't have to use require 'watir\ie', correct? My next question may be ignorant - if we want to be able to run our scripts in firewatir as well as watir, does that mean we can't use this enabled_popup thing to deal with modal dialogs? In that case, how DO we deal with modal dialogs? thanks, Lisa On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: i've added the require statement to the enabled popup script itself, so this workaround will not be required with the next version of watir jpweston wrote: Thanks for this and your explanation in the Uninitialzied Constant post. j. On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: the solution is to add require 'watir/ie' to your script jpweston wrote: After installing WATIR 1.6.2, scripts that have the following line: require 'watir/contrib/enabled_popup' are causing the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' Here is what I have at the top of my scripts: require 'test/unit' require 'ci/reporter/rake/test_unit_loader.rb' require 'watir' require 'watir/testcase' require 'watir/contrib/enabled_popup' class TC_sales_tests Watir::TestCase include Watir code
[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb
Hi Bret, Just to clarify - So for now we have to use require 'watir\ie' in order to require 'watir\contrib\enabled_popup', but in the next version, we won't have to use require 'watir\ie', correct? My next question may be ignorant - if we want to be able to run our scripts in firewatir as well as watir, does that mean we can't use this enabled_popup thing to deal with modal dialogs? In that case, how DO we deal with modal dialogs? thanks, Lisa On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED]wrote: i've added the require statement to the enabled popup script itself, so this workaround will not be required with the next version of watir jpweston wrote: Thanks for this and your explanation in the Uninitialzied Constant post. j. On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED] wrote: the solution is to add require 'watir/ie' to your script jpweston wrote: After installing WATIR 1.6.2, scripts that have the following line: require 'watir/contrib/enabled_popup' are causing the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' Here is what I have at the top of my scripts: require 'test/unit' require 'ci/reporter/rake/test_unit_loader.rb' require 'watir' require 'watir/testcase' require 'watir/contrib/enabled_popup' class TC_sales_tests Watir::TestCase include Watir code end Can someone point me toward what I am doing wrong here? These scripts worked with the version of 1.5 that I had installed. Thanks. Johnathan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] 1.6.2 - browser.attach question
Another question - on the development site you say: Watir 1.6.2 does not support Browser.attach. This will be supported in a future version. We use Browser.attach when we run our tests in a suite. What are we supposed to do instead, since Browser.attach isn't supported in 1.6.2? Or does this mean we can't use 1.6.2 at all? It seems weird that you couldn't run suites, there must be a way to do it that I just don't know about. Thanks, Lisa On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED]wrote: i've added the require statement to the enabled popup script itself, so this workaround will not be required with the next version of watir jpweston wrote: Thanks for this and your explanation in the Uninitialzied Constant post. j. On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED] wrote: the solution is to add require 'watir/ie' to your script jpweston wrote: After installing WATIR 1.6.2, scripts that have the following line: require 'watir/contrib/enabled_popup' are causing the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/ enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32 (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' Here is what I have at the top of my scripts: require 'test/unit' require 'ci/reporter/rake/test_unit_loader.rb' require 'watir' require 'watir/testcase' require 'watir/contrib/enabled_popup' class TC_sales_tests Watir::TestCase include Watir code end Can someone point me toward what I am doing wrong here? These scripts worked with the version of 1.5 that I had installed. Thanks. Johnathan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] oci8
I just upgraded to Vista 64 bit and had to reinstall everything. I installed Oracle Instant Client 10g, my sql*plus works and all so that's good. I am kind of stumped on oci8. When I go to the download, I don't see any download file that looks like it is for 64 bit. I tried installing ruby-oci8-1.0.3-ms2win32.rb even though it has 32 in the name, not 64. When I run my Watir script that uses oci8, it comes back and says it can't find oci.dll. I have an oci.dll in my Oracle directory, so I must be missing an environment variable or registry setting - but wouldn't the Oracle install set up everything that's needed? Do I have the wrong version of oci8, and if so, what would be the correct one? Do I need an environment variable, if so, what? I tried adding ORACLE_HOME (which the oracle client install did not add) but that didn't help. It seems like the 64 bit has all new ways of doing things. I've been researching on the web for about 3 hours now and I'm getting frustrated, is anyone using oci8 on Vista 64 bit? thanks, Lisa --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---