I'm running the following code from the docs.
PuppeteerSharp.Browser browser = await Puppeteer
.LaunchAsync(new LaunchOptions { Headless = true });
Page page = await browser.NewPageAsync();
Response x = await page.GoToAsync("http://www.google.com");
When I step through the code, after the first line is executed, the console program exits. No error, no nothing - just a finished off execution. I don't really understand why it happens.
I'm trying to use a headless browser to access a page and emulate a click on a button. First step would be to obtain the page, as I'm trying with google.com but it seems not to perform.
I've googled for other examples but all that regard C# lead to their webpage with the examples I linked to.
What should I do to make the page accessible for my clicking?