Pergunta de entrevista da empresa eligarf Technologies

What is relative and absolute xpath in selenium?

Resposta da entrevista

Sigiloso

6 de out. de 2024

Absolute XPath: Begins from the root of the HTML document and specifies the complete path to the element. It's not as flexible and can break if the page structure changes. Relative XPath: Starts from a specific element and navigates through the DOM hierarchy to locate the desired element.