Re: [Wtr-general] Can't install Watir - Error opening file for writing: \watir\AboutItx.chm

2007-06-26 Thread Željko Filipin
Hi Lennart, all_tests.rb are broken. You should be fine if core_tests.rb run fine. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Form Validation

2007-06-26 Thread imran
Hi, All Following has been done, sorry for inconvenience. *For String only* if alphaString =~ (/[0-9]/) return false *For Numeric Only* if numericString =~ (/[a-z or A-Z]/) return false *For Alpha Numeric* if alphaNumericString =~ (/[a-z or A-Z]/) alphaNumericString =~ (/[0-9]/) return

Re: [Wtr-general] Can't install Watir - Error opening file for writing: \watir\AboutItx.chm

2007-06-26 Thread Lennart Borgman (gmail)
Željko Filipin wrote: Hi Lennart, all_tests.rb are broken. You should be fine if core_tests.rb run fine. Thanks Željko. That is good to know, but surprising. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Lennart Borgman (gmail)
Bret Pettichord wrote: Ah, good call. Another way to cure it might be to disable buffering for $stdout completely, with: $stdout.sync = true Thanks. I looked for the syntax for that. I saw something like IO#sync = true That did not seem to work. Has it changed? Actually

Re: [Wtr-general] Can't install Watir - Error opening file for writing: \watir\AboutItx.chm

2007-06-26 Thread Željko Filipin
On 6/26/07, Lennart Borgman (gmail) [EMAIL PROTECTED] wrote: That is good to know, but surprising. Bret has opened a Jira ticket for it, but until now, only I have voted for it to be fixed. So, I guess it does not bother other Watir users. If you want it to be fixed, vote for it.

Re: [Wtr-general] Can't install Watir - Error opening file for writing: \watir\AboutItx.chm

2007-06-26 Thread Lennart Borgman (gmail)
Željko Filipin wrote: On 6/26/07, *Lennart Borgman (gmail)* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That is good to know, but surprising. Bret has opened a Jira ticket for it, but until now, only I have voted for it to be fixed. So, I guess it does not bother other Watir

Re: [Wtr-general] Can't install Watir - Error opening file for writing: \watir\AboutItx.chm

2007-06-26 Thread Željko Filipin
On 6/26/07, Lennart Borgman (gmail) [EMAIL PROTECTED] wrote: of course test suits must be valid. I have just voted for it. Isn't it strange to have a test tool that has broken unit tests? :) Zeljko ___ Wtr-general mailing list

Re: [Wtr-general] click link in iframe?

2007-06-26 Thread sourabh jain
HOW U SOLVED YOUR PROBLEM TO CLICK A LINK IN IFRAME. I AM ALSO FACING SAME PROBLEM. CAN YOU TELL ME HOW WATIR IS RECOGNIZING LINK OF IFRAME. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Problems with Test::Unit in Eclipse

2007-06-26 Thread jim_matt
Thanks Walter, I think I understand what you are trying to do here. The problem is that it has to open a file first to get the line: $: File.expand_path(File.dirname(__FILE__)) So how do you get it to find that first file? Jim - Original Message - From: Walter Kruse To:

Re: [Wtr-general] Form Validation

2007-06-26 Thread Colfer, Brian
What about punctuatuon characters? -- Brian Colfer - Original Message - From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: wtr-general@rubyforge.org wtr-general@rubyforge.org Sent: Tue Jun 26 02:23:57 2007 Subject: Re: [Wtr-general] Form Validation Hi, All Following has been done, sorry for

Re: [Wtr-general] test/unit argument error

2007-06-26 Thread Jeff Fry
Manish Sapariya wrote: I ran into same problem and it worked. I had one question though? setup and teardown is called for every test in given test class. I don't understand the reasoning behind this usage model. setup and teardown are methods Watir scripters sometimes choose to import from

[Wtr-general] Watir Read javascript popups contents

2007-06-26 Thread Aidan Cuffe
I am looking to evaluate the contents of a javascript popup using watir, i have googled around heavily and found some code that people suggest would work but nothing i have tried so far works, the only thing i have found myself capable of doing is clicking the buttons. i dont want to click the

Re: [Wtr-general] Handling Popup

