Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Using Xpath Checker in Selenium Test Automation

When using Xpath, confirming the Xpath script is very important to make sure that Selenium IDE, WebDriver or Selenium RC can identify the xpath locator during the test.

 

QA Engineers can use Xpath Checker to confim xpath. Xpath Checker needs to be installed on Firefox because it is an add on.

For example, on Wikipedia page, there is a link named "English". When using xpath, we can use the script below.

xpath=//div/a[text()="English"]

 

When confirming the xpath with Xpath Checker, Xpath Checker displays the link.