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

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 3:54 PM, tester86 wrote: > Is there any way I that I can a browser > i.e. IE run my code then when it finishes run it again (same code) but > in FF. And this is no good for you (from my first reply in this thread): [Watir::IE.new, FireWatir::Firefox.new].each do |browser

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

2010-01-20 Thread tester86
Well, my point that I am trying to get at is that I want to execute my code against IE and FF. All of the disucssion is making me stick to either run it again IE and FF. Is there any way I that I can a browser i.e. IE run my code then when it finishes run it again (same code) but in FF. I have used

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

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 3:20 PM, tester86 wrote: > Sorry my typo in options.yml I have it as You have to be careful when copy/pasting code. Everything matters. > When I do $b = Watir::firefox.start("your url") I get an error > message: > NoMethodError: undefined method `firefox' for Watir:Module

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

2010-01-20 Thread tester86
Sorry my typo in options.yml I have it as browser: ie browser: firefox When I do $b = Watir::firefox.start("your url") I get an error message: NoMethodError: undefined method `firefox' for Watir:Module I have require 'firewatir' Is there are reason why I cannot run it aginst FF because I want

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

2010-01-20 Thread Željko Filipin
On Wed, Jan 20, 2010 at 3:00 PM, tester86 wrote: > Browser ie I think this should be: browser: ie Željko -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, plea

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

2010-01-20 Thread tester86
Hi Yes I did specify my browser in option.yml using the following example from: http://wiki.openqa.org/display/WTR/Browser.new In that file it contains Browser ie Browser firefox I also tried: $b ie $b firefox (but I was getting the same error message) You comment out the browser that you w

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

2010-01-19 Thread Wesley Chen
You get that error message: NoMethodError: undefined method `text_field' for nil:NilClass Because the script can't find the browser, have you defined your browser?* require 'watir' require 'watir/testcase' class TestXXX < Watir::TestCase def test_setup $b = Watir::IE.start("your url

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

2010-01-19 Thread tester86
Welsey, I changed my script according to what you mentioned above. When I run it in IE I get the following error message: NoMethodError: undefined method `text_field' for nil:NilClass All I am trying to do is to login to an application: $b.text_field(:name, "username").set("user1") $b.text_fiel

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

2010-01-15 Thread Wesley Chen
You may change *Class TestGoogle < Test::Unit::TestCase* to *class TestGoogle < Watir::TestCase* And *require 'watir' require 'watir/testcase'* Thanks. Wesley Chen. For life, the easier, the better. On Sat, Jan 16, 2010 at 5:35 AM, Bill Agee wrote: > Can you post the complete backtrace? I bet

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

2010-01-15 Thread Bill Agee
Can you post the complete backtrace? I bet the method "test_entertext" is being run before "test_start". If I remember correctly, Test::Unit runs the methods inside a test class in asciibetical order. You might want to collapse all three of those methods into one. There's probably no real gain

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

2010-01-15 Thread tester86
Hi Please note that this is an example of what tests. Class TestGoogle < Test::Unit::TestCase def test_start() $b=Watir::Browser.start("https://www.google.com";) end def test_entertext() $b.text_field(:name, "SearchField").set("Search") $b.button(:name, "btnG").click end def test_verify() i

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

2010-01-15 Thread al3kc
could you share your code? -- 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 u

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

2010-01-15 Thread Željko Filipin
On Thu, Jan 14, 2010 at 10:02 PM, tester86 wrote: > But when I execute in IE I get the error $b is undefined. It is hard to guess how your code looks and where is the problem. If you post it, we would have more chance in helping you. Željko -- You received this message because you are subscribe

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

2010-01-14 Thread tester86
Hi Question: I am using a testing framework using Watir and I have given a global variable $b. I am running my scripts against FF. But I also want to execute them against IE. I am using the example from: http://wiki.openqa.org/display/WTR/Browser.new But when I execute in IE I get the error $b

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

2010-01-06 Thread Jared
The code below was an interesting experiment, but not so straightforward. Don't try this at home :) (although it would be kind of cool to get it working, as side-by-side execution is something I would use). Jared On Jan 6, 10:55 pm, Jared Quinert wrote: > If it's just about running the same tes

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

2010-01-06 Thread tester86
Thanks the following linked worked: http://wiki.openqa.org/display/WTR/Browser.new But I have one question. In my code I specify $b.link(:id, "t61").click then when I go to run my code in IE and FF I get undefined global variable. Is there any way to over come this issue without having: $b.link(

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

2010-01-06 Thread Jared Quinert
If it's just about running the same test code, I've documented an approach here: http://www.software-testing.com.au/blog/2009/07/02/running-watir-cross-browser-using-internet-explorer-firefox-and-celerity/ I found there were minor differences between browsers that I needed to fix. Or did you m

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

2010-01-06 Thread ajil
Please got to the following link. You can specify ie or firefox in a config file before u start running http://wiki.openqa.org/display/WTR/Browser.new On Jan 5, 8:41 pm, tester86 wrote: > Question, with the not tested code: > > If I was to test against one application or browser i.e. google and >

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

2010-01-05 Thread marekj
Couple of examples. you can use git to clone the Watir project from http://github.com/bret/watir or just downloa the source in a zip file. Then look at Rakefile and see how the same unittests are being run by Firefox and IE. There is a wealth of information there. Do run the unittests. also notice

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

2010-01-05 Thread tester86
Question, with the not tested code: If I was to test against one application or browser i.e. google and then search in both IE and FF would I need to specify the code twice. Could I state: Open IE Open FF Check Page Title Text Box Place "Test" Click Search End All of the above would be one se

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

2010-01-05 Thread tester86
Hi Or would you like to do something like this (not tested)? > > [Watir::IE.new, FireWatir::Firefox.new].each do |browser| > browser.goto "google.com" > browser.goto "yahoo.com" > end > > The above code will go to google and yahoo first in IE, and then in FF --Yes I would like something like

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

2010-01-05 Thread Željko Filipin
On Tue, Jan 5, 2010 at 3:21 PM, tester86 wrote: > My question is would I have to write two sets of code > one for ie and one for ff in order to run my script against both > browsers. I am not sure what you mean by this. Would this work for you? ie = Watir::IE.new ie.goto "google.com" ff = FireW

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

2010-01-05 Thread tester86
Hi Yes you are correct but when I executed it that way it did open a firefox session. My question is would I have to write two sets of code one for ie and one for ff in order to run my script against both browsers. Thanks. On Jan 4, 9:11 pm, Wesley Chen wrote: > First, I think there is somethin