2007-06-26 Thread Cain, Mark
Do you have this require 'watir/contrib/enabled_popup' in code script? --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chong Jiang Sent: Tuesday, June 26, 2007 8:20 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Handling Popup Could

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-26 Thread Tiffany Fodor
*Sorry - here is my harness code (I've simplified it by removing the XLS interface code and addAccounts test so that it might be easier to drill down on the problem. I have run this code to make sure the problem still happens.):* require win32ole require watir require test/unit require

Re: [Wtr-general] Handling Popup

2007-06-26 Thread Chong Jiang
Yes. It doesn't seem to be a runtime error, the ieObj.enabled_popup(10) just returns nil after it timeout's. Chong Do you have this require 'watir/contrib/enabled_popup' in code script? --Mark ___ Wtr-general mailing list

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-26 Thread Tiffany Fodor
After some tinkering, I think I've figured out my problem. It seems the Test::Unit::TestCase functionality is expecting to open files and run them as test cases rather than calls to methods in other files. I was hoping to get all the data I need from a spreadsheet once, with the harness code,

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-26 Thread Bill Agee
I noticed the line: $ie.text_field(:name, Find Account).click Is in both the end of the login method and the beginning of the clickLinks method. Maybe that is throwing off the state that clickLinks expects? Also, maybe check to see if test_clickLinks is running before test_login. If I recall

[Wtr-general] Accessing frame without name or id

2007-06-26 Thread Denys Zakhzohyy
Problem seems to be small but i can not solve it so far. On HTML page there is a frameset with 2 frames which do not have any name or id attributes. Is it possible to access those frames? ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Accessing frame without name or id

2007-06-26 Thread Chong
I believe ie.frame(:index, 1) and ie.frame(:index, 2) will work. Chong ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Problems with Test::Unit in Eclipse

2007-06-26 Thread Bill Agee
If you mean the __FILE__ variable, it is a pseudo variable that contains the current source file name. So it will work even when used as the first line of a script. It's really useful in cases like this, where you need to dynamically add dir names to the load path before you try to require other

Re: [Wtr-general] Accessing frame without name or id

2007-06-26 Thread John Fitisoff
Think :index will work. --- Denys Zakhzohyy [EMAIL PROTECTED] wrote: Problem seems to be small but i can not solve it so far. On HTML page there is a frameset with 2 frames which do not have any name or id attributes. Is it possible to access those frames?

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: Actually IO#sync means that you should call the sync method on an object that belongs to the IO class. It does not represent executable Ruby code. In your case it means to do $stdout.sync, as originally suggested. Thanks, I had no idea of that. Is that

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Lennart Borgman (gmail)
Bret Pettichord wrote: Lennart Borgman (gmail) wrote: Actually IO#sync means that you should call the sync method on an object that belongs to the IO class. It does not represent executable Ruby code. In your case it means to do $stdout.sync, as originally suggested. Thanks, I had no

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: Bret Pettichord wrote: It is a Ruby-specific meta language. It is often used in rdoc. I've seen this lead to lots of confusion. I would express this idea (IO#sync) thus: io.sync = true And the reader would then have to understand that io was an

[Wtr-general] IE.new_process hangs my program

2007-06-26 Thread Shawn Anderson
When running IE.new_process, my process hangs. On my parallels XP it works fine, on my other machine (hardware)XP it hangs. Both machines are running ruby 1.8.6, with the 1192 gem. Are there any machine or IE settings that could cause this to happen? Thanks in advance, Shawn

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Lennart Borgman (gmail)
Bret Pettichord wrote: Lennart Borgman (gmail) wrote: Bret Pettichord wrote: It is a Ruby-specific meta language. It is often used in rdoc. I've seen this lead to lots of confusion. I would express this idea (IO#sync) thus: io.sync = true And the reader would then have to

Re: [Wtr-general] Problems with Test::Unit in Eclipse

2007-06-26 Thread jim_matt
Either I don't get it, or I am not making myself clear. I am running Eclipse 3.2.2 and the latest version of RDT. I have statements in my files like the $: File.expand_path(File.dirname(__FILE__)) That is not the problem! YOU HAVE TO BE ABLE TO OPEN A FILE BEFORE THE ABOVE LINE WORKS! When

Re: [Wtr-general] test/unit argument error

2007-06-26 Thread Manish Sapariya
Jeff Fry wrote: Happily, setup and teardown are also optional methods for those of us using Watir. If you don't want something to happen automatically at the beginning of every run, don't put it in setup. Likewise with teardown. For functional automation I often don't include these