Hi,
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):
li/a[@innertext='Root1']
2. I need to click on Root1>Child1, then Xpath would be like (with no child elements visible underneath Child1):
li[a[@innertext='Root1']]/ul/li/a[@innertext='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.
Using Below code to update the path of the element,
but its throwing error as below:
Any help on how to work on dynamic path or create object at runtime with a specified path and object type?
Updating Object path at Runtime
-
- Posts: 9
- Joined: Fri Dec 14, 2018 5:26 am
Updating Object path at Runtime
You do not have the required permissions to view the files attached to this post.
I=AM!
Re: Updating Object path at Runtime
Hi,
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.
At first, some screenshots in your post are missing

Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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