Page 1 of 1

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

Posted: Fri Mar 15, 2019 6:41 pm
by wmoh
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.
Image

TIA

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

Posted: Mon Mar 18, 2019 10:05 am
by Stub
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.

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

Posted: Mon Mar 18, 2019 10:18 am
by odklizec
Hi,

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 ;)