• March 25, 2024

Find Element By Xpath Javascript

Is there a way to get element by XPath using JavaScript in … I am looking for something like: getElementByXpath(//html[1]/body[1]/div[1]). innerHTML I need to get the innerHTML of elements using JS (to use that in Selenium WebDriver/Java, since WebDriver can’t find it itself), but how? I could use ID attribute,…

Read More