Page 1 of 1

Problem generating absolute path

Posted: Wed Jul 18, 2012 6:52 pm
by KenLee
Hi,

I am trying to get the absolute path of an Ok button in a remote machine. Is it possible to do that? The best I got was just the path of the remote window. (Identifies only the whole screen of my remote window)

I've also tried creating my own Rxpath with no success.
/form[@title~'^Example.*'/container/button[@accessiblename='OK']

This Ok button is an error generated by our in house app.

Any tips about the exact logic of how view spy generates the path would be great, but it would be better if I could use the view spy in an remote machine.

Thank you for your time.

Re: Problem generating absolute path

Posted: Wed Jul 18, 2012 8:05 pm
by Ciege
Let me see if I am following you correctly...

*) You have Ranorex installed on your host machine.
*) You have an RDP (remote) session opened to a remote machine.
*) From the host machine you are trying to identify a button on the remote machine that is displayed in your RDP client, but you are only seeing the remote machine as one large window with no elements under it.

If all that above is correct then...

You will be unable to see elements on a remote machine with any test automation utility (unless it is a picture comparison) since RDP only displays a graphic of what your remote machine is displaying. It does not allow you to get at the elements of that remote machine...

Re: Problem generating absolute path

Posted: Wed Jul 18, 2012 9:08 pm
by KenLee
That is correct Ciege. If that is not possible, do you have a way for me to create the ranorex path manually, without the spy?

Re: Problem generating absolute path

Posted: Wed Jul 18, 2012 9:31 pm
by Ciege
Do you have any sort of Ranorex license on that machine?

If you have at least a runtime license you can write a snippet of code that will output all the xpaths that are available (like a RanorexSpy snapshot) then import that into RanorexSpy and view them...

http://www.ranorex.com/forum/create-sna ... t2447.html

Re: Problem generating absolute path

Posted: Wed Jul 18, 2012 10:35 pm
by KenLee
Yes, we do have a runtime license in our box. I don't understand what the elementPath needs to be inside the file that you linked me to.

Can you teach me how to use this class? Thank you again, Ciege.

Re: Problem generating absolute path

Posted: Wed Jul 18, 2012 10:43 pm
by Ciege