I am working on Android webView
. I have an xPath
with me and a webView
. I want to evaluate the xPath
on the webPage
in the webView
. Can anyone please help me with this? I tried the following code, but it didn't work.
XPath xpath = XPathFactory.newInstance().newXPath();
String expression = "xpath expression";
NodeList nodes = (NodeList) xpath.evaluate(expression, webView, XPathConstants.NODESET);
and I also saw this link. But I don't know how he got html
.