Module: Applitools::Appium::Init19

Extended by:
Init19
Included in:
Init19
Defined in:
lib/applitools/appium/initialize_1.9.rb

Instance Method Summary collapse

Instance Method Details

#initObject


7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/applitools/appium/initialize_1.9.rb', line 7

def init
  Applitools::Utils::EyesSeleniumUtils.module_eval do
    alias_method :super_mobile_device?, :mobile_device?
    alias_method :super_android?, :android?
    alias_method :super_ios?, :ios?
    alias_method :super_platform_version, :platform_version
    alias_method :super_current_scroll_position, :current_scroll_position
    include Applitools::Appium::Utils
  end

  Applitools::Selenium::Eyes.class_eval do
    include Applitools::Appium::Eyes
  end
end