Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method not found / IJsHandle ExecutionContext #2631

Closed
jaybee82 opened this issue May 6, 2024 · 1 comment
Closed

Method not found / IJsHandle ExecutionContext #2631

jaybee82 opened this issue May 6, 2024 · 1 comment

Comments

@jaybee82
Copy link

jaybee82 commented May 6, 2024

Description

While launch browser, an exception got raised:
Method not found: 'PuppeteerSharp.IExecutionContext PuppeteerSharp.IJSHandle.get_ExecutionContext()

Complete minimal example reproducing the issue

var mainHtmlContent = await GetMainTemplateContentAsync(templateViewModel);

await new BrowserFetcher().DownloadAsync();

var launchOptions = new LaunchOptions
{
Timeout = 50000
};
await using var browser = await Puppeteer.LaunchAsync(launchOptions); <- throws Exception

await using var page = await browser.NewPageAsync();
await page.SetContentAsync(mainHtmlContent);
...

Expected behavior:

Create browser instance without issues

Actual behavior:

Exception got raised, method not found.

Versions

See exception with versions 13.0.0 to 17.0.0. Version 12.0.0 is working fine
Targeting .Net 8

Additional Information

@kblok
Copy link
Member

kblok commented May 6, 2024

@jaybee82 can you share the stack trace?

@kblok kblok closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants