Playwright
Playwright module provides a method to launch a browser instance. The following is a typical example of using Playwright to drive automation:
- Sync
- Async
- playwright.stop()
- playwright.chromium
- playwright.devices
- playwright.firefox
- playwright.selectors
- playwright.webkit
playwright.stop()#
Terminates this instance of Playwright in case it was created bypassing the Python context manager. This is useful in REPL applications.
playwright.chromium#
- type: <BrowserType>
This object can be used to launch or connect to Chromium, returning instances of [ChromiumBrowser].
playwright.devices#
- type: <Dict>
Returns a dictionary of devices to be used with browser.new_context(**kwargs) or browser.new_page(**kwargs).
- Sync
- Async
playwright.firefox#
- type: <BrowserType>
This object can be used to launch or connect to Firefox, returning instances of [FirefoxBrowser].
playwright.selectors#
- type: <Selectors>
Selectors can be used to install custom selector engines. See Working with selectors for more information.
playwright.webkit#
- type: <BrowserType>
This object can be used to launch or connect to WebKit, returning instances of [WebKitBrowser].