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 PuppeteerSharp.IPage.EvaluateExpressionOnNewDocumentAsync(System.String) #64

Open
sirEgghead opened this issue Jul 3, 2024 · 1 comment

Comments

@sirEgghead
Copy link

Running PuppeteerExtraSharp 2.0.0. Using the quick start example in the README. Receiving exception on the var browser line

System.MissingMethodException
  HResult=0x80131513
  Message=Method not found: 'System.Threading.Tasks.Task PuppeteerSharp.IPage.EvaluateExpressionOnNewDocumentAsync(System.String)'.
  Source=PuppeteerExtraSharp
  StackTrace:
   at PuppeteerExtraSharp.Plugins.ExtraStealth.StealthPlugin.<OnPageCreated>d__5.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at PuppeteerExtraSharp.Plugins.ExtraStealth.StealthPlugin.OnPageCreated(IPage page)
   at PuppeteerExtraSharp.PuppeteerExtra.<Register>d__9.MoveNext()
   at PuppeteerExtraSharp.PuppeteerExtra.<OnStart>d__5.MoveNext()
   at PuppeteerExtraSharp.PuppeteerExtra.<LaunchAsync>d__2.MoveNext()
   at hospitalvote.MainClass.<Main>d__0.MoveNext() in C:\Users\user\dev\app\app console\Program.cs:line 15
@ToSa27
Copy link

ToSa27 commented Jul 7, 2024

Looks like this is an incompatibility with a recent PuppeteerSharp update. I got the same error after updating PuppeteerSharp from v12 to v18.0.3

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