Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
playwright.sync_api._generated.Playwright Class Reference
Inheritance diagram for playwright.sync_api._generated.Playwright:
Inheritance graph
[legend]
Collaboration diagram for playwright.sync_api._generated.Playwright:
Collaboration graph
[legend]

Public Member Functions

typing.Dict devices (self)
 
"Selectors" selectors (self)
 
"BrowserType" chromium (self)
 
"BrowserType" firefox (self)
 
"BrowserType" webkit (self)
 
"APIRequest" request (self)
 
"BrowserType" __getitem__ (self, str value)
 
None stop (self)
 
- Public Member Functions inherited from playwright._impl._sync_base.SyncBase
None __init__ (self, Any impl_obj)
 
str __str__ (self)
 
None on (self, Any event, Any f)
 
None once (self, Any event, Any f)
 
None remove_listener (self, Any event, Any f)
 
- Public Member Functions inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
str __repr__ (self)
 

Additional Inherited Members

- Protected Member Functions inherited from playwright._impl._sync_base.SyncBase
Any _sync (self, Union[Coroutine[Any, Any, Any], Generator[Any, Any, Any]] coro)
 
Callable[..., None] _wrap_handler (self, Union[Callable[..., Any], Any] handler)
 
- Protected Attributes inherited from playwright._impl._sync_base.SyncBase
 _dispatcher_fiber
 
 _loop
 
- Protected Attributes inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
 _impl_obj
 

Member Function Documentation

◆ chromium()

"BrowserType" playwright.sync_api._generated.Playwright.chromium (   self)
Playwright.chromium

This object can be used to launch or connect to Chromium, returning instances of `Browser`.

Returns
-------
BrowserType

◆ devices()

typing.Dict playwright.sync_api._generated.Playwright.devices (   self)
Playwright.devices

Returns a dictionary of devices to be used with `browser.new_context()` or `browser.new_page()`.

```py
from playwright.sync_api import sync_playwright, Playwright

def run(playwright: Playwright):
    webkit = playwright.webkit
    iphone = playwright.devices[\"iPhone 6\"]
    browser = webkit.launch()
    context = browser.new_context(**iphone)
    page = context.new_page()
    page.goto(\"http://example.com\")
    # other actions...
    browser.close()

with sync_playwright() as playwright:
    run(playwright)
```

Returns
-------
Dict

◆ firefox()

"BrowserType" playwright.sync_api._generated.Playwright.firefox (   self)
Playwright.firefox

This object can be used to launch or connect to Firefox, returning instances of `Browser`.

Returns
-------
BrowserType

◆ request()

"APIRequest" playwright.sync_api._generated.Playwright.request (   self)
Playwright.request

Exposes API that can be used for the Web API testing.

Returns
-------
APIRequest

◆ selectors()

"Selectors" playwright.sync_api._generated.Playwright.selectors (   self)
Playwright.selectors

Selectors can be used to install custom selector engines. See [extensibility](https://playwright.dev/python/docs/extensibility) for more
information.

Returns
-------
Selectors

◆ stop()

None playwright.sync_api._generated.Playwright.stop (   self)
Playwright.stop

Terminates this instance of Playwright in case it was created bypassing the Python context manager. This is useful
in REPL applications.

```py
from playwright.sync_api import sync_playwright

playwright = sync_playwright().start()

browser = playwright.chromium.launch()
page = browser.new_page()
page.goto(\"https://playwright.dev/\")
page.screenshot(path=\"example.png\")
browser.close()

playwright.stop()
```

◆ webkit()

"BrowserType" playwright.sync_api._generated.Playwright.webkit (   self)
Playwright.webkit

This object can be used to launch or connect to WebKit, returning instances of `Browser`.

Returns
-------
BrowserType

The documentation for this class was generated from the following file: