I need look-less web-browser to interact with some web-page (e.g. enter text, click some button, then read some DIV
element). How can I accomplish it in WPF
? I tried using System.Windows.Controls.WebBrowser
, but apparently it must be rendered to interact with:
var b = new WebBrowser();
b.LoadCompleted += (sender, args) =>
{
// I never get here...
Trace.WriteLine(args.Content != null ? "Success" : "Failure");
};
b.Navigate("https://www.google.com");
How can I use it in a non-visual way? or is there a better alternative?