Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1
-
Windows Vista + 4.7.1
-
1575462bf90851fb134db4892e93c04b396543f1
Description
Greetings Trolls,
Possibly a glitch about Qt documentation:
http://doc.qt.nokia.com/4.7-snapshot/qwebelement.html
------------------------------------------------------------
QWebElement document = frame->documentElement();
/* Assume that the document has the following structure:
<form name="myform" action="submit_form.asp" method="get">
<input type="text" name="myfield">
<input type="submit" value="Submit">
</form>
*/
QWebElement button = document.findFirst("input[type=submit]");
button.evaluateJavaScript("click()");
------------------------------------------------------------
I had to replace "click()" by "this.click()" to make it work on my side.
Thanks