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
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
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
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: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
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
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
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
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
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
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
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
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
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 wrote:
> If it's just about running the same tes
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(
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
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
>
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
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
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
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
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
23 matches
Mail list logo