[Wtr-general] click with autoit on OK button

2007-07-05 Thread mihai
i have this code: $ie1.radios.each do |chk| chk.focus if $ie1.button(:index,2).exist? then $autoit.BlockInput(1) $ie1.button(:index,2).click

[Wtr-general] general questions when trying Watir

2007-07-05 Thread salamond
We are trying to find some tools to help us in web automation testing. Selenium WET Watir are all reviewed. Finally we choose Watir 'coz it's pure scriptable. Using Selenium and WET will make our scripts highly rely on IDE, which is not what we want to. But there's several problems these days

Re: [Wtr-general] ruby2exe and autoit

2007-07-05 Thread Charley Baker
You need to register AutoIt. In a command window, navigate to the directory where you've put AutoIt and type: regsvr32 AutoItX3.dll -Charley On 7/5/07, mihai [EMAIL PROTECTED] wrote: i have a script in wich im using an autoit control: $autoit= WIN32OLE.new(AutoItX3.Control) i want to test my

Re: [Wtr-general] Receiving extensive warning messages while trying to run Watir Ruby scripts

2007-07-05 Thread Charley Baker
It's likely that you have multiple Watir requires with different casing somewhere in your files: require 'watir' and require 'Watir' That'd be my first guess. Check your scripts for requires. -Charley On 7/4/07, Lavanya Lakshman [EMAIL PROTECTED] wrote: I have installed 1.8.5 version of

[Wtr-general] Best Combination - for Modal Dialog/Vista

2007-07-05 Thread Michael Kernaghan
Thanks the unit tests are of course the obvious resource, sorry. But trying them I am now confused. I am running the following test with the subsequent error. I have run out of brain. I cannot attach the 'Another' modal dialog. Can I borrow some brain? Environment Ruby

Re: [Wtr-general] How do I attach to a mailto window

2007-07-05 Thread Paul Rogers
watir doesnt support doing this itself. You could probably write something to do this using auto-it. But an easier way is to probably test it once manually, and then save the link details. and instead of clicking the link, just make sure it hasnt changed from when you manually tested it Paul

Re: [Wtr-general] How do I attach to a mailto window

2007-07-05 Thread Adam Reed
Yep - if you really read your method, you're asking watir to attach an IE instance itself to an MS Outlook window with the url ofthere won't be a url because it's an MS Outlook window. The simplest solution I can think of without delving into AutoIT would be to set your default mail client to

Re: [Wtr-general] How to detect installed version of Watir

2007-07-05 Thread Charley Baker
Open a command prompt, type: ruby -e require 'watir'; puts Watir::IE::VERSION; -Charley On 7/5/07, Nadine Whitfield [EMAIL PROTECTED] wrote: Hi- there may already be a thread about this, but I could not find it. I recently used the Windows .exe (rather than Gem) to install Watir on my

Re: [Wtr-general] How to detect installed version of Watir

2007-07-05 Thread George
Hi, Type the following at a command prompt: ruby -e 'require watir;puts Watir::IE::VERSION' George ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-05 Thread Michael Kernaghan
Interesting. I think I have worked out my understanding problems but now I get this problem. Maybe I need an older rev of Ruby 1.8.2? Environment Ruby 1.8.2-15 MS Vista watir-1.5.1.1166 Error Message NoMethodError: IE#modal_dialog not supported with the

[Wtr-general] Embedded Browser and/or SmartCleint

2007-07-05 Thread Lonny Eachus
I am trying again: Does anybody know anything about getting the DOM or attaching with Watir when the IE browser is embedded in an application, such as with Microsoft smartclient? When the application in question is running, it is obviously just a wrapper around IE and it displays the same web

[Wtr-general] Permission denied when access frame contents

2007-07-05 Thread Nathan Viboonchan
it can't find the object with url "www.google.com". anybody know what's going wrong ? thanks Jaordzz -- next part -- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070705/e94a90d1/attachment-0001.html

Re: [Wtr-general] How do I attach to a mailto window

2007-07-05 Thread marty
Thanks. This was an easy change and it works great. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-05 Thread Tiffany Fodor
Hi all! I'm trying to use the verify method from assertions.rb, but I keep getting the following error: undefined method 'verify' for main:Object (NoMethodError) I've added require watir/assertions to the beginning of my script, but still can't use the verify method. Is anyone else using

Re: [Wtr-general] Embedded Browser and/or SmartCleint

2007-07-05 Thread Charley Baker
My guess is that you could attach to the embedded browser if you can get a handle to the ie instance and then attach to the handle using ie.attach(:hwnd, handle). You may be able to get a handle by navigating through windows, simalarly to the way it's set up in Watir by using Shell.Application,

Re: [Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-05 Thread Bret Pettichord
I think the error message may be misleading. I think the problem may actually be caused by the use of frames. Can you show us the code that is failing? Bret Michael Kernaghan wrote: Interesting. I think I have worked out my understanding problems but now I get this problem. Maybe I need

Re: [Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-05 Thread Bret Pettichord
Tiffany Fodor wrote: Hi all! I'm trying to use the verify method from assertions.rb, but I keep getting the following error: undefined method 'verify' for main:Object (NoMethodError) I've added require watir/assertions to the beginning of my script, but still can't use the verify

Re: [Wtr-general] Recovery System in WATIR

2007-07-05 Thread Bret Pettichord
Lavanya Lakshman wrote: Whenever we consider any tool for automation, the first and the foremost critical part is the recovery system. Unfortunately I didn't get much info related to this on the website. I would appreciate your thoughts and experience related to this. I agree. Watir

Re: [Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-05 Thread Tiffany Fodor
I just added that line to the rest of the require/include statements at the beginning of my script and it did the trick. Thanks so much! -Tiffany ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general