Hello all
I can't find a way to get the state of a checkbox (checked or not checked).
WebElement.Value is always "on".
My code:
ACADoc = WebDocument.OpenDocument(url, true, 30000);
WebElement e = ACADoc.FindSingle(CheckBoxId);
e.?
Thanks for helping,
Daniel
Read state of checkbox
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Get the value of the "Checked" attribute, it should return the string "True" if the checkbox is checked:
Regards,
Alex
Ranorex Support Team
Code: Select all
string checkedString = e.GetAttribute(Attributes.Checked);
Alex
Ranorex Support Team
Last edited by Support Team on Tue Dec 16, 2008 10:02 am, edited 1 time in total.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
That sounds like a bug we fixed in the latest Ranorex 1.5 update (V1.5.1.5004). Please download the latest version and try again with the update DLLs!
Regards,
Alex
Ranorex Support Team
Regards,
Alex
Ranorex Support Team
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact: