Skip to main content
Question

Dynamic Xpath in Successfactors website

  • November 8, 2022
  • 2 replies
  • 214 views

Forum|alt.badge.img+5

Hi Everyone,

 

I am trying to automate the Successfactors website and facing a peculiar issue. The DOMXpath keeps changing for every record and the change is not constant.

 

I tried to use the full xpath by inspecting the element in chrome but still its not working.

 

Can anyone please help me on this as its kind of urgent !!!

2 replies

Paul Hawkins
Forum|alt.badge.img+7
  • Navigator | Tier 3
  • November 9, 2022

@Abhishek Mishra​ What element are you trying to access? I assume there is not a unique ID on the element hence the issue you are having?

 

Is any part of the path remaining the same? There are possibly some xpath options to find the element from that position or find/start on a particular piece of text for example.


Forum|alt.badge.img+5
  • Author
  • Navigator | Tier 3
  • November 10, 2022

Hi Paul,

Actually the domxpath is same for the element but still it works sometimes and sometimes it doesn't and that is confusing.