Sha256: 8573300121b489a246bf758dba5e6a3aa8d1f246ffbe22b6bdd555d13fe8b730
Contents?: true
Size: 983 Bytes
Versions: 3
Compression:
Stored size: 983 Bytes
Contents
require 'rspec/expectations' require 'appium_lib' require 'cucumber/ast' require 'Ifd_Mobile' # Define global variables $current_dir = File.expand_path(File.dirname(__FILE__)) $base_dir = File.expand_path(File.dirname(__FILE__) + '/../..') require "#{$current_dir}/project_env.rb" # Create a custom World class so we don't pollute `Object` with Appium methods class AppiumWorld end case $_CONFIG['DeviceName'].upcase.to_sym when :IOS Appium::Driver.new({caps: capabilities_ios, appium_lib: {server_url: server_url}}).start_driver when :ANDROID Appium::Driver.new({caps: capabilities_android, appium_lib: {server_url: server_url}}).start_driver else raise "\nERROR: *** Invalid Device Name!. Please check the config from $_CONFIG['DeviceName'] = #{$_CONFIG['DeviceName']}" end Appium.promote_appium_methods AppiumWorld World do AppiumWorld.new end def selenium return $driver end # Before { $driver.start_driver } # # After do # $driver.driver_quit # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Ifd_Mobile-0.1.7 | project/features/support/env.rb |
Ifd_Mobile-0.1.4 | project/features/support/env.rb |
Ifd_Mobile-0.1.3 | project/features/support/env.rb |