Done and checked in.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 14 July 2005 00:13
To: [email protected]
Subject: RE: [Wtr-general] Checkbox#set


+1

Zeljko 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Thursday, July 14, 2005 12:59 AM
To: [email protected]
Subject: [Wtr-general] Checkbox#set

I normally read my test data from another file or spreadsheet. So when I
come to set a check box, I end up with code like this:

If test_data == true
    ie.checkbox(:index,1).set
Else
    ie.checkbox(:index,1).clear
End

IT seems that a better way to do this is to add a an optional parameter
to checkbox#set, thus:

Ie.checkbox(:index,1).set( test_data )

So if test_data is supplied that true/false is used, but if no paramter
is supplied it would just set the checkbox

Paul

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to