I am using aCefSharp.Wpf.ChromiumWebBrowser (version 47.0.3.0) to load a web page. After the page is loaded, I want to get the source code.
I called:
wb.GetBrowser().MainFrame.GetSourceAsync()
however, it does not seem to return the entire source code (I believe this is because there are child frames).
If I call:
wb.GetBrowser().MainFrame.ViewSource()
I see that it lists all the source codes (including internal frames).
I would like to get the same result as ViewSource (). Can someone point me in the right direction?
Update - added sample code
Note. The address pointed to by the web browser will only work until 03/10/2016. After that, it can display different data, which is not what I would look at.
In the frmSelection.xaml file
<cefSharp:ChromiumWebBrowser Name="wb" Grid.Column="1" Grid.Row="0" />
In the frmSelection.xaml.cs file
public partial class frmSelection : UserControl { private System.Windows.Threading.DispatcherTimer wbTimer = new System.Windows.Threading.DispatcherTimer(); public frmSelection() { InitializeComponent();
c # wpf cefsharp
Scott
source share