check a checkbox

E

Erika

[Note: parts of this message were removed to make it a legal post.]

Hi,

How can I check if a check box is checked in Ruby Watir?

The following line only sets the checkbox: ie.checkbox:)name,"Test1").set

Thanks,
Erika
 
E

Erika

[Note: parts of this message were removed to make it a legal post.]

I resolved it by using:
ie.checkbox:)name,"Test1").clear, because this was what I wanted to achieve.

But if anyone knows how can be checked, if it is set or not the check box please post :)

Thanks,
Erika




________________________________
From: Erika <[email protected]>
To: ruby-talk ML <[email protected]>
Sent: Wednesday, November 12, 2008 10:43:53 AM
Subject: check a checkbox

Hi,

How can I check if a check box is checked in Ruby Watir?

The following line only sets the checkbox: ie.checkbox:)name,"Test1").set

Thanks,
Erika
 
S

Siep Korteling

Erika said:
I resolved it by using:
ie.checkbox:)name,"Test1").clear, because this was what I wanted to
achieve.

But if anyone knows how can be checked, if it is set or not the check
box please post :)

Thanks,
Erika




________________________________
From: Erika <[email protected]>
To: ruby-talk ML <[email protected]>
Sent: Wednesday, November 12, 2008 10:43:53 AM
Subject: check a checkbox

Hi,

How can I check if a check box is checked in Ruby Watir?

The following line only sets the checkbox:
ie.checkbox:)name,"Test1").set

Thanks,
Erika

puts ie.checkbox:)name,"Test1").checked?

hth,

Siep
 
R

Ramesh Yatam

I have tired usign this but still not working, can anyone help me on
this.

puts ie.checkbox:)name,"Test1").checked?

But if anyone knows how can be checked, if it is set or not the check
box please post :)

thanks
Ramesh Y
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top