in 11:05 we were using fill in this video but in new version of playwright type is removed or does not supporting anymore
@smeeangle Жыл бұрын
Awesome tutorial thanks a lot . Playwright for Java does not currently provide a built-in method to prevent auto-closing the browser window, so how to handle it? if you know , please tell me .
@LambdaTest Жыл бұрын
Hey there, Yes, Playwright does not currently provide a built-in method to prevent auto-closing the browser window. However, there are a few workarounds that you can use. One workaround is to use the Thread.sleep() method. This method will pause the execution of your script for a specified amount of time, in milliseconds. This will prevent the browser from closing until the delay has expired. Another workaround is to use the page.pause() method. This method will pause the execution of your script until the user either presses the "Resume" button in the page overlay or calls the playwright.resume() method in the DevTools console. Let us know if this helps ✨