On 6/26/07, Chris McMahon [EMAIL PROTECTED] wrote:
Far better to have a test tool that actually works, with some non-core
tests pointing the way to make it better. :-)
So true. :)
(But confusing to new users.)
Zeljko
___
Wtr-general mailing list
On 6/27/07, Denys Zakhzohyy [EMAIL PROTECTED] wrote:
Apparently it works. Before I tried ie.frame(:index, 0) and got error
saying smth about wrong name of the frame.
Denys,
Watir starts counting at 1 (not 0), so maybe that caused the error you saw.
Zeljko
--
ZeljkoFilipin.com
does watir supports iframe. if yes then how can i click a line defined inside
in an iframe.
please reply if anybody has any knowledge for the same.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Sourabh,
More information like HTML code that you are trying to access, watir code
that you have written would be really helpful to us in helping you.
Regards,
Angrez
On 6/27/07, sourabh jain [EMAIL PROTECTED] wrote:
does watir supports iframe. if yes then how can i click a line defined
When I call +set(path_to_my_file)+ method on +Watir::FileField+ File Selector
window opens but the file I specified is not selected, on the background Watir
stars to search to a file, although I am sure that path to the file is correct
(I tried all combinations of puting file separator as \\ or
Suppose your login method didn't work properly because it was referencing to
assert method,
which is located in the class Test::Unit::TestCase class.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Denys,
Comments are inline.
On 6/27/07, Denys Zakhzohyy [EMAIL PROTECTED] wrote:
1. How should I specify the path?
I use something like this
file_folder = 'C:\DOCUME~1\limited\Desktop\tests_trunk\misc\\'
file_folder = 'Z:\misc\\'
2. Is it possible to set up Watir not to start search
Zeljko,
From your answer i understand that i can not select file with FileField but i
can only open a File Selector Window with folder +path+ broswed. Is it correct?
This is a bit weird because in examples within watir distibution I can see test
which actually tries to select file, but the
In your first answer you used example with +file_folder+ which was obviously
pointing to a folder not to a file. I assume it is for opening File Selector
Dialog with predefined folder opened. After this Dialog is opened you have to
manually select a file and click 'Open'.
Therefore question:
Thanks for the suggestion, but I don't think that's my problem.
I've continued adding tests to the framework and I have the assert method in my
other tests as well.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
There must be away to solve this:
I didn't manage to change that directory from Watir,
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Denys Zakhzohyy
Sent: Wednesday, June 27, 2007 9:11 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general]
Shawn, I've seen this happen before on some machines that I have. I think this
could be a result of the remote procedure call priority being set too low. I'm
not sure what the fix is but the problem itself exists.
___
Wtr-general mailing list
Have you tried the login and subsequent click in irb? If that does not work
(and it shouldn't yet, for consistency), you might want to try a
show_all_objects and a show_frames to make sure you're looking in the right
spot, and have the right target name.
Chong
There is no type for an html element. They are all strings. You can
certainly add your own validations on the strings you get back, regexes may
help: http://www.rubycentral.com/book/tut_stdtypes.html
-Charley
On 6/27/07, Max Russell [EMAIL PROTECTED] wrote:
Is there a way to return the
There is a short process on the wiki on how to install Eclipse.
http://wiki.openqa.org/display/WTR/Setting+up+Eclipse+for+Ruby
Maybe it will have some helpful tips.
Good luck!
Carl
___
Wtr-general mailing list
Wtr-general@rubyforge.org
At the top of my test suite I have the following infrastructre code
require 'watir'
require 'ci/reporter/rake/test_unit_loader'
require 'test/unit/ui/console/testrunner'
include Test::Unit::UI::Console
require 'tc_x_series'
require 'tc_y_series'
and then I overwrite the default suite because I
I haven't had a chance to work with ci_reporter though I hope to if I ever
get some free time. My assumption is that they're junit style reports which
can be consumed by a dashboard. We're using CruiseControl now for continuous
builds and reporting results, there's a recent ruby port on
Is it possible to make watir click on every link on the page and tell me if the
click was successfull (as in not 404 error). Also is it possible to make it
click on only the links with a certain extention?
thanks.
___
Wtr-general mailing list
One option is to have a setup test that you guarantee executes first.
Something like
def test_aaa_setup_environment
# do initial setup for the upcoming tests
end
You could of course do something similar for teardown like
def test_zzz_teardown_environment
# do teardown stuff
end
This works
You can harvest all the links href and stuff them in array:
all_links_href = $ie.links.each { |link| link.href}
Clicking could be a problem because after you click the first one you are no
longer on the page.
all_links_href.each { |href| $ie.link(:href, href).click}
Does anybody know how to click
Ooops. Sorry, gave you defective code on that example (note to self: test
the code you give to a total stranger)
all_links_href = Array.new
$ie.links.each {|link| all_links_href link.href}
however Watir doesn't discriminate what kind of a href it is so you will end
up with all javascript type
Jeff,
Watir::TestCase executes all def test_ methods sequentially by default now.
Bret has fixed it (thanks)
Just subst Watir::TestCase (which subtypes Test::Unit::TestCase)
like so...
class TC_blaghamuga Watir::TestCase
def test_zigbat end
def test_junitox end
end
and all def test_ fixtures
Max.
I am curious what you are trying to do because I may have to do something
similar.
For example.
Running this code:
$ie.tables.each do |table|
puts table.class
puts table
table.each do |row|
puts row.class
puts row
row.each do |cell|
puts cell.class
end
end
end
will
23 matches
Mail list logo