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
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
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'
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
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,
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)
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)
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
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
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
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
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
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
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
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
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
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
17 matches
Mail list logo