class Playwright::Touchscreen
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.
Public Instance Methods
tap_point(x, y)
click to toggle source
Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`).
# 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