lib/appium_lib/driver.rb in appium_lib-0.3.2 vs lib/appium_lib/driver.rb in appium_lib-0.3.3

- old
+ new

@@ -32,10 +32,13 @@ require 'android/element/textfield' class Driver @@loaded = false + attr_reader :app_path, :app_name, :app_package, :app_activity, + :app_wait_activity, :sauce_username, :sauce_access_key, + :port, :os, :ios_js def initialize opts={} opts = {} if opts.nil? # Path to the .apk, .app or .app.zip. # The path can be local or remote for Sauce. @app_path = opts.fetch 'APP_PATH', ENV['APP_PATH'] @@ -154,9 +157,18 @@ # Restarts the driver def restart driver_quit start_driver + end + + # return driver + def driver + @driver + end + + def screenshot png_save_path + @driver.save_screenshot png_save_path end # Quits the driver # @return [void] def driver_quit \ No newline at end of file