Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

neoncube2/playwright-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎭Playwright for PythonPyPI versionAnaconda versionJoin Discord

Playwright is a Python library to automateChromium,Firefox andWebKit browsers with a single API. Playwright delivers automation that isever-green,capable,reliable andfast.See how Playwright is better.

LinuxmacOSWindows
Chromium 136.0.7103.25
WebKit 18.4
Firefox 137.0

Documentation

https://playwright.dev/python/docs/intro

API Reference

https://playwright.dev/python/docs/api/class-playwright

Example

fromplaywright.sync_apiimportsync_playwrightwithsync_playwright()asp:forbrowser_typein [p.chromium,p.firefox,p.webkit]:browser=browser_type.launch()page=browser.new_page()page.goto('http://playwright.dev')page.screenshot(path=f'example-{browser_type.name}.png')browser.close()
importasynciofromplaywright.async_apiimportasync_playwrightasyncdefmain():asyncwithasync_playwright()asp:forbrowser_typein [p.chromium,p.firefox,p.webkit]:browser=awaitbrowser_type.launch()page=awaitbrowser.new_page()awaitpage.goto('http://playwright.dev')awaitpage.screenshot(path=f'example-{browser_type.name}.png')awaitbrowser.close()asyncio.run(main())

Other languages

More comfortable in another programming language?Playwright is also available in

About

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python99.1%
  • Other0.9%

[8]ページ先頭

©2009-2025 Movatter.jp