appium_lib 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/android_docs.md +148 -120
- data/docs/docs.md +6 -4
- data/docs/ios_docs.md +124 -124
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +19 -7
- data/release_notes.md +10 -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.
|
5
|
-
DATE = '2014-01-
|
4
|
+
VERSION = '0.18.0' unless defined? ::Appium::VERSION
|
5
|
+
DATE = '2014-01-27' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/lib/appium_lib/driver.rb
CHANGED
@@ -20,7 +20,6 @@ class AwesomePrint::Formatter
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
23
|
# Load appium.txt (toml format) into system ENV
|
25
24
|
# the basedir of this file + appium.txt is what's used
|
26
25
|
# @param opts [Hash] file: '/path/to/appium.txt', verbose: true
|
@@ -298,12 +297,22 @@ module Appium
|
|
298
297
|
#
|
299
298
|
# Android is always Android or Selendroid so there's no
|
300
299
|
# override required.
|
301
|
-
@device_cap = opts.fetch :device_cap,
|
300
|
+
@device_cap = opts.fetch :device_cap, 'iPhone Simulator'
|
302
301
|
|
303
302
|
# :ios, :android, :selendroid
|
304
303
|
@device = opts.fetch :device, ENV['DEVICE'] || :ios
|
305
304
|
@device = @device.to_s.downcase.intern # device must be a symbol
|
306
305
|
|
306
|
+
@version = opts[:version]
|
307
|
+
if @device == :android || @device == :selendroid
|
308
|
+
@version = '4.3' unless @version # default android to 4.3
|
309
|
+
else
|
310
|
+
@version = '7' unless @version # default ios to 7
|
311
|
+
end
|
312
|
+
|
313
|
+
@device_type = opts.fetch :device_type, 'tablet'
|
314
|
+
@device_orientation = opts.fetch :device_orientation, 'portrait'
|
315
|
+
|
307
316
|
# load common methods
|
308
317
|
extend Appium::Common
|
309
318
|
if @device == :android
|
@@ -376,9 +385,11 @@ module Appium
|
|
376
385
|
def android_capabilities
|
377
386
|
{
|
378
387
|
compressXml: @compress_xml,
|
379
|
-
platform: '
|
380
|
-
version:
|
388
|
+
platform: 'Linux',
|
389
|
+
version: @version,
|
381
390
|
device: @device == :android ? 'Android' : 'selendroid',
|
391
|
+
:'device-type' => @device_type,
|
392
|
+
:'device-orientation' => @device_orientation,
|
382
393
|
name: @app_name || 'Ruby Console Android Appium',
|
383
394
|
:'app-package' => @app_package,
|
384
395
|
:'app-activity' => @app_activity,
|
@@ -392,9 +403,10 @@ module Appium
|
|
392
403
|
def ios_capabilities
|
393
404
|
{
|
394
405
|
platform: 'OS X 10.9',
|
395
|
-
version:
|
396
|
-
device: @device_cap
|
397
|
-
name: @app_name || 'Ruby Console iOS Appium'
|
406
|
+
version: @version,
|
407
|
+
device: @device_cap,
|
408
|
+
name: @app_name || 'Ruby Console iOS Appium',
|
409
|
+
:'device-orientation' => @device_orientation
|
398
410
|
}
|
399
411
|
end
|
400
412
|
|
data/release_notes.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
#### v0.17.0 2014-01-22
|
2
|
+
|
3
|
+
- [8571197](https://github.com/appium/ruby_lib/commit/8571197b04ea923db6e375bae808bf84dea52c98) Release 0.17.0
|
4
|
+
- [1134b87](https://github.com/appium/ruby_lib/commit/1134b878791c0abb23d11250ad185c34708d54be) Fix fast clear. Fix #110
|
5
|
+
- [f0bc0b5](https://github.com/appium/ruby_lib/commit/f0bc0b5229dc21f736ab17c533e1d073c3b44a3c) Update api_19_webview.md
|
6
|
+
- [94657b4](https://github.com/appium/ruby_lib/commit/94657b45394bcd823955270529aee79b305383f3) Update api_19_webview.md
|
7
|
+
- [3b93375](https://github.com/appium/ruby_lib/commit/3b933752f560af6cf7cf976e8f2511222d255068) Create api_19_webview.md
|
8
|
+
- [9b838f4](https://github.com/appium/ruby_lib/commit/9b838f4dc280126e4468a177fa4dd83eb2417512) First attempt at webview automation for Android API 19
|
9
|
+
|
10
|
+
|
1
11
|
#### v0.16.0 2014-01-09
|
2
12
|
|
3
13
|
- [b9264f6](https://github.com/appium/ruby_lib/commit/b9264f66b9dd04eb5221c3a4c4ea17c4eb9ef8aa) Release 0.16.0
|
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.
|
4
|
+
version: 0.18.0
|
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: 2014-01-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|