Page 1 of 1

console.log makes page got stcuk and can not load new url

PostPosted: Mon Jan 25, 2021 8:26 am
by robinyeeh
I m using cef to render h5 and save as video, and also i m using zmq to communicate between cef app and my backend app using python. Once cef got zmq message with url from python app, then using LoadUrl to control url input instead of human behavior.

All goes fine if the page has console.log or alert, then i tried to send new url and call LoadUrl func but nothing happens, i tried others and got same result.

Seems the page got stuck, then i printed the logs with "browser_->GetMainFrame()->GetURL()", the url is always the one with console.log.

Could anyone help on this? Thanks a lot.