microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

[Bug]: WebKit jump will never enter the following code. #1794

Closed bbhxwl closed 2 years ago

bbhxwl commented 3 years ago

Playwright version

1.2.0

Operating system

Windows

What browsers are you seeing the problem on?

WebKit

Other information

Most of the following code will not enter. Chrome and Firefox are fine.

await page.ScreenshotAsync(new PageScreenshotOptions { Path = "screenshot.png" });

 static   void Main(string[] args)
        {
            Task.Run(async()=> {
                using var playwright = await Playwright.CreateAsync();
                var browser = await playwright.Webkit.LaunchAsync(new BrowserTypeLaunchOptions() { Headless=false });
                var page = await browser.NewPageAsync();
                await page.GotoAsync("https://playwright.dev/dotnet");
                await page.ScreenshotAsync(new PageScreenshotOptions { Path = "screenshot.png" });
            });

            Console.ReadLine();
        }

What happened? / Describe the bug

Most of the following code will not enter. Chrome and Firefox are fine.

await page.ScreenshotAsync(new PageScreenshotOptions { Path = "screenshot.png" });

Code snippet to reproduce your bug

No response

Relevant log output

No response

JoelEinbinder commented 3 years ago

What operating system are you using.

We have had some bugs with webkit screenshots in the past. Can you try the latest version of playwright, v1.15? Thanks!

bbhxwl commented 3 years ago

What operating system are you using.

We have had some bugs with webkit screenshots in the past. Can you try the latest version of playwright, v1.15? Thanks! I sent the wrong version yesterday. I've been using the latest version.

image

bbhxwl commented 3 years ago

It's strange that sometimes what I say happens. Keep waiting.

mxschmitt commented 2 years ago

Sorry for the late response. I'm closing it for now since it seems stale - please open a new issue if you still encounter any issues with our latest release. Thanks!