Home>

I want to get HTML page code. To do this, I use CefSharp, as on the site there is defense of VVID Caps. I decided to use

String Source= await browser.getbrowser (). Mainframe.getSourceAsync ();

There were problems with Deadlock, but it seems looking through the debug, the code does not die after this line. It comes to MessageBox and nothing is displayed!

Code:

Private Async Void Browser_FrameLoadend (Object Sender, FrameloDendEventargs E)
        {
            String Source= await browser.getbrowser (). Mainframe.getSourceAsync ();
            MessageBox.Show (Source);
        }

Photos from the program:

Thank you in advance!

I think you should use FrameLoadendEventargs. Contact his property E.Frame and so on.

Alexander Petrov2021-06-09 12:54:34