in Testing by (32.2k points)
What is XPath?

1 Answer

0 votes
by (20.8k points)

XPath also called as XML Path is a language to query XML documents. It is an important strategy to locate elements in selenium. It consists of a path expression along with some conditions. Here, you can easily write XPath script/query to locate any element in the webpage. It is designed to allow the navigation of XML documents, with the purpose of selecting individual elements, attributes, or some other part of an XML document for specific processing. It also produces reliable locators.

Related questions

0 votes
asked Sep 18, 2020 in XML by Robindeniel (20.8k points)
0 votes
asked Mar 29, 2021 in Testing by sharadyadav1986 (31.6k points)
0 votes
asked Mar 29, 2021 in Testing by sharadyadav1986 (31.6k points)
+1 vote
asked Mar 28, 2021 in Testing by rajeshsharma (23.9k points)
...