Hello.
I need to run a javascript just after of load a page from a server. This page contains forms, I need to fill it and later do a submit, all this by a javascript. I'd like to catch the event when the page load is complete in the webview and run the javascript in this moment.
I'm using Rho::Webview.navigate(url) to run the webview and load the page, I know that there is Rho::WebView.executeJavascript(javascript) but I don't know how execute this instruction after the page was completely loaded.
Looking in the log there are a line "QtMainWindow| Page load complete." that indicates me that the framework detects the end of the page load and here is where I'd like to run the javascript.
1 Replies
Is suitable solution if inject javascript in page?
window.onload = function(){alert('Loading complete')}