The following javascript is to be executed on google.com:
String js = "document.evaluate(\"//form[@name='f']\",
document, null, XPathResult.ANY_TYPE, null);";
Now when the form is found, I would like to have it as a QWebElement back in Qt. E.g.:
QWebElement element = (QWebElement)webView.page().mainFrame().evaluateJavaScript(js);
(I know the above works if I was to use a String object instead of QWebElement. )
Any ideas are highly appreciated!