About this tool
About this Playwright Python compiler
This free online Playwright Python compiler runs your script against a real Chromium browser on our servers. Write Python, click Run, and the console shows the output as it runs. You do not need to install Python, Playwright or its browsers.
- Python 3.12in a virtual env
- Playwrightfor Python
- Chromiumheadless, on our servers
- Freeno sign-up to run
How to run Playwright Python online
- Write a normal Python script with the sync or async API. The starter code is a working example.
- Start the browser with
p.chromium.launch(). It launches headless Chromium for you. - Click Run. The script runs as
main.pyin its own container. - Read the output and errors in the console. Sign in to save a script or share a link.
Practise what you run
Five courses, every lesson checked by real tests
- API Testing32 assignments with real API requests and instant feedback.
- Selenium Java70 assignments with live execution and instant feedback.
- Selenium Python80 assignments with live execution and instant feedback.
- Playwright JS70 assignments covering selectors, assertions, and frames.
- REST Assured62 API testing assignments against live endpoints.
What's installed
- Python 3.12
- Playwright for Python and pytest-playwright
- Chromium, ready to launch
- Internet access, so your script can open any public website
Limits
- The browser runs headless. You see console output, not a browser window.
- The code runs as a plain script with
python main.py, not throughpytest. - Each run gets 1 CPU and 2 GB of memory. Code can be up to 100,000 characters.
- You can run up to 20 scripts a minute.
Frequently asked questions
Is the Playwright Python compiler free?
Yes. Running code is free and needs no account. Saving and sharing scripts needs a free sign-in.
Do I need to run playwright install?
No. Chromium is already installed in the container, so launch() works straight away.
Can I use the async API?
Yes. Use async_playwright() with asyncio.run() as you would locally.
New to Playwright?Learn Playwright from scratch70 lessons in JavaScript, the first 9 free