class Playwright::Playwright
def stop
playwright.stop()
browser.close()
page.screenshot(path="example.png")
page.goto("https://playwright.dev/")
page = browser.new_page()
browser = playwright.chromium.launch()
playwright = sync_playwright().start()
from playwright.sync_api import sync_playwright
```py
Terminates this instance of Playwright in case it was created bypassing the Python context manager. This is useful in REPL applications.
def stop raise NotImplementedError.new('stop is not implemented yet.') end