Unhandled exception. System.TypeLoadException: Method 'CloseAsync' in type 'PlaywrightExtraSharp.PlaywrightExtra' from assembly 'PlaywrightExtraSharp #6
using PlaywrightExtraSharp;
using PlaywrightExtraSharp.Models;
using PlaywrightExtraSharp.Plugins.ExtraStealth;
var playwrightExtra = await new PlaywrightExtra(BrowserTypeEnum.Chromium)
.Install()
.Use(new StealthExtraPlugin())
.LaunchAsync(new ()
{
Headless = false
});
// Create a new page
var context = await playwrightExtra.NewContextAsync();
var page = await context.NewPageAsync();
await page.GotoAsync("http://google.com");
and got an error
Unhandled exception. System.TypeLoadException: Method 'CloseAsync' in type 'PlaywrightExtraSharp.PlaywrightExtra' from assembly 'PlaywrightExtraSharp, Version=1.0.7.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at Program.$(String[] args)
at Program.(String[] args)
Just create simple dotnet6 app
// Initialize, install, use plugin and launch
using PlaywrightExtraSharp; using PlaywrightExtraSharp.Models; using PlaywrightExtraSharp.Plugins.ExtraStealth;
var playwrightExtra = await new PlaywrightExtra(BrowserTypeEnum.Chromium) .Install() .Use(new StealthExtraPlugin()) .LaunchAsync(new () { Headless = false });
// Create a new page var context = await playwrightExtra.NewContextAsync(); var page = await context.NewPageAsync(); await page.GotoAsync("http://google.com");
and got an error
Unhandled exception. System.TypeLoadException: Method 'CloseAsync' in type 'PlaywrightExtraSharp.PlaywrightExtra' from assembly 'PlaywrightExtraSharp, Version=1.0.7.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at Program.$(String[] args)
at Program.(String[] args)
Process finished with exit code -532,462,766.
also create repository https://github.com/JumpAttacker/PlaywrightStealthTest