[wtr-general] Re: How to run all scripts in single browser session

2012-03-18 Thread Ankita Gupta
Thanks for the information, I would use Rspec instead of test/unti I also wanted some particular format in which I could keep all my test in different .rb files and could call them in one main file where in I would use before(:all)/after(:all) I tried this :: require 'rubygems' require '

Re: [wtr-general] How to run all scripts in single browser session

2012-03-18 Thread Željko Filipin
On Sun, Mar 18, 2012 at 11:40 PM, Ankita Gupta wrote: > I have 5 test scripts and I wanted to run those in single browser > session but do not know how to do that. As far as I remember, test/unit's setup/teardown methods run before/after _each_ test. If you can use RSspec, it has before(:all)/aft

[wtr-general] How to run all scripts in single browser session

2012-03-18 Thread Ankita Gupta
I have 5 test scripts and I wanted to run those in single browser session but do not know how to do that. If someone could help me out would be great.. All my script has following format require 'rubygems' require 'test/unit' require 'watir-webdriver' require 'watir-webdriver/wait' class def

[wtr-general] How to run all scripts in single browser session

2012-03-18 Thread Ankita Gupta
I have 5 test scripts and I wanted to run those in single browser session but do not know how to do that. If someone could help me out would be great.. All my script has following format require 'rubygems' require 'test/unit' require 'watir-webdriver' require 'watir-webdriver/wait' class def

[wtr-general] Re: Watir not able to locate any element on the page

2012-03-18 Thread Anthony Hallett
try something like frame = ie.frame(:id=>'fraMagnum') text_box = frame.text_field( id=>"Submitted-From_txt") (make sure you use :id not :name for the frame) You may still run into problems as the input may not resolve as a textfield but if you can get the frame object,

[wtr-general] WATIR Testing - Setup and colse method

2012-03-18 Thread AQUA
Hi All, I have been working on a web application test automation project. As per the project requirement I need a method to be executed before beginning of my set test-case methods and another method to be executed at the end of all the test-case method. You can consider those to methods to be

[wtr-general] Re: How to implement drag and drop option in watir library?

2012-03-18 Thread Jarmo Pertman
and you can do that with regular Watir too now: gem install watir --pre And use the same syntax Željko provided :) Jarmo Pertman - IT does really matter - http://itreallymatters.net On Mar 8, 10:37 pm, Željko Filipin wrote: > On Thu, Mar 8, 2012 at 2:38 AM, anurag wrote: > > Can anyone tel

[wtr-general] Re: download a file to a specific directory in IE 9

2012-03-18 Thread Jarmo Pertman
If using an AutoIt adapter doesn't help you too then that means the problem has to be somewhere deeper and i'm not sure how to go forward with this without being able to reproduce it and debug it. You could try focusing the field and using #send_keys, maybe these would give you different results:

[wtr-general] Watir 3.0.rc3 Released!

2012-03-18 Thread Jarmo
Hello everyone! I'm happy to announce that another version of Watir has been just released - 3.0.rc3. Its biggest goal is to conform even better with WatirSpec making it more compliant with Watir-WebDriver. Changelog: * all html elements are now supported (even html5 ones) * CookieManager remove