Base Path

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
vamsi
Posts: 14
Joined: Thu Dec 11, 2014 12:17 pm

Base Path

Post by vamsi » Fri Mar 13, 2015 10:45 am

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

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

Re: Base Path

Post by odklizec » Fri Mar 13, 2015 1:13 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Base Path

Post by Support Team » Mon Mar 16, 2015 3:37 pm

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