Page 1 of 1

Identify UI element by window class

Posted: Fri Sep 21, 2018 11:55 am
by HansSchl
The AUT is a native Windows application written in C++. I want to validate the content of tooltip a window that has a specific window class. Ranorex can find the window using "//tooltip[@accessiblerole='ToolTip']" but I'd prefer to identify the window like "//tooltip[@class='MyToolTipClass']" but that doesn't work. I assume it is because "@class" is the wrong keyword. I also tried "@windowclass" but it didn't work either.
Is there a place where I can find a list of available attributes in RanorexPath?

Re: Identify UI element by window class

Posted: Fri Sep 21, 2018 2:30 pm
by asdf
Hi Hans,

Please post a Ranorex Snapshot of the element in question. The syntax of your RxPath looks correct. So maybe there is no such attribute.

ASDF

Re: Identify UI element by window class

Posted: Mon Sep 24, 2018 1:37 pm
by HansSchl
Ah, well, I tried it again, and it worked from the start... I have no idea what had gone wrong in the first place, maybe a small typo... Thanks anyway!