Sha256: c567c5d7af3426846bf3ad2812282f9096cb7ee373d57ef61990a65f9d4d263a
Contents?: true
Size: 1.43 KB
Versions: 6
Compression:
Stored size: 1.43 KB
Contents
require_relative 'search_context' module Appium module Core class Base class Driver < ::Selenium::WebDriver::Driver include ::Selenium::WebDriver::DriverExtensions::UploadsFiles include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot include ::Selenium::WebDriver::DriverExtensions::HasSessionId include ::Selenium::WebDriver::DriverExtensions::Rotatable include ::Selenium::WebDriver::DriverExtensions::HasRemoteStatus include ::Selenium::WebDriver::DriverExtensions::HasWebStorage include ::Appium::Core::Base::SearchContext def initialize(opts = {}) listener = opts.delete(:listener) @bridge = ::Appium::Core::Base::Bridge.handshake(opts) if @bridge.dialect == :oss extend ::Selenium::WebDriver::DriverExtensions::HasTouchScreen extend ::Selenium::WebDriver::DriverExtensions::HasLocation extend ::Selenium::WebDriver::DriverExtensions::HasNetworkConnection end super(@bridge, listener: listener) end # Get the device window's size. # @return [Selenium::WebDriver::Dimension] # # @example # size = @driver.window_size # size.width #=> Integer # size.height #=> Integer def window_size manage.window.size end end # class Driver end # class Base end # module Core end # module Appium
Version data entries
6 entries across 6 versions & 1 rubygems