I want to make a snapshot from the content of a webbrowser. Silently, in the background, so the user does not see the browser. I used revBrowserOpen and revBrowserSnapshot. That worked fine, accept for the Javascript error on the webpage. I searched for a solution. On the forum they told me to use revBrowserOpenCEF. It worked, no scripting errors, but now the revBrowserSnapshot doesn't work anymore.
I got the next error in LC: execution error at line n/a (External handler: exception) near "snapshot failed"
My stack (LC Indy 8.1.1 on Windows 10) :
- One rectangle graphic
- One Button with the code:
on mouseUp
local tWinID, tBrowserId, tData, tImgData
-- get the windowID of the stack for the external RevBrowser
put the windowID of this stack into tWinID
-- initialize browser without initial URL
put revBrowserOpenCEF(tWinID,) into tBrowserId
wait 3000 milliseconds with messages
revBrowserSet tBrowserId, "rect", the rect of graphic "Browser Rect Graphic"
wait 3000 milliseconds with messages
put "http://www.openworld.com/openworld-people/" into tData
revBrowserSet tBrowserId, "url", tData
wait 3000 milliseconds with messages
revBrowserSnapshot tBrowserId, "tImgData"
end mouseUp
I can choose between a 'Javascript error' or 'External handler: exception'.

Is there someone with a solution?
Thanks.