Regarding XPath Index removal clarification

Ranorex Studio, Spy, Recorder, and Driver.
amitgupta
Posts: 54
Joined: Sun Mar 28, 2021 7:58 pm

Regarding XPath Index removal clarification

Post by amitgupta » Fri Jun 18, 2021 1:55 pm

Dear Team,

Could you please guide to share best trick and tips where ranorex tool didn't give any index element in XPath during recording or using ranorex spy tool /Track button and also use any good attribute with value because while using any index property it will be failed if there is enhancement and also run same script in another environment .

XPath :- /dom[@domain='testing']/body/div[3]/div[3]/div/div[3]//form[@name='api.frmAddPersonalInformation']/div[2]/div[2]/div[2]/?/?/span[@title='']/span/span[2]

Could you please help me on this?


Apart from this ,Could you guide us as better way how we can utilized xpath advance setting as attribute scaling and attribute weight bec i changed attrubte scaling and set weight but i did n;t notice any changes
Attachments
6-18-2021 6-25-30 PM.jpg
6-18-2021 6-25-30 PM.jpg (206.5 KiB) Viewed 841 times
6-18-2021 6-24-11 PM.jpg
6-18-2021 6-24-11 PM.jpg (243.63 KiB) Viewed 841 times
6-18-2021 6-04-28 PM.jpg
6-18-2021 6-04-28 PM.jpg (130.96 KiB) Viewed 841 times

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

Re: Regarding XPath Index removal clarification

Post by odklizec » Fri Jun 18, 2021 2:00 pm

Hi,

To get a reasonable help for this kind of question, please attach a Ranorex snapshot (NOT screenshot) of the UI you are working with. This would help you to provide best examples and xpath tips. 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

amitgupta
Posts: 54
Joined: Sun Mar 28, 2021 7:58 pm

Re: Regarding XPath Index removal clarification

Post by amitgupta » Fri Jun 18, 2021 10:00 pm

odklizec wrote:
Fri Jun 18, 2021 2:00 pm
Hi,

To get a reasonable help for this kind of question, please attach a Ranorex snapshot (NOT screenshot) of the UI you are working with. This would help you to provide best examples and xpath tips. Thanks.
i got confusion because i have shared all ranorex snap shot with xpath value as attachment for same question .could u please look in to it?

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

Re: Regarding XPath Index removal clarification

Post by odklizec » Fri Jun 18, 2021 11:14 pm

Hi,

Unfortunately, what you’ve posted are screenshots and not snapshots. Please read this user guide chapter about Ranorex snapshots…
https://www.ranorex.com/help/latest/ran ... hot-files/
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