Re: [Wtr-general] Solution for FAQ Using key/value pairs not working

2007-05-14 Thread aidy lewis
On 14/05/07, Vipul [EMAIL PROTECTED] wrote: class LoginInput @@userName = Vipul.Goyal end $ie.text_field(:id,txtLoginID).set(LoginInput.userName) I think the OO idea is that the client should not be able to directly access a variable outside a class. code class Login_Input

[Wtr-general] Not able to identify a pop up

2007-05-14 Thread Maloy kanti debnath
hi all, I have a problem i have to click a pop up ok button after i select a item from a select list ... now the problem is i am not able to click that ok button...i tried with cilck_no_wait... i am not able to use click_no_wait because i am not actually clicking anyting how

[Wtr-general] Need to check whether a message indicating whether

2007-05-14 Thread vijay
Hello people, In our application, there are a few text_fields and a save button. When the 'save' button is clicked without giving any input for any of these text fields, the application would display a text, ' * Required' besides the appropriate text field but in the same window. Now, I want

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

2007-05-14 Thread gary
Any more ideas anyone, surely I'm not the only one with this problem? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Can't seem to get .equal? to work

2007-05-14 Thread gary
Hi, assert_equal works a treat but .equal? always fails, any ideas? signin = @IE0.frame(mainframe).link( :id, @header.signinLink) signintext = signin.text # test 1 - assert assert_equal(signintext, Sign In) # test 2 - if then if signintext.equal?(Sign In) puts 'pass' else puts

Re: [Wtr-general] Can't seem to get .equal? to work

2007-05-14 Thread gary
A bit slow this morning. Please ignore. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Solution for FAQ Using key/value pairs not working

2007-05-14 Thread aidy lewis
On 14/05/07, Vipul [EMAIL PROTECTED] wrote: class LoginInput @@userName = Vipul.Goyal end $ie.text_field(:id,txtLoginID).set(LoginInput.userName) I think the OO idea is that the client should not be able to directly access a variable outside a class. code class Login_Input

Re: [Wtr-general] Handling popup message

2007-05-14 Thread Cain, Mark
You misspelled Cancel startClicker( Calcel, 7 , ) --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kui Zhang Sent: Friday, May 11, 2007 4:36 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Handling popup message Hello Charley, I am

Re: [Wtr-general] Not able to identify a pop up

2007-05-14 Thread Cain, Mark
-- other requires omitted -- require 'watir/contrib/enabled_popup' reguire 'thread' def startClicker(ie, button) # Strart a new thread that will dismiss the JSPopup. t = Thread.new { w = WinClicker.new hwnd = $ie.enabled_popup(10) if nil == hwnd

Re: [Wtr-general] Solution for FAQ Using key/value pairs not working

2007-05-14 Thread Charley Baker
Ah, you're using a class variable and you have no accessor methods so it's only available to . You'll need to add a class accessor or an instance method if you're creating object of type LoginInput to get at the value: class LoginInput @@user_name = Vipul.Goyal def LoginInput.user_name

Re: [Wtr-general] length not recognized for array within a class

2007-05-14 Thread Charley Baker
Hi there, In this case you've created @aObjects as a class instance variable, which means it's not visible to instance methods. Add a constructor to set it up instead: class CLWindow def initialize @aObjects = Array.new end def add_object puts @aObjects.length end end cl =

Re: [Wtr-general] reading cell data into an array

2007-05-14 Thread Charley Baker
Can you give us an example of some of the data in the cell you're trying to collect into an array? You should be able to do something like splitting it into different strings possibly, depends on what you're getting from your cell. -Charley On 5/12/07, Tunde Jinadu [EMAIL PROTECTED] wrote:

Re: [Wtr-general] Handling popup message

2007-05-14 Thread Kui Zhang
Thanks Mark! After correcting the misspelled word, the script works now. Kui ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Watir unit tests

