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
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
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
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
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
A bit slow this morning. Please ignore.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
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
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
-- 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
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
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 =
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:
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
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?
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
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
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.
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
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
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
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)
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:
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
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.
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
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
26 matches
Mail list logo