playwright-go icon indicating copy to clipboard operation
playwright-go copied to clipboard

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

Open lantinglou opened this issue 2 years ago • 3 comments

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.

lantinglou avatar Dec 17 '22 19:12 lantinglou

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

isxuelinme avatar Feb 11 '23 11:02 isxuelinme

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?

yundmb avatar May 12 '23 09:05 yundmb

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

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

ChristianSch avatar Jun 17 '23 14:06 ChristianSch