appium_lib_core 4.3.1 → 4.4.0
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 +6 -0
- data/lib/appium_lib_core/common/base/bridge/mjsonwp.rb +4 -0
- data/lib/appium_lib_core/common/base/bridge/w3c.rb +4 -0
- data/lib/appium_lib_core/common/base/driver.rb +2 -0
- data/lib/appium_lib_core/common/base/remote_status.rb +31 -0
- data/lib/appium_lib_core/driver.rb +8 -7
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +6 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36bc11abad71f0b61f3902570054786eb70d8d0135584828e84ddfa25dc81b4a
|
4
|
+
data.tar.gz: da818427f4f45e73f2ae90f2dacc2fc35379995dd39786756204f8c0cd5fedad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 560ff8bddf417b69da3640a1aa6a4c31e808bce4a7a3bf98f7e27f0095cab87281cc7749390a195af20d1567b09e158a3ccb8621bf7c957d04232223a8437f0d
|
7
|
+
data.tar.gz: e8320e4b60b28b997540f45702864a3637d5be30fdd414f3f19d4400ecc4e71d2169f70cfe5c06d0bf22f9817a5e43853d599522e42a09e9ffb96e9768f53e43
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,12 @@ Read `release_notes.md` for commit level details.
|
|
10
10
|
|
11
11
|
### Deprecations
|
12
12
|
|
13
|
+
|
14
|
+
## [4.4.0] - 2021-02-13
|
15
|
+
|
16
|
+
### Enhancements
|
17
|
+
- Returns `{}` any errors in `Core#appium_server_version` to prevent errors in some cases
|
18
|
+
|
13
19
|
## [4.3.1(4.3.0)] - 2021-02-07(2021-02-05)
|
14
20
|
|
15
21
|
### Enhancements
|
@@ -43,6 +43,10 @@ module Appium
|
|
43
43
|
execute :get_all_sessions
|
44
44
|
end
|
45
45
|
|
46
|
+
def status
|
47
|
+
execute :status
|
48
|
+
end
|
49
|
+
|
46
50
|
# Perform touch actions for W3C module.
|
47
51
|
# Generate +touch+ pointer action here and users can use this via +driver.action+
|
48
52
|
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/W3CActionBuilder.html
|
@@ -16,6 +16,7 @@ require 'base64'
|
|
16
16
|
require_relative 'search_context'
|
17
17
|
require_relative 'screenshot'
|
18
18
|
require_relative 'rotable'
|
19
|
+
require_relative 'remote_status'
|
19
20
|
|
20
21
|
module Appium
|
21
22
|
module Core
|
@@ -29,6 +30,7 @@ module Appium
|
|
29
30
|
include ::Appium::Core::Base::Rotatable
|
30
31
|
include ::Appium::Core::Base::SearchContext
|
31
32
|
include ::Appium::Core::Base::TakesScreenshot
|
33
|
+
include ::Appium::Core::Base::HasRemoteStatus
|
32
34
|
|
33
35
|
# Private API.
|
34
36
|
# Do not use this for general use. Used by flutter driver to get bridge for creating a new element
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Appium
|
16
|
+
module Core
|
17
|
+
class Base
|
18
|
+
#
|
19
|
+
# @api private
|
20
|
+
#
|
21
|
+
|
22
|
+
module HasRemoteStatus
|
23
|
+
# Selenium binding has this ability only in Remote Binding,
|
24
|
+
# so this library has this method by own for safe.
|
25
|
+
def remote_status
|
26
|
+
bridge.status
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -437,7 +437,8 @@ module Appium
|
|
437
437
|
nil
|
438
438
|
end
|
439
439
|
|
440
|
-
# Returns the server's version info
|
440
|
+
# Returns the server's version info. This method calls +driver.remote_status+ internally
|
441
|
+
#
|
441
442
|
# @return [Hash]
|
442
443
|
#
|
443
444
|
# @example
|
@@ -451,18 +452,18 @@ module Appium
|
|
451
452
|
# }
|
452
453
|
# }
|
453
454
|
#
|
454
|
-
# Returns blank hash
|
455
|
+
# Returns blank hash in a case +driver.remote_status+ got an error
|
456
|
+
# such as Selenium Grid. It returns 500 error against 'remote_status'.
|
455
457
|
#
|
456
458
|
# @example
|
457
459
|
#
|
458
460
|
# @core.appium_server_version #=> {}
|
459
461
|
#
|
460
462
|
def appium_server_version
|
461
|
-
@driver
|
462
|
-
rescue
|
463
|
-
|
464
|
-
|
465
|
-
# driver.remote_status returns 500 error for using selenium grid
|
463
|
+
@driver&.remote_status
|
464
|
+
rescue StandardError
|
465
|
+
# Ignore error case in a case the target appium server
|
466
|
+
# does not support `/status` API.
|
466
467
|
{}
|
467
468
|
end
|
468
469
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '4.
|
18
|
-
DATE = '2021-02-
|
17
|
+
VERSION = '4.4.0' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2021-02-13' unless defined? ::Appium::Core::DATE
|
19
19
|
end
|
20
20
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v4.4.0 2021-02-13
|
2
|
+
|
3
|
+
- [06c68fb](https://github.com/appium/ruby_lib_core/commit/06c68fbe3ffdbb7b068d2f71ad6841c66dbabf8f) Release 4.4.0
|
4
|
+
- [3c54ae2](https://github.com/appium/ruby_lib_core/commit/3c54ae25d9a334f3690c94ce8a59a5c6a4bacd20) feat: always return {} in appium_server_version for errors (#311)
|
5
|
+
|
6
|
+
|
1
7
|
#### v4.3.1 2021-02-07
|
2
8
|
|
3
9
|
- [1f4d52c](https://github.com/appium/ruby_lib_core/commit/1f4d52cc915783cf89cf4b8ca5a21bd1af5403e0) Release 4.3.1
|
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: 4.
|
4
|
+
version: 4.4.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: 2021-02-
|
11
|
+
date: 2021-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- lib/appium_lib_core/common/base/driver.rb
|
270
270
|
- lib/appium_lib_core/common/base/http_default.rb
|
271
271
|
- lib/appium_lib_core/common/base/platform.rb
|
272
|
+
- lib/appium_lib_core/common/base/remote_status.rb
|
272
273
|
- lib/appium_lib_core/common/base/rotable.rb
|
273
274
|
- lib/appium_lib_core/common/base/screenshot.rb
|
274
275
|
- lib/appium_lib_core/common/base/search_context.rb
|