[wtr-general] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread tester86
Hi

From my research as far as I understand you can not drive watir
scripts at the same time in the browser unless you create seperate
scripts for them. I have a Test::Unit script that runs in Firefox but
when I specify IE it just opens a new browser and nothing happens. I
am guess that I would have to write a different set of code for that.

example:

ie=Watir::IE.new
ie.goto(www.google.com)

ie=FireWatir.FireFox.new
ie.goto(www.google.com)

# then a code to perform search

When I run a script like this it only performs the search in Firefox
and not in IE. Is ther any solution to execute against both browsers.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread Wesley Chen
First, I think there is something wrong in your script.
1. You use ie for both ie browser and FF browser;
2. Your Firefox invoke way is not right.
I think it works if you use:
*require 'watir'
ie = Watir::IE.new
ie.goto(www.google.com)
ff = FireWatir::Firefox.new
ff.goto(www.google.com)*


Thanks.
Wesley Chen.
For life, the easier, the better.


On Mon, Jan 4, 2010 at 11:03 PM, tester86 sagar.am...@gmail.com wrote:

 Hi

 From my research as far as I understand you can not drive watir
 scripts at the same time in the browser unless you create seperate
 scripts for them. I have a Test::Unit script that runs in Firefox but
 when I specify IE it just opens a new browser and nothing happens. I
 am guess that I would have to write a different set of code for that.

 example:

 ie=Watir::IE.new
 ie.goto(www.google.com)

 ie=FireWatir.FireFox.new
 ie.goto(www.google.com)

 # then a code to perform search

 When I run a script like this it only performs the search in Firefox
 and not in IE. Is ther any solution to execute against both browsers.

 Thanks

 --
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To post to this group, send email to watir-general@googlegroups.com
 Before posting, please read the following guidelines:
 http://wiki.openqa.org/display/WTR/Support
 To unsubscribe from this group, send email to
 watir-general-unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general