Try โ€‚โ€‰HackMD

ChroPath for Chrome and Firefox - xpath and cssSelector

https://browsee.io/blog/chropath-a-quick-way-to-get-and-verify-xpath-and-css-selectors/

Install and access

Install from chrome web store

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Can see the ChroPath by using F12 on Chrome of the target website

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Usage

Choose Rel Path XPath (related XPath) and keyin the keyword of the selector //td[contains(text(),'WL1XXB0029')]/preceding::td/div and press Enter

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Use Axes to locate the element

//a[contains(text(),'WL1XXB0029')]/parent::div/parent::td/preceding::td/div

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

tags: xpath selector ChroPath test automation software test