appium_lib_core 6.0.0 → 6.2.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 +18 -1
- 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/has_location.rb +10 -10
- data/lib/appium_lib_core/common/device/value.rb +1 -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: 2797136f9ad9290a9e38fe27dd02d99c99ae12656e378a049dd653190be569bc
|
4
|
+
data.tar.gz: 38c66b8f7fd0fdab194906cdf05640301431fab6a0b91492125a6c8f9f3d4993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6168e1739ede67cbdb0eae874498d6a156d93c8fce9684b37108b40d183395ce5089659f70af8724adae804caeaafd490a318a22d2527bae98b597a40befa1a
|
7
|
+
data.tar.gz: c7126ebb44078aaacae3c81ebf39853d1c9da0b6718ed74f28209ed13f8b639f85a6b36744e311105fca5a340b103da21bd1ca3b72d3545d818c3bb5891ac5d9
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,23 @@ Read `release_notes.md` for commit level details.
|
|
10
10
|
|
11
11
|
### Deprecations
|
12
12
|
|
13
|
+
## [6.2.0]
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
|
17
|
+
- Append `selenium-webdriver` `4.8` support
|
18
|
+
- Add `::Appium::Location` since `::Selenium::WebDriver::Location` no longer exists
|
19
|
+
|
20
|
+
### Deprecations
|
21
|
+
|
22
|
+
- `::Selenium::WebDriver::Location` is deprecated in favor of `::Appium::Location` in Appium Ruby binding
|
23
|
+
|
24
|
+
|
25
|
+
## [6.1.0] - 2023-01-18
|
26
|
+
|
27
|
+
### Bug fixes
|
28
|
+
- `Element#immediate_value` sends `text` as the request body
|
29
|
+
|
13
30
|
## [6.0.0] - 2022-12-25
|
14
31
|
- Remove iOS/UiAutomation classes
|
15
32
|
- The version may work for iOS 8. XCUITest driver will be the default behavior for iOS.
|
@@ -28,7 +45,7 @@ Read `release_notes.md` for commit level details.
|
|
28
45
|
## [5.6.0] - 2022-11-08
|
29
46
|
|
30
47
|
### Enhancements
|
31
|
-
- Append `
|
48
|
+
- Append `selenium-webdriver` `4.6` support
|
32
49
|
|
33
50
|
## [5.5.2] - 2022-10-11
|
34
51
|
|
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.44.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
|
@@ -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?
|
@@ -41,9 +41,7 @@ module Appium
|
|
41
41
|
# Keep .split(//) for backward compatibility for now
|
42
42
|
text = keys.join
|
43
43
|
|
44
|
-
|
45
|
-
# { value: text.split(//), text: text }
|
46
|
-
{ value: text.chars }
|
44
|
+
{ text: text }
|
47
45
|
end
|
48
46
|
end # module Value
|
49
47
|
end # module Device
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '6.
|
18
|
-
DATE = '
|
17
|
+
VERSION = '6.2.0' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2023-01-26' 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.2.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: 2023-01-26 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.44.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.44.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: appium_thor
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|