appium_lib_core 9.2.1 → 9.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 +10 -0
- data/appium_lib_core.gemspec +2 -2
- data/lib/appium_lib_core/common/base/driver.rb +0 -3
- data/lib/appium_lib_core/common/command.rb +3 -3
- data/lib/appium_lib_core/driver.rb +4 -34
- data/lib/appium_lib_core/version.rb +2 -2
- data/sig/lib/appium_lib_core/driver.rbs +0 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a96d88aa179653568fc018b371ec9ab0204d10fad6228d42dcfe5c47941fcdac
|
4
|
+
data.tar.gz: 4f9385c8c9ed097d678ec8b49cd2d0a0adb80fb82a64222f88ae0ba2519de0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2424c1b0bf51c61e1f80d858202f0dfc173d75f1c4f5e3e0b00fcfdccba776745134e184a75c652880e838c01e79eba96920bcb6b566dc993764e28f56551a2
|
7
|
+
data.tar.gz: 99c2de8b1c88b0f2779eb5dd96957bd0d101cec4af7f08a6ed22aa1e001eb0daf4edf3eaf1ab6fd40a05f070b580e0b256b5b33c2da1d35fd88304936a0b2ffc
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,16 @@ Read `release_notes.md` for commit level details.
|
|
10
10
|
|
11
11
|
### Deprecations
|
12
12
|
|
13
|
+
## [9.4.0] - 2025-01-08
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
- Update `/se/log/types` and `/se/log` endpoint call instead of `/log/types` and `/log` for W3C WebDrier era.
|
17
|
+
|
18
|
+
## [9.3.0] - 2024-12-08
|
19
|
+
|
20
|
+
### Deprecations
|
21
|
+
- Remove deprecated `Appium::Core#quit_driver`. Please use `Appium::Core::Driver.quit` instead.
|
22
|
+
|
13
23
|
# [9.2.1] - 2024-08-01
|
14
24
|
|
15
25
|
### Bug fixes
|
data/appium_lib_core.gemspec
CHANGED
@@ -29,10 +29,10 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
|
30
30
|
spec.add_development_dependency 'parallel_tests'
|
31
31
|
spec.add_development_dependency 'rake', '~> 13.0'
|
32
|
-
spec.add_development_dependency 'rubocop', '1.
|
32
|
+
spec.add_development_dependency 'rubocop', '1.69.2'
|
33
33
|
spec.add_development_dependency 'simplecov'
|
34
34
|
spec.add_development_dependency 'steep', '~> 1.7.0'
|
35
|
-
spec.add_development_dependency 'webmock', '~> 3.
|
35
|
+
spec.add_development_dependency 'webmock', '~> 3.24.0'
|
36
36
|
spec.add_development_dependency 'yard', '~> 0.9.11'
|
37
37
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
38
38
|
end
|
@@ -193,9 +193,6 @@ module Appium
|
|
193
193
|
raise ::Appium::Core::Error::ArgumentError, "Available method is either #{AVAILABLE_METHODS}"
|
194
194
|
end
|
195
195
|
|
196
|
-
# TODO: Remove this logger before Appium 2.0 release
|
197
|
-
::Appium::Logger.info '[Experimental] this method is experimental for Appium 2.0. This interface may change.'
|
198
|
-
|
199
196
|
@bridge.add_command method: method, url: url, name: name, &block
|
200
197
|
end
|
201
198
|
|
@@ -171,9 +171,9 @@ module Appium
|
|
171
171
|
ime_deactivate: [:post, 'session/:session_id/ime/deactivate'],
|
172
172
|
ime_activate_engine: [:post, 'session/:session_id/ime/activate'],
|
173
173
|
|
174
|
-
### Logs
|
175
|
-
get_available_log_types: [:get, 'session/:session_id/log/types'],
|
176
|
-
get_log: [:post, 'session/:session_id/log'],
|
174
|
+
### Logs based on w3c selenium clients
|
175
|
+
get_available_log_types: [:get, 'session/:session_id/se/log/types'],
|
176
|
+
get_log: [:post, 'session/:session_id/se/log'],
|
177
177
|
|
178
178
|
###
|
179
179
|
# Appium own
|
@@ -394,7 +394,6 @@ module Appium
|
|
394
394
|
|
395
395
|
def start_driver(server_url: nil,
|
396
396
|
http_client_ops: { http_client: nil, open_timeout: 999_999, read_timeout: 999_999 })
|
397
|
-
|
398
397
|
@custom_url ||= "http://127.0.0.1:#{@port}/wd/hub"
|
399
398
|
@custom_url = server_url unless server_url.nil?
|
400
399
|
|
@@ -431,12 +430,6 @@ module Appium
|
|
431
430
|
@http_client.delete_additional_header Appium::Core::Base::Http::RequestHeaders::KEYS[:idempotency]
|
432
431
|
end
|
433
432
|
|
434
|
-
# TODO: this method can be removed after releasing Appium 2.0, and after a while
|
435
|
-
# since Appium 2.0 reuqires 'automationName'. This method won't help anymore then.
|
436
|
-
# If "automationName" is set only server side, this method set "automationName" attribute into @automation_name.
|
437
|
-
# Since @automation_name is set only client side before start_driver is called.
|
438
|
-
set_automation_name_if_nil
|
439
|
-
|
440
433
|
set_implicit_wait_by_default(@default_wait)
|
441
434
|
|
442
435
|
@driver
|
@@ -446,7 +439,6 @@ module Appium
|
|
446
439
|
# Attach to an existing session
|
447
440
|
def attach_to(session_id, url: nil, automation_name: nil, platform_name: nil,
|
448
441
|
http_client_ops: { http_client: nil, open_timeout: 999_999, read_timeout: 999_999 })
|
449
|
-
|
450
442
|
raise ::Appium::Core::Error::ArgumentError, 'The :url must not be nil' if url.nil?
|
451
443
|
raise ::Appium::Core::Error::ArgumentError, 'The :automation_name must not be nil' if automation_name.nil?
|
452
444
|
raise ::Appium::Core::Error::ArgumentError, 'The :platform_name must not be nil' if platform_name.nil?
|
@@ -500,20 +492,6 @@ module Appium
|
|
500
492
|
{}
|
501
493
|
end
|
502
494
|
|
503
|
-
# [Deprecated] Quits the driver. This method is the same as @driver.quit
|
504
|
-
# @return [void]
|
505
|
-
#
|
506
|
-
# @example
|
507
|
-
#
|
508
|
-
# @core.quit_driver
|
509
|
-
#
|
510
|
-
def quit_driver
|
511
|
-
::Appium::Logger.warn('[DEPRECATION] quit_driver will be removed. Please use @driver.quit instead.')
|
512
|
-
@driver.quit
|
513
|
-
rescue # rubocop:disable Style/RescueStandardError
|
514
|
-
nil
|
515
|
-
end
|
516
|
-
|
517
495
|
# Returns the server's version info. This method calls +driver.remote_status+ internally
|
518
496
|
#
|
519
497
|
# @return [Hash]
|
@@ -644,7 +622,9 @@ module Appium
|
|
644
622
|
def set_app_path
|
645
623
|
# FIXME: maybe `:app` should check `app` as well.
|
646
624
|
return unless @caps && get_app && !get_app.empty?
|
647
|
-
|
625
|
+
|
626
|
+
uri_regex = defined?(URI::RFC2396_PARSER) ? URI::RFC2396_PARSER : URI::DEFAULT_PARSER
|
627
|
+
return if get_app =~ uri_regex.make_regexp
|
648
628
|
|
649
629
|
app_path = File.expand_path(get_app)
|
650
630
|
@caps['app'] = if File.exist? app_path
|
@@ -696,18 +676,8 @@ module Appium
|
|
696
676
|
value.is_a?(Symbol) ? value.downcase : value.downcase.strip.intern
|
697
677
|
end
|
698
678
|
|
699
|
-
# @private
|
700
|
-
def set_automation_name_if_nil
|
701
|
-
return unless @automation_name.nil?
|
702
|
-
|
703
|
-
automation_name = if @driver.capabilities['automationName']
|
704
|
-
@driver.capabilities['automationName'].downcase.strip.intern
|
705
|
-
end
|
706
|
-
@automation_name = convert_to_symbol automation_name
|
707
|
-
end
|
708
|
-
|
709
679
|
def get_cap(name)
|
710
|
-
name_with_prefix = "
|
680
|
+
name_with_prefix = "#{::Appium::Core::Base::Bridge::APPIUM_PREFIX}#{name}"
|
711
681
|
@caps[convert_to_symbol name] ||
|
712
682
|
@caps[name] ||
|
713
683
|
@caps[convert_to_symbol name_with_prefix] ||
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '9.
|
18
|
-
DATE = '
|
17
|
+
VERSION = '9.4.0' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2025-01-08' unless defined? ::Appium::Core::DATE
|
19
19
|
end
|
20
20
|
end
|
@@ -160,8 +160,6 @@ module Appium
|
|
160
160
|
|
161
161
|
def set_implicit_wait_by_default: (untyped wait) -> untyped
|
162
162
|
|
163
|
-
def quit_driver: () -> void
|
164
|
-
|
165
163
|
def appium_server_version: () -> Hash[String, String]
|
166
164
|
|
167
165
|
private
|
@@ -193,8 +191,6 @@ module Appium
|
|
193
191
|
def set_automation_name: () -> Symbol?
|
194
192
|
|
195
193
|
def convert_downcase: (Symbol value) -> Symbol
|
196
|
-
|
197
|
-
def set_automation_name_if_nil: () -> Symbol?
|
198
194
|
end
|
199
195
|
end
|
200
196
|
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: 9.
|
4
|
+
version: 9.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:
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faye-websocket
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.69.2
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.69.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: simplecov
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 3.
|
159
|
+
version: 3.24.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.
|
166
|
+
version: 3.24.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|