playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
1.94k stars 145 forks source link

How to keep browser opening by the end of the code running? #326

Open lantinglou opened 1 year ago

lantinglou commented 1 year ago

Is there any way to make browser stay open after a test is finished? (Chromium MacOS ARM version) Even i use page.Pause() or other WaitFor method, browser still auto close after about 1 min.

Update: use local Chrome or Edge on MacOS ARM will NOT auto close. Also chromium works fine on Windows. it may some kind of bug on Chromium MacOS arm version.

isxuelinme commented 1 year ago

the problem happened my MacOS ARM , so anyone have resolved ?

yundmb commented 1 year ago

I have the same problem with my macos x86. When the logical code is finished, block the process with select{} and the browser will exit after a certain amount of time. Is this a bug?

ChristianSch commented 1 year ago

Maybe this is related? https://github.com/microsoft/playwright/issues/12974

Might be fixed by https://github.com/playwright-community/playwright-go/pull/352