Slow Motion (+3)
Slow Motion
browser = p.chromium.launch(slow_mo=500) # 500ms delay between actions
Headed Mode
browser = p.chromium.launch(headless=False) # See the browser
Pause Execution
page.pause() # Opens Playwright Inspector
Trace Recording
context = browser.new_context()
context.tracing.start(screenshots=True, snapshots=True)
page = context.new_page()
# ... test code ...
context.tracing.stop(path="trace.zip")
# View with: playwright show-trace trace.zip