Question

Unable to create dynamic xPath

  • 23 February 2023
  • 0 replies
  • 127 views

Badge

I’ve the below menu structure in MS Edge (IE based website) where I need to click on the triangles to open their menu, lets take the example for Departments

Below is the inspected element for the triangle button of Departments. How to create a generic xPath so that it works even if there is an addition or removal of items in the list & Departments sequence gets changed

 

So here, img tag is for the triangle icon but it doesn’t have any identifier for Departments. span has the identifier but it’s pointing to the label only


0 replies

Be the first to reply!

Reply