How can I append element to the current XPath?

Ranorex Studio, Spy, Recorder, and Driver.
User avatar
Broadnick
Certified Professional
Certified Professional
Posts: 29
Joined: Tue Nov 04, 2014 4:18 pm

How can I append element to the current XPath?

Post by Broadnick » Fri Aug 18, 2017 1:26 pm

I'm trying to "append" a new element to my current XPATH. The problem is when I use "Update Path", all my XPATH is "recalculated" and i lost all customizations in the current XPATH.

How can I append the new element at the end of the current XPATH, without the need to manually write that new part or copy/paste the entire XPATH to keep customization?

I mean, I need a "Append to current XPATH" rather than a "Update Path". :D
You do not have the required permissions to view the files attached to this post.

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

Re: How can I append element to the current XPath?

Post by odklizec » Fri Aug 18, 2017 1:47 pm

Hi,

What you can do is this (semi-automatic/semi-manual way of entering elements):
- add / character at the end of xpath
- now press Ctrl+Space >> there should appear a context menu, with list of available xpath axes, characters, elements and their attributes, from which you can select the appropriate item. Now you can keep using Ctrl+Space to construct the xpath as you wish. Hope this helps?
Last edited by odklizec on Fri Aug 18, 2017 2:29 pm, edited 1 time in total.
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
Broadnick
Certified Professional
Certified Professional
Posts: 29
Joined: Tue Nov 04, 2014 4:18 pm

Re: How can I append element to the current XPath?

Post by Broadnick » Fri Aug 18, 2017 2:27 pm

OOOOOOoooooo Yessss!! This is exactly what I need!! 8)

Thanks!