Hi
Variant A does not work but variant B works.
What's the reason?
QWebElement doc = frame()->documentElement();
QWebElement doc = frame()->documentElement();
To copy to clipboard, switch view to plain text mode
// variant A
doc.findFirst("input[id='someId']").evaluateJavaScript("click()");
doc.findFirst("input[id='someId']").evaluateJavaScript("click()");
To copy to clipboard, switch view to plain text mode
// variant B
doc.findFirst("input[id='someId']").evaluateJavaScript("document.getElementById('someId').click()");
doc.findFirst("input[id='someId']").evaluateJavaScript("document.getElementById('someId').click()");
To copy to clipboard, switch view to plain text mode
Bookmarks