class Playwright::AndroidInput
Public Instance Methods
drag(from, to, steps)
click to toggle source
Performs a drag between `from` and `to` points.
# File lib/playwright_api/android_input.rb, line 5 def drag(from, to, steps) wrap_impl(@impl.drag(unwrap_impl(from), unwrap_impl(to), unwrap_impl(steps))) end
press(key)
click to toggle source
Presses the `key`.
# File lib/playwright_api/android_input.rb, line 10 def press(key) wrap_impl(@impl.press(unwrap_impl(key))) end
swipe(from, segments, steps)
click to toggle source
Swipes following the path defined by `segments`.
# File lib/playwright_api/android_input.rb, line 15 def swipe(from, segments, steps) raise NotImplementedError.new('swipe is not implemented yet.') end
tap_point(point)
click to toggle source
Taps at the specified `point`.
# File lib/playwright_api/android_input.rb, line 20 def tap_point(point) wrap_impl(@impl.tap_point(unwrap_impl(point))) end
type(text)
click to toggle source
Types `text` into currently focused widget.
# File lib/playwright_api/android_input.rb, line 25 def type(text) wrap_impl(@impl.type(unwrap_impl(text))) end