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 sagar.am...@gmail.com 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

[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:20 PM, tester86 sagar.am...@gmail.com 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'

[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

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 sagar.am...@gmail.com 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,

[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)

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)

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 sagar.am...@gmail.com 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

[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

[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() if

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 in

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 billa...@gmail.com wrote: Can you post the complete

[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 ja...@kilmore.info wrote: If it's just about

[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 cjq@gmail.com wrote: First, I think

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 sagar.am...@gmail.com 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

[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 set