How to locate the XPath of an element in eclipse accurately?



  • I am working on a project in which automation is done using Appium Tool. I felt it difficult to track the XPath of an Image or Textbox in Eclipse while scripting. Sometimes the XPath will be given as a Trial and Error method.

    So is there any way to track the XPath easily or wisely from Eclipse?



  • You can press F12 key in chrome and right click on the element you want to get and click on inspect element. Now you shall see the console with corresponding attributes,Now right click at the console will give you required xpath.

    Also Firebug an adddon of mozilla is helpful



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2