-
-
Save anonymous/301360acba00d0ff00ff0973d7b0c5b9 to your computer and use it in GitHub Desktop.
appium_lib won't load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'lapis_lazuli' | |
require 'lapis_lazuli/cucumber' | |
LapisLazuli::WorldModule::Config.config_file = "config/config.yml" | |
World(LapisLazuli) | |
class AppiumWorld | |
end | |
require 'rubygems' | |
require 'appium_lib' | |
this_dir = File.expand_path(File.dirname(__FILE__)) | |
puts this_dir | |
APP_PATH = './chatbeta.apk' | |
desired_caps = { | |
caps: { | |
platformName: 'Android', | |
deviceName: '', | |
app: APP_PATH, | |
}, | |
appium_lib: { | |
port: 4723, | |
} | |
} | |
Appium::Driver.new(desired_caps).start_driver | |
Appium.promote_appium_methods AppiumWorld | |
World do | |
AppiumWorld.new | |
end | |
Before { $driver.start_driver } | |
After { $driver.driver_quit } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment