appium_lib_core 6.3.0 → 6.4.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 +5 -0
- data/appium_lib_core.gemspec +2 -2
- data/lib/appium_lib_core/common/base/driver.rb +2 -1
- data/lib/appium_lib_core/common/base/http_default.rb +1 -0
- data/lib/appium_lib_core/common/base/screenshot.rb +2 -2
- data/lib/appium_lib_core/driver.rb +1 -7
- data/lib/appium_lib_core/element.rb +1 -1
- data/lib/appium_lib_core/version.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3047299ce31d2eac69a3d62e52e2fa73ca02710e0f7c7d5d039e06e838822386
|
4
|
+
data.tar.gz: 2776a7ddebb3cc71a0334559c663b351c1f5f4dde223b313d3b581b91b83b402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfd4ad06897b4402556701ff40bb3722f4c5b8dd3b4704577ba7790c28f6e329d5aab83abbdea906c309897b9c95f87d61f6845e7eb8ef4f569105a82d816164
|
7
|
+
data.tar.gz: 6076c5d10ee6010eea91a78ff98aaa18187ef6c7c1519e024bba8b7207f4892311cea7ffcac0b081a5ebb39945d42eae46d1ca463fa581f6450d3e6b53f29731
|
data/CHANGELOG.md
CHANGED
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', '~> 4.2', '< 4.
|
25
|
+
spec.add_runtime_dependency 'selenium-webdriver', '~> 4.2', '< 4.10'
|
26
26
|
spec.add_runtime_dependency 'faye-websocket', '~> 0.11.0'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'rake', '~> 13.0'
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
31
31
|
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
|
32
32
|
spec.add_development_dependency 'webmock', '~> 3.18.1'
|
33
|
-
spec.add_development_dependency 'rubocop', '1.
|
33
|
+
spec.add_development_dependency 'rubocop', '1.50.2'
|
34
34
|
spec.add_development_dependency 'appium_thor', '~> 1.0'
|
35
35
|
spec.add_development_dependency 'parallel_tests'
|
36
36
|
spec.add_development_dependency 'simplecov'
|
@@ -44,7 +44,8 @@ module Appium
|
|
44
44
|
# Do not use this for general use. Used by flutter driver to get bridge for creating a new element
|
45
45
|
attr_reader :bridge
|
46
46
|
|
47
|
-
|
47
|
+
# override
|
48
|
+
def initialize(bridge: nil, listener: nil, **opts) # rubocop:disable Lint/MissingSuper
|
48
49
|
original_opts = opts.dup
|
49
50
|
|
50
51
|
# For ::Appium::Core::Waitable
|
@@ -24,7 +24,7 @@ module Appium
|
|
24
24
|
def save_screenshot(png_path)
|
25
25
|
extension = File.extname(png_path).downcase
|
26
26
|
if extension != '.png'
|
27
|
-
::Appium::Logger.warn 'name used for saved screenshot does not match file type. '\
|
27
|
+
::Appium::Logger.warn 'name used for saved screenshot does not match file type. ' \
|
28
28
|
'It should end with .png extension'
|
29
29
|
end
|
30
30
|
File.open(png_path, 'wb') { |f| f << screenshot_as(:png) }
|
@@ -103,7 +103,7 @@ module Appium
|
|
103
103
|
def save_viewport_screenshot(png_path)
|
104
104
|
extension = File.extname(png_path).downcase
|
105
105
|
if extension != '.png'
|
106
|
-
::Appium::Logger.warn 'name used for saved screenshot does not match file type. '\
|
106
|
+
::Appium::Logger.warn 'name used for saved screenshot does not match file type. ' \
|
107
107
|
'It should end with .png extension'
|
108
108
|
end
|
109
109
|
viewport_screenshot_encode64 = bridge.viewport_screenshot
|
@@ -505,13 +505,7 @@ module Appium
|
|
505
505
|
end
|
506
506
|
|
507
507
|
def get_http_client(http_client: nil, open_timeout: nil, read_timeout: nil)
|
508
|
-
|
509
|
-
|
510
|
-
# open_timeout and read_timeout are explicit wait.
|
511
|
-
client.open_timeout = open_timeout if open_timeout
|
512
|
-
client.read_timeout = read_timeout if read_timeout
|
513
|
-
|
514
|
-
client
|
508
|
+
http_client || Appium::Core::Base::Http::Default.new(open_timeout: open_timeout, read_timeout: read_timeout)
|
515
509
|
end
|
516
510
|
|
517
511
|
# Ignore setting default wait if the target driver has no implementation
|
@@ -152,7 +152,7 @@ module Appium
|
|
152
152
|
def save_screenshot(png_path)
|
153
153
|
extension = File.extname(png_path).downcase
|
154
154
|
if extension != '.png'
|
155
|
-
::Appium::Logger.warn 'name used for saved screenshot does not match file type. '\
|
155
|
+
::Appium::Logger.warn 'name used for saved screenshot does not match file type. ' \
|
156
156
|
'It should end with .png extension'
|
157
157
|
end
|
158
158
|
File.open(png_path, 'wb') { |f| f << screenshot_as(:png) }
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '6.
|
18
|
-
DATE = '2023-
|
17
|
+
VERSION = '6.4.0' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2023-04-30' unless defined? ::Appium::Core::DATE
|
19
19
|
end
|
20
20
|
end
|
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: 6.
|
4
|
+
version: 6.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '4.
|
22
|
+
version: '4.10'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '4.
|
32
|
+
version: '4.10'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: faye-websocket
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,14 +120,14 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - '='
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 1.
|
123
|
+
version: 1.50.2
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - '='
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 1.
|
130
|
+
version: 1.50.2
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: appium_thor
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,7 +270,7 @@ homepage: https://github.com/appium/ruby_lib_core/
|
|
270
270
|
licenses:
|
271
271
|
- Apache-2.0
|
272
272
|
metadata: {}
|
273
|
-
post_install_message:
|
273
|
+
post_install_message:
|
274
274
|
rdoc_options: []
|
275
275
|
require_paths:
|
276
276
|
- lib
|
@@ -285,8 +285,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
285
|
- !ruby/object:Gem::Version
|
286
286
|
version: '0'
|
287
287
|
requirements: []
|
288
|
-
rubygems_version: 3.
|
289
|
-
signing_key:
|
288
|
+
rubygems_version: 3.3.3
|
289
|
+
signing_key:
|
290
290
|
specification_version: 4
|
291
291
|
summary: Minimal Ruby library for Appium.
|
292
292
|
test_files: []
|