You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
How can i get the xpath of a WebElement
Webelement element= driver.findElement(By.name("q"));
something like
element.getAbsoluteXpath(); ->> this should be like this ".//div//input[@name='q']"
element.getRelativeXpath(); ->> this should be like this "html/body/div/input..."
how to do the same