appium_lib 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/android_docs.md +108 -108
- data/docs/ios_docs.md +107 -107
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +17 -3
- data/release_notes.md +6 -0
- metadata +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
module Appium
|
|
3
3
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
|
4
|
-
VERSION = '0.6.
|
|
5
|
-
DATE = '2013-08-
|
|
4
|
+
VERSION = '0.6.6' unless defined? ::Appium::VERSION
|
|
5
|
+
DATE = '2013-08-19' unless defined? ::Appium::DATE
|
|
6
6
|
end
|
data/lib/appium_lib/driver.rb
CHANGED
|
@@ -193,7 +193,8 @@ module Appium
|
|
|
193
193
|
|
|
194
194
|
attr_reader :default_wait, :app_path, :app_name, :device,
|
|
195
195
|
:app_package, :app_activity, :app_wait_activity,
|
|
196
|
-
:sauce_username, :sauce_access_key, :port, :debug
|
|
196
|
+
:sauce_username, :sauce_access_key, :port, :debug,
|
|
197
|
+
:export_session
|
|
197
198
|
|
|
198
199
|
# The amount to sleep in seconds before every webdriver http call.
|
|
199
200
|
attr_accessor :global_webdriver_http_sleep
|
|
@@ -233,6 +234,8 @@ module Appium
|
|
|
233
234
|
# convert to downcased symbols
|
|
234
235
|
opts.each_pair { |k,v| opts[k.to_s.downcase.strip.intern] = v }
|
|
235
236
|
|
|
237
|
+
@export_session = opts.fetch :export_session, false
|
|
238
|
+
|
|
236
239
|
@default_wait = opts.fetch :wait, 30
|
|
237
240
|
|
|
238
241
|
# Path to the .apk, .app or .app.zip.
|
|
@@ -409,9 +412,10 @@ module Appium
|
|
|
409
412
|
# Example: screenshot '/tmp/hi.png'
|
|
410
413
|
#
|
|
411
414
|
# @param png_save_path [String] the full path to save the png
|
|
412
|
-
# @return [
|
|
415
|
+
# @return [nil]
|
|
413
416
|
def screenshot png_save_path
|
|
414
417
|
@driver.save_screenshot png_save_path
|
|
418
|
+
nil
|
|
415
419
|
end
|
|
416
420
|
|
|
417
421
|
# Quits the driver
|
|
@@ -432,6 +436,16 @@ module Appium
|
|
|
432
436
|
@driver = Selenium::WebDriver.for :remote, http_client: @client, desired_capabilities: capabilities, url: server_url
|
|
433
437
|
# Load touch methods. Required for Selendroid.
|
|
434
438
|
@driver.extend Selenium::WebDriver::DriverExtensions::HasTouchScreen
|
|
439
|
+
|
|
440
|
+
# export session
|
|
441
|
+
if @export_session
|
|
442
|
+
begin
|
|
443
|
+
File.open('/tmp/appium_lib_session', 'w') do |f|
|
|
444
|
+
f.puts @driver.session_id
|
|
445
|
+
end
|
|
446
|
+
rescue
|
|
447
|
+
end
|
|
448
|
+
end
|
|
435
449
|
rescue Errno::ECONNREFUSED
|
|
436
450
|
raise 'ERROR: Unable to connect to Appium. Is the server running?'
|
|
437
451
|
end
|
|
@@ -552,4 +566,4 @@ end # end module Appium
|
|
|
552
566
|
# Paging in Pry is annoying :q required to exit.
|
|
553
567
|
# With pager disabled, the output is similar to IRB
|
|
554
568
|
# Only set if Pry is defined.
|
|
555
|
-
Pry.config.pager = false if defined?(Pry)
|
|
569
|
+
Pry.config.pager = false if defined?(Pry)
|
data/release_notes.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
#### v0.6.5 2013-08-13
|
|
2
|
+
|
|
3
|
+
- [8b7b4d6](https://github.com/appium/ruby_lib/commit/8b7b4d6d7836bfede93b6da99bdcac836d218481) Release 0.6.5
|
|
4
|
+
- [8dadb52](https://github.com/appium/ruby_lib/commit/8dadb52e0bc0372cef575d5f1c82acdc9bec4c20) Add directory support to appium.txt require
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
#### v0.6.4 2013-08-09
|
|
2
8
|
|
|
3
9
|
- [94a9bbc](https://github.com/appium/ruby_lib/commit/94a9bbc595f42008d7fdb7ba6814efd38955294b) Release 0.6.4
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appium_lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- code@bootstraponline.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-08-
|
|
11
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: selenium-webdriver
|