Hi everybody . i hope somebody can help me to figure it out. we are changing design for our application. And for some reason we have now custom checkboxes. What are not a real checkboxes in a code. It is usually a label element.
If it is clicked it gets " ::before"
if it is unclicked - it doesn't have " ::before "
this ::before is not visible for Ranorex. At least i can not find it. i made a snapshot. but i am not sure that i will help.
i my tests i very often use " set value "checked" to true " or validate that " checked" is true/false .
Maybe you have any idea how to work with this now ?
how for example to validate a status (checked /unchecked) for this element?
Thank you
Issue with custom checkbox styles
-
- Posts: 36
- Joined: Mon Apr 01, 2019 12:12 pm
Issue with custom checkbox styles
You do not have the required permissions to view the files attached to this post.
Re: Issue with custom checkbox styles
Hi,
Why don’t you track the Input element instead? From the HTML code it looks like if the input has “checked” option? The “before” string you are pointing at is from checkbox label and not from checkbox itself?
Why don’t you track the Input element instead? From the HTML code it looks like if the input has “checked” option? The “before” string you are pointing at is from checkbox label and not from checkbox itself?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 36
- Joined: Mon Apr 01, 2019 12:12 pm
Re: Issue with custom checkbox styles
because it is not always working(( . Sometimes Ranorex complains that item is not visible
Re: Issue with custom checkbox styles
Hi,
Could you please post exact error (entire report) you are getting? And full xpath as you are using it in repository?
I think you might just add WaitForDocumentLoaded before accessing the checkbox. Eventually, add @visible=“true” to the xpath.
Could you please post exact error (entire report) you are getting? And full xpath as you are using it in repository?
I think you might just add WaitForDocumentLoaded before accessing the checkbox. Eventually, add @visible=“true” to the xpath.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration