appium_lib_core 2.0.2 → 2.0.3
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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/appium_lib_core.gemspec +1 -1
- data/lib/appium_lib_core.rb +12 -6
- data/lib/appium_lib_core/common/base/bridge.rb +2 -2
- data/lib/appium_lib_core/common/base/bridge/w3c.rb +10 -1
- data/lib/appium_lib_core/common/base/driver.rb +2 -2
- data/lib/appium_lib_core/common/touch_action/multi_touch.rb +1 -1
- data/lib/appium_lib_core/common/touch_action/touch_actions.rb +1 -1
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +11 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da0947c94d50f4e7518d1b1ebb0ba29b06f0fbf2
|
4
|
+
data.tar.gz: 9d2fce50624b572a8850400d1cb07e387fb3b12d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad6c98d44e17439b9192dca4d61b650f7262f3bbb59417e174b15cb42c3f4564992e9c121112a021f98be5c4ca726b46187ad935b1f162f672df12729ae21763
|
7
|
+
data.tar.gz: 9a88e4a18592e61277284f93ff1604fa1efb87d98a92f84b67517ce1fe9c0357e9f43102c8f503cdc2c665b9909adf5dc52b206bf38ebf7686fa8b81ede1a34d
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
|
|
8
8
|
|
9
9
|
### Deprecations
|
10
10
|
|
11
|
+
## [2.0.3] - 2018-10-11
|
12
|
+
### Enhancements
|
13
|
+
- Set `'selenium-webdriver', '~> 3.14.1'`
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
|
17
|
+
### Deprecations
|
18
|
+
|
11
19
|
## [2.0.2] - 2018-10-02
|
12
20
|
### Enhancements
|
13
21
|
- Add finger print feature for Android emulators [#13](https://github.com/appium/ruby_lib_core/issues/13)
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ $ rake test:func:ios # iOS
|
|
40
40
|
|
41
41
|
#### Run parallel tests with parallel_tests gem
|
42
42
|
|
43
|
-
- Create iPhone simulators named `iPhone
|
43
|
+
- Create iPhone simulators named `iPhone 8 - 8100` and `iPhone 8 - 8101`
|
44
44
|
- Run iOS functional tests with below command
|
45
45
|
|
46
46
|
```
|
data/appium_lib_core.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.14'
|
25
|
+
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.14.1'
|
26
26
|
spec.add_runtime_dependency 'faye-websocket', '~> 0.10.0'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
data/lib/appium_lib_core.rb
CHANGED
@@ -16,13 +16,19 @@ module Appium
|
|
16
16
|
# https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/activesupport/lib/active_support/core_ext/hash/keys.rb#L84
|
17
17
|
# @param [Hash] hash Hash value to make symbolise
|
18
18
|
def self.symbolize_keys(hash)
|
19
|
-
raise 'symbolize_keys requires a hash' unless hash.is_a? Hash
|
20
|
-
|
21
|
-
hash.
|
22
|
-
key =
|
23
|
-
|
19
|
+
raise ArgumentError, 'symbolize_keys requires a hash' unless hash.is_a? Hash
|
20
|
+
|
21
|
+
hash.each_with_object({}) do |pair, acc|
|
22
|
+
key = begin
|
23
|
+
pair[0].to_sym
|
24
|
+
rescue StandardError => e
|
25
|
+
::Appium::Logger.warn(e.message)
|
26
|
+
pair[0]
|
27
|
+
end
|
28
|
+
|
29
|
+
value = pair[1]
|
30
|
+
acc[key] = value.is_a?(Hash) ? symbolize_keys(value) : value
|
24
31
|
end
|
25
|
-
result
|
26
32
|
end
|
27
33
|
|
28
34
|
module Core
|
@@ -58,7 +58,7 @@ module Appium
|
|
58
58
|
# platformName: :ios,
|
59
59
|
# automationName: 'XCUITest',
|
60
60
|
# app: 'test/functional/app/UICatalog.app',
|
61
|
-
# platformVersion: '
|
61
|
+
# platformVersion: '11.4',
|
62
62
|
# deviceName: 'iPhone Simulator',
|
63
63
|
# useNewWDA: true,
|
64
64
|
# forceMjsonwp: true
|
@@ -77,7 +77,7 @@ module Appium
|
|
77
77
|
# platformName: :ios,
|
78
78
|
# automationName: 'XCUITest',
|
79
79
|
# app: 'test/functional/app/UICatalog.app',
|
80
|
-
# platformVersion: '
|
80
|
+
# platformVersion: '11.4',
|
81
81
|
# deviceName: 'iPhone Simulator',
|
82
82
|
# useNewWDA: true,
|
83
83
|
# },
|
@@ -72,8 +72,17 @@ module Appium
|
|
72
72
|
|
73
73
|
# For Appium
|
74
74
|
# override
|
75
|
-
def
|
75
|
+
def element_displayed?(element)
|
76
76
|
# For W3C
|
77
|
+
# https://github.com/SeleniumHQ/selenium/commit/b618499adcc3a9f667590652c5757c0caa703289
|
78
|
+
# execute_atom :isDisplayed, element
|
79
|
+
execute :is_element_displayed, id: element.ref
|
80
|
+
end
|
81
|
+
|
82
|
+
# For Appium
|
83
|
+
# override
|
84
|
+
def element_attribute(element, name)
|
85
|
+
# For W3C in Selenium Client
|
77
86
|
# execute_atom :getAttribute, element, name
|
78
87
|
execute :get_element_attribute, id: element.ref, name: name
|
79
88
|
end
|
@@ -789,12 +789,12 @@ module Appium
|
|
789
789
|
# # "udid"=>"DED4DBAD-8E5E-4AD6-BDC4-E75CF9AD84D8",
|
790
790
|
# # "automationName"=>"XCUITest",
|
791
791
|
# # "app"=>"/path/to/app/UICatalog.app",
|
792
|
-
# # "platformVersion"=>"
|
792
|
+
# # "platformVersion"=>"11.4",
|
793
793
|
# # "deviceName"=>"iPhone Simulator",
|
794
794
|
# # "useNewWDA"=>true,
|
795
795
|
# # "useJSONSource"=>true,
|
796
796
|
# # "someCapability"=>"some_capability",
|
797
|
-
# # "sdkVersion"=>"
|
797
|
+
# # "sdkVersion"=>"11.4",
|
798
798
|
# # "CFBundleIdentifier"=>"com.example.apple-samplecode.UICatalog",
|
799
799
|
# # "pixelRatio"=>2,
|
800
800
|
# # "statBarHeight"=>23.4375,
|
@@ -10,7 +10,7 @@ module Appium
|
|
10
10
|
# @example
|
11
11
|
#
|
12
12
|
# @driver = Appium::Core.for(opts).start_driver
|
13
|
-
# action_1 = TouchAction.new(@driver).press(x: 45, y: 100).wait(
|
13
|
+
# action_1 = TouchAction.new(@driver).press(x: 45, y: 100).wait(600).release
|
14
14
|
# action_2 = TouchAction.new(@driver).tap(element: el, x: 50, y:5, count: 3)
|
15
15
|
#
|
16
16
|
# multi_touch_action = MultiTouch.new(@driver)
|
@@ -13,7 +13,7 @@ module Appium
|
|
13
13
|
# @example
|
14
14
|
#
|
15
15
|
# @driver = Appium::Core.for(opts).start_driver
|
16
|
-
# action = TouchAction.new(@driver).press(x: 45, y: 100).wait(
|
16
|
+
# action = TouchAction.new(@driver).press(x: 45, y: 100).wait(600).release
|
17
17
|
# action.perform
|
18
18
|
# action = TouchAction.new(@driver).swipe(....)
|
19
19
|
# action.perform
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '2.0.
|
4
|
-
DATE = '2018-10-
|
3
|
+
VERSION = '2.0.3'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-10-11'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
#### v2.0.3 2018-10-11
|
2
|
+
|
3
|
+
- [9afbc4c](https://github.com/appium/ruby_lib_core/commit/9afbc4c929a1b9d882e441bf456036cf3386d0ae) Release 2.0.3
|
4
|
+
- [a626518](https://github.com/appium/ruby_lib_core/commit/a62651825dffdd3be52619f5497e1b36dfbb0ce5) use selenium 3.14.1 (#150)
|
5
|
+
- [8677335](https://github.com/appium/ruby_lib_core/commit/8677335f18e6687d5aa32c91c41b6adcdfee564f) bump test ios version (#148)
|
6
|
+
- [381a9d2](https://github.com/appium/ruby_lib_core/commit/381a9d2106ce7e0b4e1c28334b70181eb9377d4e) add tests for symbolize_keys (#146)
|
7
|
+
- [b54ce1e](https://github.com/appium/ruby_lib_core/commit/b54ce1ebc7a562d6c9b31d3d3da1556694827bcc) add caps for chrome
|
8
|
+
- [bdccc0f](https://github.com/appium/ruby_lib_core/commit/bdccc0f374a60388b081fc3ccd556ff94ac7c428) add comments for w3c spec in search context
|
9
|
+
- [8f2cf1d](https://github.com/appium/ruby_lib_core/commit/8f2cf1d4aec26a94683250736f8aa9cfed0a8a3d) tweak default wait time
|
10
|
+
|
11
|
+
|
1
12
|
#### v2.0.2 2018-10-02
|
2
13
|
|
3
14
|
- [8a1c128](https://github.com/appium/ruby_lib_core/commit/8a1c1282ecdff628d3cd6508dbf455a9884a816d) Release 2.0.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.14.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.14.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faye-websocket
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|