[webkit-qt] Emulate click event with QWebElement::evaluateJavaScript
Tr3wory
tr3w at freemail.hu
Tue Jan 4 15:42:11 PST 2011
Hi,
I tried to emulate a click event on an <a> tag with
evaluateJavaScript(), but nothing happens...
First, I load the page with QWebPage::load, and after the loadFinished
signal, I search for the <a> tag with
mainFrame()->documentElement()->findFirst().
The resulting QWebElement is good, I can check it with the
toOuterXml() function.
But if I call the button.evaluateJavaScript("click()"), like i saw in
one of the examples
(http://doc.trolltech.com/latest/qwebelement.html), nothing happens.
If I create a QWebView, and attach the previous QWebPage to it, I can
see the content, and I can click on the link with the mouse...
Do you have any idea?
tr3w
More information about the webkit-qt
mailing list