2007-05-14 Thread Eoin
I have installed the Windows installer for Watir 1.4.1 I ran the unit tests and a lot of them failed. Are these bugs in Watir or is it something wrong with my environment?

Re: [Wtr-general] Problem retrieving data from an Ajax page

2007-05-14 Thread Lavanya
I was able to resolve the issue with ie.contains_text () Thanks for inputs on IE developer toolbar. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Solution for FAQ Using key/value pairs not working

2007-05-14 Thread aidy lewis
On 14/05/07, Charley Baker [EMAIL PROTECTED] wrote: class LoginInput @@user_name = Vipul.Goyal def LoginInput.user_name @@user_name end end puts LoginInput.user_name = Vipul.Goyal # Now with instance: class LoginInput @@user_name = Vipul.Goyal def user_name

[Wtr-general] Watir Development Gem 1.5.1.1166 Released

2007-05-14 Thread Bret Pettichord
A new gem is ready for download. This is the latest pull from Subversion source, tagged at 1.5.1.1166. Changes in this release include: * The wait method was completely rewritten. This should fix various errors seen in 1.5.1.1165 and 1.5.1.1158. * Removed the spinner.

Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released

2007-05-14 Thread Paul Rogers
will you be providing some call back mechanism so I am able to add my own spinner when the page is loading? - Original Message - From: Bret Pettichord To: wtr-general@rubyforge.org Sent: Monday, May 14, 2007 3:09 PM Subject: [Wtr-general] Watir Development Gem 1.5.1.1166

Re: [Wtr-general] Solution for FAQ Using key/value pairs not working

2007-05-14 Thread Charley Baker
Hey aidy, There aren't any attribute accessors for class variables. Why? You could I suppose, but you'd want to keep them accessible only by methods in the class. I think I'm starting to understand your general question or I could be totally offbase. Say for instance to take a classic example

Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released

2007-05-14 Thread Bret Pettichord
Paul Rogers wrote: will you be providing some call back mechanism so I am able to add my own spinner when the page is loading? I didn't realize that anyone was still using this. The main reason that i removed it was simply because we did not have good unit tests for the wait code and

Re: [Wtr-general] reading cell data into an array

2007-05-14 Thread Charley Baker
How about pin_array = spreadsheetdata[:pinnumber].to_a -Charley On 5/14/07, Tunde Jinadu [EMAIL PROTECTED] wrote: The series of digits is being read from a cell in excel using the following, spreadsheetdata[:pinnumber] = row.cells(4,13) ['text'] the cell will contain 5 digits, (pin number)

Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released

2007-05-14 Thread Paul Rogers
I suspect a call back type mechanism ( like the error checkers that can be called when a page is downloaded ) would be more flexible anyway. Although right now I cant think of anything else useful that you could do while waiting for a page to download Paul - Original Message - From:

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

2007-05-14 Thread Derek Wong
Hi, I'm trying to write some tests that test various attribute keys in DIV elements for particular values. The DIV in question has a class attribute but even though I know the attribute is defined, invoking attribute_value(class) always returns nil. I've tried this on other elements aside

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

2007-05-14 Thread Daniel Kurtz
I'm seeing this issue when I'm trying to run a script in Ruby and this build of Watir installed onto a jump drive. The same script runs OK on another computer that has the same versions installed on the hard drive. I was thinking it might have something to do with environment settings.

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

2007-05-14 Thread Bret Pettichord
Derek Wong wrote: Hi, I'm trying to write some tests that test various attribute keys in DIV elements for particular values. The DIV in question has a class attribute but even though I know the attribute is defined, invoking attribute_value(class) always returns nil. I've tried this on

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

2007-05-14 Thread Angrez Singh
Hi, type: id: name: value: disabled: false src: http://blahmachine/blahapplication/blahicons/blah.gif file date:04/23/2007 file size:1246 width:17 height: 17 alt: And from IRB if I type: irb(main):135:0 puts fr.images[1].attribute_value(file date) nil = nil