require 'pry' require 'appium_lib' require_relative File.expand_path('../../base_screen/base_screen.rb', __FILE__) # Class to not pollute 'Object' class with appium methods class AppiumWorld end if ENV['PLATAFORM'] == 'android' caps = Appium.load_appium_txt file: File.expand_path('../android/appium.txt', __FILE__), verbose: true else caps = Appium.load_appium_txt file: File.expand_path('../ios/appium.txt', __FILE__), verbose: true end Appium::Driver.new(caps) Appium.promote_appium_methods Object World do AppiumWorld.new end