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.
Problem generating absolute path
Re: Problem generating absolute path
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...
*) 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...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Problem generating absolute path
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
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
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
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Problem generating absolute path
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.
Can you teach me how to use this class? Thank you again, Ciege.
Re: Problem generating absolute path
From the forum:
http://www.ranorex.com/forum/ranorex-xp ... t3226.html
http://www.ranorex.com/forum/ranorex-xp ... t3226.html
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...