Re: Does not match the specific value (foreground/background)
Posted: Fri Jan 20, 2017 12:02 pm
Hi All,
I'm using the latest Ranorex (6.2.0) and looks like that bug with retrieving attribute value from complex JavaFX controls still have some issue.
There is custom checkbox in in my SUT, so Checked attribute doesn't represent control state correctly. In the same time, this control has CheckState attribute. Here is workaround how this attribute can be correctly retrieved:
Hope this would be helpful for someone.
Regards
I'm using the latest Ranorex (6.2.0) and looks like that bug with retrieving attribute value from complex JavaFX controls still have some issue.
There is custom checkbox in in my SUT, so Checked attribute doesn't represent control state correctly. In the same time, this control has CheckState attribute. Here is workaround how this attribute can be correctly retrieved:
Code: Select all
checkboxAdapter.Element.GetAttributeValue("CheckState"); // gets correct value
checkboxAdapter.GetAttributeValue<string>("CheckState"); // gets null
Regards