Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: brush up some python docs (#5027)
Pavel Feldman56ba0b3cd924
diff --git a/docs/src/auth.md b/docs/src/auth.mdindex 97a067f12e..dea1fb7e9d 100644--- a/docs/src/auth.md+++ b/docs/src/auth.md@@ -227,7 +227,7 @@ async def main():browser = await p.chromium.launch_persistent_context(userDataDir, headless=False)# Execute login steps manually in the browser window-asyncio.get_event_loop().run_until_complete(main())+asyncio.run(main())``````python syncdiff --git a/docs/src/ci.md b/docs/src/ci.mdindex 8c1ee56059..b3ec9098e7 100644--- a/docs/src/ci.md+++ b/docs/src/ci.md@@ -296,7 +296,7 @@ async def main():# Works across chromium, firefox and webkitbrowser = await p.chromium.launch(headless=False)-asyncio.get_event_loop().run_until_complete(main())+asyncio.run(main())``````python syncdiff --git a/docs/src/cli.md b/docs/src/cli.mdindex ddcde1fe83..b416cce794 100644--- a/docs/src/cli.md+++ b/docs/src/cli.md@@ -17,8 +17,8 @@ $ npx playwright --help$ python -m playwright```-Running from `package.json` script-```json+```json js+# Running from `package.json` script{"scripts": {"help": "playwright --help"diff --git a/docs/src/core-concepts.md b/docs/src/core-concepts.mdindex 19e5b77c1b..721098aa2b 100644--- a/docs/src/core-concepts.md+++ b/docs/src/core-concepts.md@@ -38,7 +38,7 @@ async def main():browser = await p.chromium.launch(headless=False)await browser.close()-asyncio.get_event_loop().run_until_complete(main())+asyncio.run(main())``````python sync@@ -113,7 +113,7 @@ async def main():page = await browser.newPage()await browser.close()-asyncio.get_event_loop().run_until_complete(main())+asyncio.run(main())``````python sync