appium_lib_core 6.1.0 → 6.2.1
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 +19 -0
- data/appium_lib_core.gemspec +2 -2
- data/lib/appium_lib_core/common/base/bridge.rb +1 -1
- data/lib/appium_lib_core/common/base/driver.rb +0 -4
- data/lib/appium_lib_core/common/base/has_location.rb +10 -10
- data/lib/appium_lib_core/common/base/http_default.rb +1 -1
- data/lib/appium_lib_core/common/base/rotable.rb +11 -3
- data/lib/appium_lib_core/driver.rb +3 -0
- data/lib/appium_lib_core/version.rb +2 -2
- 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: d75095d146ec0e3786352920f8d1fe385cedab5c8faddc6292db1cd94cd5e111
|
4
|
+
data.tar.gz: be514be276344a3b488238716890d3bd99fbc1d9da3317ccb4ee943da8cf9ee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c066943b4d7c7f879a991b40b88d34da0317c0099c9fd14f011de8769d7d5cbc34665183b8f034ac532a7d5e5dd616aba4d433d4731fd37a9992ad82384108
|
7
|
+
data.tar.gz: a277b62b251f4557592bbccc79816fe75d833b324965d121225d39364bfa2d5f0b2e62eff41eafc7a11996564046775dd5da9c0c4e0b85ca0248b8e3ba9ae845
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,25 @@ Read `release_notes.md` for commit level details.
|
|
10
10
|
|
11
11
|
### Deprecations
|
12
12
|
|
13
|
+
## [6.2.1] - 2023-03-09
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
- Add `uia_device_orientation_landscaperight` and `uia_device_orientation_portrait_upsidedown` symbols in the `drivede.rotation=`
|
17
|
+
- Add `drivede.orientation=` as a syntax sugar of `drivede.rotation=`
|
18
|
+
|
19
|
+
|
20
|
+
## [6.2.0] - 2023-01-26
|
21
|
+
|
22
|
+
### Enhancements
|
23
|
+
|
24
|
+
- Append `selenium-webdriver` `4.8` support
|
25
|
+
- Add `::Appium::Location` since `::Selenium::WebDriver::Location` no longer exists
|
26
|
+
|
27
|
+
### Deprecations
|
28
|
+
|
29
|
+
- `::Selenium::WebDriver::Location` is deprecated in favor of `::Appium::Location` in Appium Ruby binding
|
30
|
+
|
31
|
+
|
13
32
|
## [6.1.0] - 2023-01-18
|
14
33
|
|
15
34
|
### Bug fixes
|
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.9'
|
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.47.0'
|
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'
|
@@ -302,7 +302,7 @@ module Appium
|
|
302
302
|
# called in 'extend DriverExtensions::HasLocation'
|
303
303
|
def location
|
304
304
|
obj = execute(:get_location) || {}
|
305
|
-
::
|
305
|
+
::Appium::Location.new obj['latitude'], obj['longitude'], obj['altitude']
|
306
306
|
end
|
307
307
|
|
308
308
|
# For Appium
|
@@ -947,8 +947,6 @@ module Appium
|
|
947
947
|
# # "appPackage"=>"io.appium.android.apis",
|
948
948
|
# # "appActivity"=>"io.appium.android.apis.ApiDemos",
|
949
949
|
# # "someCapability"=>"some_capability",
|
950
|
-
# # "unicodeKeyboard"=>true,
|
951
|
-
# # "resetKeyboard"=>true},
|
952
950
|
# # "automationName"=>"uiautomator2",
|
953
951
|
# # "app"=>"/path/to/app/api.apk.zip",
|
954
952
|
# # "platformVersion"=>"8.1.0",
|
@@ -956,8 +954,6 @@ module Appium
|
|
956
954
|
# # "appPackage"=>"io.appium.android.apis",
|
957
955
|
# # "appActivity"=>"io.appium.android.apis.ApiDemos",
|
958
956
|
# # "someCapability"=>"some_capability",
|
959
|
-
# # "unicodeKeyboard"=>true,
|
960
|
-
# # "resetKeyboard"=>true,
|
961
957
|
# # "deviceUDID"=>"emulator-5554",
|
962
958
|
# # "deviceScreenSize"=>"1080x1920",
|
963
959
|
# # "deviceScreenDensity"=>420,
|
@@ -21,11 +21,11 @@ module Appium
|
|
21
21
|
module HasLocation
|
22
22
|
# Get the location of the device.
|
23
23
|
#
|
24
|
-
# @return [::
|
24
|
+
# @return [::Appium::Location]
|
25
25
|
#
|
26
26
|
# @example
|
27
27
|
#
|
28
|
-
# driver.location #=> ::
|
28
|
+
# driver.location #=> ::Appium::Location.new(10, 10, 10)
|
29
29
|
#
|
30
30
|
def location
|
31
31
|
@bridge.location
|
@@ -33,15 +33,15 @@ module Appium
|
|
33
33
|
|
34
34
|
# Set the location of the device.
|
35
35
|
#
|
36
|
-
# @param [::
|
36
|
+
# @param [::Appium::Location] location Set the location.
|
37
37
|
#
|
38
38
|
# @example
|
39
39
|
#
|
40
|
-
# driver.location = ::
|
40
|
+
# driver.location = ::Appium::Location.new(10, 10, 10)
|
41
41
|
#
|
42
42
|
def location=(location)
|
43
|
-
unless location.is_a?(::
|
44
|
-
raise TypeError, "expected #{::
|
43
|
+
unless location.is_a?(::Appium::Location)
|
44
|
+
raise TypeError, "expected #{::Appium::Location}, got #{location.inspect}:#{location.class}"
|
45
45
|
end
|
46
46
|
|
47
47
|
@bridge.set_location location.latitude, location.longitude, location.altitude
|
@@ -56,17 +56,17 @@ module Appium
|
|
56
56
|
# in meters/second @since Appium 1.21.0 and in knots for emulators @since Appium 1.22.0.
|
57
57
|
# @param [String, Number] satellites Sets the count of geo satellites being tracked in range 1..12 @since Appium 1.22.0.
|
58
58
|
# This number is respected on Emulators.
|
59
|
-
# @param [::
|
59
|
+
# @param [::Appium::Location]
|
60
60
|
#
|
61
61
|
# @example
|
62
62
|
#
|
63
|
-
# driver.location = ::
|
63
|
+
# driver.location = ::Appium::Location.new(10, 10, 10)
|
64
64
|
#
|
65
65
|
def set_location(latitude, longitude, altitude, speed: nil, satellites: nil)
|
66
66
|
if speed.nil? && satellites.nil?
|
67
|
-
self.location = ::
|
67
|
+
self.location = ::Appium::Location.new(Float(latitude), Float(longitude), Float(altitude))
|
68
68
|
else
|
69
|
-
loc = ::
|
69
|
+
loc = ::Appium::Location.new(Float(latitude), Float(longitude), Float(altitude))
|
70
70
|
|
71
71
|
speed = Float(speed) unless speed.nil?
|
72
72
|
satellites = Integer(satellites) unless satellites.nil?
|
@@ -37,7 +37,7 @@ module Appium
|
|
37
37
|
attr_reader :additional_headers
|
38
38
|
|
39
39
|
# override
|
40
|
-
def initialize(open_timeout: nil, read_timeout: nil)
|
40
|
+
def initialize(open_timeout: nil, read_timeout: nil)
|
41
41
|
@open_timeout = open_timeout
|
42
42
|
@read_timeout = read_timeout
|
43
43
|
@additional_headers = {}
|
@@ -20,12 +20,18 @@ module Appium
|
|
20
20
|
#
|
21
21
|
|
22
22
|
module Rotatable
|
23
|
-
ORIENTATIONS = %i[
|
23
|
+
ORIENTATIONS = %i[
|
24
|
+
landscape
|
25
|
+
portrait
|
26
|
+
uia_device_orientation_landscaperight
|
27
|
+
uia_device_orientation_portrait_upsidedown
|
28
|
+
].freeze
|
24
29
|
|
25
30
|
#
|
26
31
|
# Change the screen orientation
|
27
32
|
#
|
28
|
-
# @param [:landscape, :portrait
|
33
|
+
# @param [:landscape, :portrait,
|
34
|
+
# :uia_device_orientation_landscaperight, :uia_device_orientation_portrait_upsidedown] orientation
|
29
35
|
#
|
30
36
|
#
|
31
37
|
def rotation=(orientation)
|
@@ -36,11 +42,13 @@ module Appium
|
|
36
42
|
bridge.screen_orientation = orientation.to_s.upcase
|
37
43
|
end
|
38
44
|
alias rotate rotation=
|
45
|
+
alias orientation= rotation=
|
39
46
|
|
40
47
|
#
|
41
48
|
# Get the current screen orientation
|
42
49
|
#
|
43
|
-
# @return [:landscape, :portrait
|
50
|
+
# @return [:landscape, :portrait,
|
51
|
+
# :uia_device_orientation_landscaperight, :uia_device_orientation_portrait_upsidedown] orientation
|
44
52
|
#
|
45
53
|
# @api public
|
46
54
|
#
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '6.1
|
18
|
-
DATE = '2023-
|
17
|
+
VERSION = '6.2.1' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2023-03-09' 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.1
|
4
|
+
version: 6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-09 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.9'
|
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.9'
|
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.47.0
|
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.47.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: appium_thor
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|