|
| None | tap (self, float x, float y) |
| |
| 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) |
| |
|
str | __repr__ (self) |
| |
|
|
Any | _sync (self, Union[Coroutine[Any, Any, Any], Generator[Any, Any, Any]] coro) |
| |
|
Callable[..., None] | _wrap_handler (self, Union[Callable[..., Any], Any] handler) |
| |
|
| _dispatcher_fiber |
| |
|
| _loop |
| |
|
| _impl_obj |
| |
◆ tap()
| None playwright.sync_api._generated.Touchscreen.tap |
( |
|
self, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| |
Touchscreen.tap
Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`).
**NOTE** `page.tap()` the method will throw if `hasTouch` option of the browser context is false.
Parameters
----------
x : float
X coordinate relative to the main frame's viewport in CSS pixels.
y : float
Y coordinate relative to the main frame's viewport in CSS pixels.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/playwright/sync_api/_generated.py