Updating Object path at Runtime

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 9
Joined: Fri Dec 14, 2018 5:26 am

Updating Object path at Runtime

Post by ankurm.245 » Fri Dec 14, 2018 5:58 am


I am trying to traverse a tree structure which on every expansion of a root node, changes the DOM.
For Ex.
1. I need to click on Root1, then Xpath would be like below (with no child elements visible underneath):

2. I need to click on Root1>Child1, then Xpath would be like (with no child elements visible underneath Child1):

And so on.

I have created a object with just .//Li as path in repository and trying to update it accordingly to match it with the object i need to navigate to at run time.
The attachment LiTag Error.jpg is no longer available

Using Below code to update the path of the element,
LiTag Error 3.jpg
LiTag Error 3.jpg (17.53 KiB) Viewed 701 times
but its throwing error as below:
The attachment LiTag Error2.jpg is no longer available

Any help on how to work on dynamic path or create object at runtime with a specified path and object type?

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

Re: Updating Object path at Runtime

Post by odklizec » Fri Dec 14, 2018 9:45 am


At first, some screenshots in your post are missing ;) And at next, please upload a Ranorex snapshot, which would be much more helpful than screenshots. Thanks.
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