Re: [Wtr-general] xpath question (not Watir related)

2007-05-15 Thread Željko Filipin
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

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread gary
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

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread Angrez Singh
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

Re: [Wtr-general] Watir unit tests

2007-05-15 Thread Eoin
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

[Wtr-general] Common functions

2007-05-15 Thread Ken
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

Re: [Wtr-general] Common functions

2007-05-15 Thread Željko Filipin
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

Re: [Wtr-general] Common functions

2007-05-15 Thread aidy lewis
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

Re: [Wtr-general] 'method_missing': document (WIN32OLERuntimeError)

2007-05-15 Thread Bret Pettichord
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

Re: [Wtr-general] Watir unit tests

2007-05-15 Thread Eoin
Thanks Bret.That's fine ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread gary
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

[Wtr-general] Where is reporter.rb

2007-05-15 Thread Russ DeWolfe
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

Re: [Wtr-general] Where is reporter.rb

2007-05-15 Thread Charley Baker
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,

[Wtr-general] File problems

2007-05-15 Thread Ken
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

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
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

Re: [Wtr-general] File problems

2007-05-15 Thread Ken
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

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
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

Re: [Wtr-general] File problems

2007-05-15 Thread Ken
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

[Wtr-general] Need help with excel interface class

2007-05-15 Thread Tiffany Fodor
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:

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
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

Re: [Wtr-general] File problems

2007-05-15 Thread Ken
Yes I am running it through the command line ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] File problems

2007-05-15 Thread Charley Baker
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

[Wtr-general] WATIR on Windows Vista 64?

2007-05-15 Thread Steven List
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

Re: [Wtr-general] File problems

2007-05-15 Thread Ken
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

Re: [Wtr-general] WATIR on Windows Vista 64?

2007-05-15 Thread Chris McMahon
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

Re: [Wtr-general] Use of attribute_value() under WATIR 1.5.1.1145

2007-05-15 Thread Derek Wong
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

Re: [Wtr-general] Need help with excel interface class

2007-05-15 Thread Tiffany Fodor
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.

[Wtr-general] The test case should be failed, bu t it is not

2007-05-15 Thread Kui Zhang
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