Update playwright/README.md
This commit is contained in:
@@ -30,10 +30,13 @@ async def Page(browser='chromium', headless=True):
|
||||
|
||||
return await context.new_page()
|
||||
|
||||
if __name__ == "__main__":
|
||||
async def main():
|
||||
page = await Page()
|
||||
await page.goto('https://naver.com')
|
||||
await page.screenshot(path='screenshot.png')
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
```
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user