appium_lib_core 3.8.0 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/ci-jobs/functional_test.yml +2 -2
- data/lib/appium_lib_core/driver.rb +13 -7
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3460051d458ee50ac23d5a2d6ebf9d5404382a63740de60e2c51284db5da7418
|
4
|
+
data.tar.gz: bf58c7552b40d2461fc03bf0f06eb1845cc04c801f6bafa4e13d1f8448627c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16368ab0315f00e08232551751422cc5cbfe89e0c0b5b046d8ac3543e5c3d3253c4a27f50cadb7b7c6209df6d06e52bcfc7861bdee3126ab44e568950301da14
|
7
|
+
data.tar.gz: e5b0b72438585da43ba935584aeb58c0c17d3ce8463b724565afaa52260a2cd6e0c8727e89f219723d3c96aac527ca70b9b8f6ee49d7ef5f0f40f42d15e6c8c9
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,28 @@ Read `release_notes.md` for commit level details.
|
|
10
10
|
|
11
11
|
### Deprecations
|
12
12
|
|
13
|
+
## [3.9.0] - 2020-05-31
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
- `capabilities:` is available in addition to `desired_capabilities:` and `caps:` as a capability
|
17
|
+
```ruby
|
18
|
+
# case 1
|
19
|
+
opts = { caps: { }, appium_lib: { } }
|
20
|
+
@driver = Appium::Core.for(opts).start_driver
|
21
|
+
|
22
|
+
# case 2
|
23
|
+
opts = { capabilities: { }, appium_lib: { } }
|
24
|
+
@driver = Appium::Core.for(opts).start_driver
|
25
|
+
|
26
|
+
# case 3
|
27
|
+
opts = { desired_capabilities: { }, appium_lib: { } }
|
28
|
+
@driver = Appium::Core.for(opts).start_driver
|
29
|
+
```
|
30
|
+
|
31
|
+
### Bug fixes
|
32
|
+
|
33
|
+
### Deprecations
|
34
|
+
|
13
35
|
## [3.8.0] - 2020-05-17
|
14
36
|
|
15
37
|
### Enhancements
|
data/ci-jobs/functional_test.yml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
parameters:
|
3
3
|
vmImage: 'macOS-10.15'
|
4
4
|
vmImageForIOS: 'macOS-10.15' # Not sure the reason, but macOS 10.14 instance raises no info.plist error
|
5
|
-
xcodeForIOS: 11.
|
6
|
-
xcodeForTVOS: 11.
|
5
|
+
xcodeForIOS: 11.5
|
6
|
+
xcodeForTVOS: 11.5
|
7
7
|
androidSDK: 29
|
8
8
|
appiumVersion: 'beta'
|
9
9
|
ignoreVersionSkip: true
|
@@ -182,7 +182,9 @@ module Appium
|
|
182
182
|
|
183
183
|
# Creates a new driver and extend particular methods
|
184
184
|
# @param [Hash] opts A options include capabilities for the Appium Server and for the client.
|
185
|
-
# @option opts [Hash] :caps Appium capabilities.
|
185
|
+
# @option opts [Hash] :caps Appium capabilities.
|
186
|
+
# @option opts [Hash] :capabilities The same as :caps.
|
187
|
+
# This param is for compatibility with Selenium WebDriver format
|
186
188
|
# @option opts [Hash] :desired_capabilities The same as :caps.
|
187
189
|
# This param is for compatibility with Selenium WebDriver format
|
188
190
|
# @option opts [Appium::Core::Options] :appium_lib Capabilities affect only ruby client
|
@@ -195,8 +197,8 @@ module Appium
|
|
195
197
|
#
|
196
198
|
# # format 1
|
197
199
|
# @core = Appium::Core.for caps: {...}, appium_lib: {...}
|
198
|
-
# # format 2. 'desired_capabilities:' is also available instead of 'caps:'.
|
199
|
-
# @core = Appium::Core.for url: "http://127.0.0.1:8080/wd/hub",
|
200
|
+
# # format 2. 'capabilities:' or 'desired_capabilities:' is also available instead of 'caps:'.
|
201
|
+
# @core = Appium::Core.for url: "http://127.0.0.1:8080/wd/hub", capabilities: {...}, appium_lib: {...}
|
200
202
|
# # format 3. 'appium_lib: {...}' can be blank
|
201
203
|
# @core = Appium::Core.for url: "http://127.0.0.1:8080/wd/hub", desired_capabilities: {...}
|
202
204
|
#
|
@@ -226,9 +228,9 @@ module Appium
|
|
226
228
|
# @core.start_driver # Connect to 'http://127.0.0.1:8080/wd/hub' because of 'port: 8080'
|
227
229
|
#
|
228
230
|
# # Start iOS driver with .zip file over HTTP
|
229
|
-
# # 'desired_capabilities:' is also available instead of 'caps:'. Either is fine.
|
231
|
+
# # 'desired_capabilities:' or 'capabilities:' is also available instead of 'caps:'. Either is fine.
|
230
232
|
# opts = {
|
231
|
-
#
|
233
|
+
# capabilities: {
|
232
234
|
# platformName: :ios,
|
233
235
|
# platformVersion: '11.0',
|
234
236
|
# deviceName: 'iPhone Simulator',
|
@@ -541,7 +543,10 @@ module Appium
|
|
541
543
|
def validate_keys(opts)
|
542
544
|
flatten_ops = flatten_hash_keys(opts)
|
543
545
|
|
544
|
-
|
546
|
+
# FIXME: Remove 'desired_capabilities' in the next major Selenium update
|
547
|
+
unless opts.member?(:caps) || opts.member?(:capabilities) || opts.member?(:desired_capabilities)
|
548
|
+
raise Error::NoCapabilityError
|
549
|
+
end
|
545
550
|
|
546
551
|
if !opts.member?(:appium_lib) && flatten_ops.member?(:appium_lib)
|
547
552
|
raise Error::CapabilityStructureError, 'Please check the value of appium_lib in the capability'
|
@@ -562,7 +567,8 @@ module Appium
|
|
562
567
|
|
563
568
|
# @private
|
564
569
|
def get_caps(opts)
|
565
|
-
|
570
|
+
# FIXME: Remove 'desired_capabilities' in the next major Selenium update
|
571
|
+
Core::Base::Capabilities.create_capabilities(opts[:caps] || opts[:capabilities] || opts[:desired_capabilities] || {})
|
566
572
|
end
|
567
573
|
|
568
574
|
# @private
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '3.
|
18
|
-
DATE = '2020-05-
|
17
|
+
VERSION = '3.9.0' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2020-05-31' unless defined? ::Appium::Core::DATE
|
19
19
|
end
|
20
20
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v3.9.0 2020-05-31
|
2
|
+
|
3
|
+
- [f306188](https://github.com/appium/ruby_lib_core/commit/f306188102222088fbd31b0b9249c6a39ddd074f) Release 3.9.0
|
4
|
+
- [30c6529](https://github.com/appium/ruby_lib_core/commit/30c65299e4dffb9a2cea8b7a11b27cfcba294707) ci: run with Xcode 11.5 (#265)
|
5
|
+
- [a10f2d1](https://github.com/appium/ruby_lib_core/commit/a10f2d15ef83e9ce7003b88ec1c0923c922974ea) feat: allow :capabilities as argument (#266)
|
6
|
+
|
7
|
+
|
1
8
|
#### v3.8.0 2020-05-17
|
2
9
|
|
3
10
|
- [8986a54](https://github.com/appium/ruby_lib_core/commit/8986a5400d6a3575b7413f15bb61de09af2ec789) Release 3.8.0
|
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: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|