set check state of an checkbox not working
Posted: Thu May 20, 2010 4:38 am
Dear ranorex team,
I am developing some code to 'check/uncheck' a checkbox in a webpage of IE browser.
I notice when I try the following code:
dim chkbox as Ranorex.inputTag
chkbox = "<rx path of the checkbox>"
chkbox.checked = "False"
but the attribute <checked> of chkbox is always 'True', and there's no exception thrown if before run the code, I manually check the chkbox on the webpage
However, the following code work properly if I manuall clear the chkbox on the webpage before execute the code:
chkBox.Checked = "True"
Please advise.
thanks
I am developing some code to 'check/uncheck' a checkbox in a webpage of IE browser.
I notice when I try the following code:
dim chkbox as Ranorex.inputTag
chkbox = "<rx path of the checkbox>"
chkbox.checked = "False"
but the attribute <checked> of chkbox is always 'True', and there's no exception thrown if before run the code, I manually check the chkbox on the webpage
However, the following code work properly if I manuall clear the chkbox on the webpage before execute the code:
chkBox.Checked = "True"
Please advise.
thanks