Identify UI element by window class

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
HansSchl
Posts: 11
Joined: Wed Sep 19, 2018 10:05 am

Identify UI element by window class

Post by HansSchl » Fri Sep 21, 2018 11:55 am

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?

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Identify UI element by window class

Post by asdf » Fri Sep 21, 2018 2:30 pm

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

HansSchl
Posts: 11
Joined: Wed Sep 19, 2018 10:05 am

Re: Identify UI element by window class

Post by HansSchl » Mon Sep 24, 2018 1:37 pm

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!