Webview behavior

B Benigno Belisario 3 years 6 months ago
15 1 0

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.

Please Register or Login to post a reply

1 Replies

V Vladimir Musulainen

Is suitable solution if inject javascript in page?

   window.onload = function(){alert('Loading complete')}

CONTACT
Can’t find what you’re looking for?