What is XPath? How does it work?



What is XPath? How does it work?..

Answer / Shyam Ji Mishra

XPath is a language used for finding elements in an XML document, including HTML documents. It works by using a syntax that consists of a path to the element you want to find. For example: `//button[text()='Submit']` will find the first button with the text 'Submit' anywhere in the document.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How can I minimize the browser window which has been launched via Selenium Webdriver?

2 Answers  


Write the code for reading and writing to excel through selenium?

1 Answers  


What is the use of context menu in selenium ide?

1 Answers  


Which is the package which is to be imported while working with webdriver?

1 Answers  


List out the test types that are supported by selenium?

1 Answers  


Does selenium support mobile internet testing?

1 Answers  


What are the main advantages of automation testing?

1 Answers  


what is the difference between 2.0 & 3.0

1 Answers  


What is automation testing?

1 Answers  


What are the limitations of selenium ide?

1 Answers  


How can we select elements by their attribute value using css selector?

1 Answers  


Mention what is listeners in selenium webdriver?

1 Answers  


Categories