Page 1 of 1

Base Path

Posted: Fri Mar 13, 2015 10:45 am
by vamsi
Hi,

I have two base paths
/form[@processname='WorkflowEngine']
AND
/form[@controlname='syngo']/?/?/element[@controlname='DockingContainer']//element[@instance='1']/element[@controlname='TaskWS']/element[@controlname='ISA_View']/?/?/?/element[@controlname='IsaAppLauncherControl']/container[@controlname='IsaHostPanel']/form[@controlname='SMIMLauncher']/form[@processname='WorkflowEngine']'

is it possible to club these two paths into a single path.

regards,
Vamsi

Re: Base Path

Posted: Fri Mar 13, 2015 1:13 pm
by odklizec
Hi,

Try this:
//form[@processname='WorkflowEngine']
However, it may not be the best idea to use the path like this! With such simplified path, Ranorex will find all forms with this processname but only the first one will be used (if the repo element/path is used in recording/code).

Re: Base Path

Posted: Mon Mar 16, 2015 3:37 pm
by Support Team
Hi Vamsi and odklizec,

Before we can recommend you a working path we would also need to know which elements, or which application you try to access with the new RxPath.
What do you want to accomplish with the new RxPath?
Should just a form with the processname "WorkflowEngine" and the contorlname "syngo" be found, or do you want that the repo item references a form which has either a processname "processname" or a controlname "syngo"?

Regarding odklizec' suggestion, I am afraid this is not recommended, since such a RxPath (//form[@processname='WorkflowEngine']) would force Ranorex to search through all elements of all running applications of your machine for the specific form to exist, which would take much time and is normally not intended.

Regards,
Markus