Angrez,
Thanks a lot! It works.
irb(main):021:0 e[/tokens/ShortUrl[starts-with(@url, 'resetpassword.aspx
?m=7fb83717-9606-4022-bd4e-67b6f6582adacode=')]].attributes[hash]
= BF8E8F60E722E92C7ED8303916591AB4
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general
OK, now here's the latest update. Once again any help would be greatly
appreciated as I'm having difficulty in extracting the text from an alert.
Coming from a qa background rather than developer, I feel like a fish out of
watir.
Anyway,
I've figured out how to deal with the script halting
Hi Gary,
Since you are starting a new thread for handling pop up. The text that you
are sending to console will not be available to you. Also the captureText
that you are writing won't be able to help you because the pop up will
already be closed by start_js_clicker.
If you look at the file
Decided to install the latest gem 1.5.1.1166 since the one click installer
seems to be a good bit out of date
Still get failures/errors when I run the all_tests.rb script in the unittests
area. However when I run the scripts that are failing individually they seem to
run fine.
Is this an
I know this is probably a dumb question but im sort of new at this. I am
writing a suite of tests and in each script I want to login to my app. I wrote
a login function to do this. What is the easiest way for me to re-use this
function so that I dont have to include it in every script that i
Hi Ken,
Extract a method that you need in multiple files in a separate file
(my_script.rb for example), and then at the top of every file that needs
that script write
require my_script
For now just make sure that all files are in the same folder.
Zeljko
--
ZeljkoFilipin.com
On 15/05/07, Ken [EMAIL PROTECTED] wrote:
What is the easiest way for me to re-use this function so that I dont have
to
include it in every script that i write?
You could use Ruby Test::Unit.
class Test_Suite Test::Unit::TestCase
#the setup method is executed before each test method
This issue could be affected by timing, which could explain why you are
seeing a difference when you run from a jump drive.
Regardless of environment, I claim this issue is fixed with 1166. Please
try it out and report back.
Bret
Daniel Kurtz wrote:
I'm seeing this issue when I'm trying to
Thanks Bret.That's fine
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Fantastic, works a treat. If we were down the pub I'd buy you a drink.
Thanks.
Gary
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Where can I get reporter.rb, I don't see it in test/unit/ui
??
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
test-reporter has been deleted from rubyforge, it's successor being
ci_reporter by Nick Sieger. Follow this thread for more information:
http://www.mail-archive.com/wtr-general@rubyforge.org/msg07217.html
-Charley
On 5/15/07, Russ DeWolfe [EMAIL PROTECTED] wrote:
Where can I get reporter.rb,
I have a file lets call it x.rb. I included my common file with my login
function and it works fine. I copied x.rb and renamed it y.rb. I ran y.rb and
got these 2 errors:
warning: don't put space before argument parentheses
and
undefined local variable or method `sURL' for main:Object
I
Hard to say, if you did a copy in the filesystem then everything should be
ok. The first is a warning from ruby, if you're not getting that in your run
with x.rb, then likely the file contents have changed - you've got a space
before a method call. Have the contents of the file changed? Is it in
Yea, I did the maintenance in the file system. I didnt make any changes to x
or y but I did add some code to my common file that I am referencing the Login
function code in. I added the code and then copied x and created y. Is that
the problem? Since x still works fine that is why Im going
Make sure your load path is referring to the right place. You might want to
print out your load path in x or y.
puts $:
and check that you're not working with duplicate common files.
-c
On 5/15/07, Ken [EMAIL PROTECTED] wrote:
Yea, I did the maintenance in the file system. I didnt make any
It didnt even display the load path in x or in y. It skipped right over that
command. I have a puts right after the puts $: and that was printed. I know
this has to be a simple problem but its becoming a Pain in the...
___
Wtr-general mailing list
Hi!
I'm new to Watir, but I've come as far as creating my first test case. I'd
like to start using data from an excel spreadsheet for my tests, so I've
installed the new excel interface class. However, I'm having trouble getting
the example tests to run. I get the following error message:
Are you running through command line? Somewhere there's a disjoint, hard to
figure out where. Open up irb and try puts $: and check your scripts for
how they're dealing with the path or modifying it.
-c
On 5/15/07, Ken [EMAIL PROTECTED] wrote:
It didnt even display the load path in x or in
Yes I am running it through the command line
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I often feel like I spend more time on the simple problems than the larger
ones. My only guess is that you're not running the right files since your
print statements aren't showing up. Get a second pair of eyes to look at it
if you can, otherwise if anyone else on the list has suggestions? It's
We're running Eclipse with appropriate Ruby plug-ins on several machines.
Everything works great on my machine (XP, 32-bit) and on one of our Vista
machines (running in 32-bit on the 64-bit processor). But things just won't
work on the machine running Vista in 64-bit mode on the 64-bit
Yea the small ones always seem to be the biggest pains. I know that I am
running the right files. It has got to be something to do with changing
content in 1 or more files. Probably some stupid thing that Im unaware of.
Hopefully someone out there can offer some more insight. Thanks for
Has anyone got any ideas? Has anyone else gotten WATIR running on Windows
Vista in 64-bit mode?
I'm interested in an academic sort of way.
Does Ruby itself run? Does IRB run? What are your error messages?
___
Wtr-general mailing list
Hey Bret,
sure enough class_name works as expected. I just checked the Element class
documentation and hadn't noticed that it was one of many element attributes
that I could have queried. My bad...
I've just tried 1166 on some of the frame related tests that were behaving
erratically under
I'm going to answer my own question in case it helps someone else out in the
future...
My script called the Xls interface with the following command:
require 'Xls'
Ruby couldn't find it, so I specified a path to Xls:
require 'watir/contrib/Xls
Now my script can implement the Xls interface.
Hello,
I have a question for the test case below. When the Notepad window is not
open, the test case run and complete without warning or error. Looks like
autoit statements do not provide warning and assert is passed.
I thought if the Notepad is not open, autoit statements should provide
27 matches
Mail list logo