Qml evaluatejavascript problem
-
Hello, I have Qml WebView and I'm trying to simulate a click event on a div.
the div is:
<div class="ih" ><div class="jh kh"></div></div>I have tried to simulate the click event in this way but it doesn't work:
@ Button{
onClicked: webView.evaluate("document.getElementsByClassName('ih').click()")
} @
Can someone help?