Unsolved How to click a button in Qt WebEngine?
-
How to click a button in the newest Qt5.7
WebEngine
?
In the pastWebkit
, we could do this to click a button:QWebElement button = frame->findFirstElement("input[id=search]"); button.evaluateJavaScript("this.click()");
So, how can I do the same thing with Qt
WebEngine
?Thanks for any suggestion.
-
@Boss You will have to rely on pure JS. You can execute the script using runJavaScript.