"Open" button "pressed='True'" was not registered

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 1
Joined: Fri Mar 15, 2019 5:50 pm

"Open" button "pressed='True'" was not registered

Post by wmoh » Fri Mar 15, 2019 6:41 pm

Hello everyone,

I am very new on Ranorex, in fact I just start to using the software this week. Everything is self taught and online searches. Company automation engineers does not use Ranorex, so no help from them.

currently company uses Ranorex version 6.1, I know it is old (hence no one uses it) and I dont think we can update to the newer version without company say so.

that being said, my issue is I was able to use Ranorex Spy to get the path for the "Open" button within the file explorer window: /form[@title='Open']/button[@text='&Open' and @pressed='True'].
However, although button is set to @pressed='True', but it does not seems the button is been pressed.

Here is the screenshot in case my question is not clear.
Note: we use in house automation software in conjunction with Ranorex.


User avatar
Posts: 471
Joined: Fri Jul 15, 2016 1:35 pm

Re: "Open" button "pressed='True'" was not registered

Post by Stub » Mon Mar 18, 2019 10:05 am

Do you even need that "pressed='true'" attribute on the RxPath for the button?

As a total aside, BTW, I tend to change "@text='&Open'" for "@accessiblename='Open'" as it removes the shortcut key from the comparison.

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7429
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: "Open" button "pressed='True'" was not registered

Post by odklizec » Mon Mar 18, 2019 10:18 am


Agree with Stub. Additionally, I think Pressed attribute is true only if button is pressed and held? And of course, it also depends on the implementation of given button ;)
Pavel Kudrys
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