QWebElement input click()
-
Greetings Trolls,
Just a quick post 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.
-
A bug report on http://bugreports.qt.nokia.com would be the best; not all Trolls read Qt DevNet ;-)
-
Done: http://bugreports.qt.nokia.com/browse/QTBUG-17029
Thanks :).