Validate selected element

Experiences, small talk, and other automation gossip.
Posts: 1
Joined: Tue Aug 04, 2015 1:11 pm

Validate selected element

Post by fimich » Tue Aug 04, 2015 2:13 pm


i am trying here to validate a selected element in a desktop application. My problem is that I cannot access the "selected" state, because my element is actually a text. To describe the situation in a better way I will attach print screens:

Capture1 is the app view. As you can see, I can select an element.
Capture2 displays the spy view, which says that my elements are texts.
The only AccessibleState is Focusable which does not help me at all. If I use AttributeEqual there are only:
Enabled and HasFocus which are always False.

My question is: is there a way to validate that the element is Selected?

Thanks in advance!
You do not have the required permissions to view the files attached to this post.

Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Validate selected element

Post by krstcs » Tue Aug 04, 2015 3:50 pm

Unfortunately, screenshots don't help much with this kind of issue.

What we need is a Ranorex Snapshot of the element in question, preferably one while it isn't selected and one while it is selected.

You can find out how to create a Ranorex Snapshot HERE.

Also, when raising issues on the forums, please always include the following information:

Ranorex version
Windows version
Technology of system-under-test (Java, Flash/Flex, HTML, WPF, etc.)
Browser and version (if web testing)
RanoreXPath of any elements in question
Ranorex Snapshot of any elements in question
Full text of any error messages
Shortcuts usually aren't...