class Playwright::AndroidDevice
‘AndroidDevice` represents a connected device, either real hardware or emulated. Devices can be obtained using [`method: Android.devices`].
def close
def close wrap_impl(@impl.close) end
def drag(selector, dest, speed: nil)
def drag(selector, dest, speed: nil) raise NotImplementedError.new('drag is not implemented yet.') end
def event_emitter_proxy
def event_emitter_proxy _emitter_proxy ||= EventEmitterProxy.new(self, @impl)
def fill(selector, text)
def fill(selector, text) raise NotImplementedError.new('fill is not implemented yet.') end
def fling(selector, direction, speed: nil)
def fling(selector, direction, speed: nil) raise NotImplementedError.new('fling is not implemented yet.') end
def info(selector)
def info(selector) wrap_impl(@impl.info(unwrap_impl(selector))) end
def input # property
def input # property wrap_impl(@impl.input) end
def install_apk(file, args: nil)
def install_apk(file, args: nil) raise NotImplementedError.new('install_apk is not implemented yet.') end
def launch_browser(
def launch_browser( acceptDownloads: nil, args: nil, baseURL: nil, bypassCSP: nil, colorScheme: nil, command: nil, deviceScaleFactor: nil, extraHTTPHeaders: nil, forcedColors: nil, geolocation: nil, hasTouch: nil, httpCredentials: nil, ignoreHTTPSErrors: nil, isMobile: nil, javaScriptEnabled: nil, locale: nil, noViewport: nil, offline: nil, permissions: nil, proxy: nil, record_har_content: nil, record_har_mode: nil, record_har_omit_content: nil, record_har_path: nil, record_har_url_filter: nil, record_video_dir: nil, record_video_size: nil, reducedMotion: nil, screen: nil, serviceWorkers: nil, strictSelectors: nil, timezoneId: nil, userAgent: nil, viewport: nil, &block) wrap_impl(@impl.launch_browser(acceptDownloads: unwrap_impl(acceptDownloads), args: unwrap_impl(args), baseURL: unwrap_impl(baseURL), bypassCSP: unwrap_impl(bypassCSP), colorScheme: unwrap_impl(colorScheme), command: unwrap_impl(command), deviceScaleFactor: unwrap_impl(deviceScaleFactor), extraHTTPHeaders: unwrap_impl(extraHTTPHeaders), forcedColors: unwrap_impl(forcedColors), geolocation: unwrap_impl(geolocation), hasTouch: unwrap_impl(hasTouch), httpCredentials: unwrap_impl(httpCredentials), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), isMobile: unwrap_impl(isMobile), javaScriptEnabled: unwrap_impl(javaScriptEnabled), locale: unwrap_impl(locale), noViewport: unwrap_impl(noViewport), offline: unwrap_impl(offline), permissions: unwrap_impl(permissions), proxy: unwrap_impl(proxy), record_har_content: unwrap_impl(record_har_content), record_har_mode: unwrap_impl(record_har_mode), record_har_omit_content: unwrap_impl(record_har_omit_content), record_har_path: unwrap_impl(record_har_path), record_har_url_filter: unwrap_impl(record_har_url_filter), record_video_dir: unwrap_impl(record_video_dir), record_video_size: unwrap_impl(record_video_size), reducedMotion: unwrap_impl(reducedMotion), screen: unwrap_impl(screen), serviceWorkers: unwrap_impl(serviceWorkers), strictSelectors: unwrap_impl(strictSelectors), timezoneId: unwrap_impl(timezoneId), userAgent: unwrap_impl(userAgent), viewport: unwrap_impl(viewport), &wrap_block_call(block))) end
def long_tap(selector)
def long_tap(selector) raise NotImplementedError.new('long_tap is not implemented yet.') end
def model
def model wrap_impl(@impl.model) end
def off(event, callback)
-- inherited from EventEmitter --
def off(event, callback) event_emitter_proxy.off(event, callback) end
def on(event, callback)
-- inherited from EventEmitter --
def on(event, callback) event_emitter_proxy.on(event, callback) end
def once(event, callback)
-- inherited from EventEmitter --
def once(event, callback) event_emitter_proxy.once(event, callback) end
def open(command)
def open(command) raise NotImplementedError.new('open is not implemented yet.') end
def pinch_close(selector, percent, speed: nil)
def pinch_close(selector, percent, speed: nil) raise NotImplementedError.new('pinch_close is not implemented yet.') end
def pinch_open(selector, percent, speed: nil)
def pinch_open(selector, percent, speed: nil) raise NotImplementedError.new('pinch_open is not implemented yet.') end
def press(selector, key)
def press(selector, key) raise NotImplementedError.new('press is not implemented yet.') end
def push(file, path, mode: nil)
def push(file, path, mode: nil) raise NotImplementedError.new('push is not implemented yet.') end
def screenshot(path: nil)
def screenshot(path: nil) wrap_impl(@impl.screenshot(path: unwrap_impl(path))) end
def scroll(selector, direction, percent, speed: nil)
def scroll(selector, direction, percent, speed: nil) raise NotImplementedError.new('scroll is not implemented yet.') end
def serial
def serial wrap_impl(@impl.serial) end
def set_default_timeout(timeout)
def set_default_timeout(timeout) raise NotImplementedError.new('set_default_timeout is not implemented yet.') end
def shell(command)
def shell(command) wrap_impl(@impl.shell(unwrap_impl(command))) end
def should_close_connection_on_close!
def should_close_connection_on_close! wrap_impl(@impl.should_close_connection_on_close!) end
def swipe(selector, direction, percent, speed: nil)
def swipe(selector, direction, percent, speed: nil) raise NotImplementedError.new('swipe is not implemented yet.') end
def tap_on(selector, duration: nil, timeout: nil)
def tap_on(selector, duration: nil, timeout: nil) wrap_impl(@impl.tap_on(unwrap_impl(selector), duration: unwrap_impl(duration), timeout: unwrap_impl(timeout))) end
def tap_point(selector, duration: nil)
def tap_point(selector, duration: nil) raise NotImplementedError.new('tap_point is not implemented yet.') end
def wait(selector, state: nil)
def wait(selector, state: nil) raise NotImplementedError.new('wait is not implemented yet.') end
def wait_for_event(event, optionsOrPredicate: nil)
def wait_for_event(event, optionsOrPredicate: nil) raise NotImplementedError.new('wait_for_event is not implemented yet.') end
def web_view(selector)
def web_view(selector) raise NotImplementedError.new('web_view is not implemented yet.') end
def web_views
def web_views raise NotImplementedError.new('web_views is not implemented yet.') end