Class: Playwright::Touchscreen
- Inherits:
-
PlaywrightApi
- Object
- PlaywrightApi
- Playwright::Touchscreen
- Defined in:
- lib/playwright_api/touchscreen.rb
Overview
The Touchscreen class operates in main-frame CSS pixels relative to the top-left corner of the viewport. Methods on the touchscreen can only be used in browser contexts that have been initialized with `hasTouch` set to true.
Instance Method Summary collapse
-
#tap_point(x, y) ⇒ Object
Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`).
Methods inherited from PlaywrightApi
Constructor Details
This class inherits a constructor from Playwright::PlaywrightApi
Instance Method Details
#tap_point(x, y) ⇒ Object
Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`).
7 8 9 |
# File 'lib/playwright_api/touchscreen.rb', line 7 def tap_point(x, y) wrap_impl(@impl.tap_point(unwrap_impl(x), unwrap_impl(y))) end |