I'm trying to move from Selenium to Playwright for some webscraping tasks.
Perhaps I got stuck into this bad habit of having Selenium running the browser on the side while testing the commands and selectors on the run.
Is there any way to achieve something similar using Playwright?
What I achieved so far was running playwright on the console, something similar to this:
from playwright.sync_api import sync_playwright
with sync_playwright() as pw:
browser = pw.chromium.launch(headless=False)
page = browser.new_page()
page.goto('https://google.com')
page.pause()
I get a Browser window together with a Playwright Inspector - from there I none of my commands or variables will execute.