appium_lib 11.1.0 → 12.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/rubocop.yml +1 -1
- data/.rubocop.yml +89 -1
- data/CHANGELOG.md +19 -6
- data/appium_lib.gemspec +5 -5
- data/docs/android_docs.md +206 -206
- data/docs/ios_docs.md +244 -244
- data/lib/appium_lib/android/common/helper.rb +2 -2
- data/lib/appium_lib/android/element/button.rb +2 -2
- data/lib/appium_lib/android/element/generic.rb +8 -12
- data/lib/appium_lib/android/espresso/element/generic.rb +20 -24
- data/lib/appium_lib/android/uiautomator2/element/button.rb +2 -2
- data/lib/appium_lib/appium.rb +22 -26
- data/lib/appium_lib/common/wait.rb +2 -3
- data/lib/appium_lib/driver.rb +6 -37
- data/lib/appium_lib/ios/xcuitest/command/gestures.rb +9 -9
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +4 -9
- data/release_notes.md +7 -0
- metadata +23 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d381f320f3c082e0ef96fc0c514b2ef1fbab636ef61fcd124208456006ddda3
|
4
|
+
data.tar.gz: a3480ea80592392c11c39b1267fb2be0b56815e68b01e320dbe94df5e1ed9cce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fcb301702202ac27a9b4697de9efc085a60cdc7ad1cc1cd9762d77564aeed24bd85974e5cfda47c824bcb1c035188865a75f177af38a1fd1a01321b2e8bc9bd
|
7
|
+
data.tar.gz: 97003868baa5762a84c5ab9e4518ac22972b08d1c30b85d461657710e84695c30e116aa7094f6444c7c4390077211a67c0f826333215fca9a5009e741c585048
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.6
|
3
3
|
Metrics/LineLength:
|
4
4
|
Max: 128
|
5
5
|
Metrics/MethodLength:
|
@@ -51,3 +51,91 @@ Style/StringConcatenation:
|
|
51
51
|
Enabled: false
|
52
52
|
Lint/NonDeterministicRequireOrder:
|
53
53
|
Enabled: false
|
54
|
+
Gemspec/DateAssignment:
|
55
|
+
Enabled: true
|
56
|
+
Layout/LineEndStringConcatenationIndentation:
|
57
|
+
Enabled: true
|
58
|
+
Layout/SpaceBeforeBrackets:
|
59
|
+
Enabled: true
|
60
|
+
Lint/AmbiguousAssignment:
|
61
|
+
Enabled: true
|
62
|
+
Lint/AmbiguousOperatorPrecedence:
|
63
|
+
Enabled: false
|
64
|
+
Lint/AmbiguousRange:
|
65
|
+
Enabled: true
|
66
|
+
Lint/DeprecatedConstants:
|
67
|
+
Enabled: true
|
68
|
+
Lint/DuplicateBranch:
|
69
|
+
Enabled: true
|
70
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
71
|
+
Enabled: true
|
72
|
+
Lint/EmptyBlock:
|
73
|
+
Enabled: true
|
74
|
+
Lint/EmptyClass:
|
75
|
+
Enabled: false
|
76
|
+
Lint/EmptyInPattern:
|
77
|
+
Enabled: true
|
78
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
79
|
+
Enabled: true
|
80
|
+
Lint/LambdaWithoutLiteralBlock:
|
81
|
+
Enabled: true
|
82
|
+
Lint/NoReturnInBeginEndBlocks:
|
83
|
+
Enabled: true
|
84
|
+
Lint/NumberedParameterAssignment:
|
85
|
+
Enabled: true
|
86
|
+
Lint/OrAssignmentToConstant:
|
87
|
+
Enabled: true
|
88
|
+
Lint/RedundantDirGlobSort:
|
89
|
+
Enabled: true
|
90
|
+
Lint/RequireRelativeSelfPath:
|
91
|
+
Enabled: true
|
92
|
+
Lint/SymbolConversion:
|
93
|
+
Enabled: true
|
94
|
+
Lint/ToEnumArguments:
|
95
|
+
Enabled: true
|
96
|
+
Lint/TripleQuotes:
|
97
|
+
Enabled: true
|
98
|
+
Lint/UnexpectedBlockArity:
|
99
|
+
Enabled: true
|
100
|
+
Lint/UnmodifiedReduceAccumulator:
|
101
|
+
Enabled: true
|
102
|
+
Security/IoMethods:
|
103
|
+
Enabled: true
|
104
|
+
Style/ArgumentsForwarding:
|
105
|
+
Enabled: true
|
106
|
+
Style/CollectionCompact:
|
107
|
+
Enabled: true
|
108
|
+
Style/DocumentDynamicEvalDefinition:
|
109
|
+
Enabled: true
|
110
|
+
Style/EndlessMethod:
|
111
|
+
Enabled: true
|
112
|
+
Style/HashConversion:
|
113
|
+
Enabled: false
|
114
|
+
Style/HashExcept:
|
115
|
+
Enabled: true
|
116
|
+
Style/IfWithBooleanLiteralBranches:
|
117
|
+
Enabled: true
|
118
|
+
Style/InPatternThen:
|
119
|
+
Enabled: true
|
120
|
+
Style/MultilineInPatternThen:
|
121
|
+
Enabled: true
|
122
|
+
Style/NegatedIfElseCondition:
|
123
|
+
Enabled: true
|
124
|
+
Style/NilLambda:
|
125
|
+
Enabled: true
|
126
|
+
Style/NumberedParameters:
|
127
|
+
Enabled: true
|
128
|
+
Style/NumberedParametersLimit:
|
129
|
+
Enabled: true
|
130
|
+
Style/QuotedSymbols:
|
131
|
+
Enabled: true
|
132
|
+
Style/RedundantArgument:
|
133
|
+
Enabled: true
|
134
|
+
Style/RedundantSelfAssignmentBranch:
|
135
|
+
Enabled: true
|
136
|
+
Style/SelectByRegexp:
|
137
|
+
Enabled: true
|
138
|
+
Style/StringChars:
|
139
|
+
Enabled: true
|
140
|
+
Style/SwapValues:
|
141
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
@@ -7,9 +7,22 @@ Release tags are https://github.com/appium/ruby_lib/releases .
|
|
7
7
|
|
8
8
|
### 1. Enhancements
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
- Update base [ruby_lib_core client](https://github.com/appium/ruby_lib_core) to v5
|
11
|
+
- Update base selenium webdriver version to `4.0.0`
|
12
|
+
- Support only W3C spec as following Selenium v4 client
|
13
|
+
- Support Ruby 2.6+
|
14
|
+
- `element.id` returns the element id instead of `element.ref`. `element.ref` now returns an array.
|
15
|
+
- Removed `forceMjsonwp` to send only MJSONWP capabilities since Selenium cleint v4 no longer supports MJSONWP
|
16
|
+
- No longer set default `timeouts` as `0`. ruby_lib_core calls `/timeouts` endpoint only when `appium_lib: { wait: 5 }` is provided explicitly
|
17
|
+
- Raises `::Appium::Core::Error::ArgumentError` instead of `ArgumentError` for this library specific argument errors
|
18
|
+
|
19
|
+
### 2. Deprecations
|
20
|
+
- `TouchAction` and `MultiTouch` are deprecated
|
21
|
+
- Please use W3C actions instead https://github.com/appium/ruby_lib/blob/master/docs/w3c.md
|
22
|
+
- Other examples: https://github.com/appium/ruby_lib/pull/909
|
23
|
+
- Removed Selendroid related methods
|
24
|
+
|
25
|
+
## 11.1.0 - 2020-12-29 (11.2.0 is the same as this version)
|
13
26
|
|
14
27
|
Support Ruby 3
|
15
28
|
|
@@ -105,7 +118,7 @@ This change has a breaking change about implicit wait.
|
|
105
118
|
- **Breaking changes**
|
106
119
|
- Set implicit wait zero by default following [WebDriver spec in Selenium](https://www.seleniumhq.org/docs/04_webdriver_advanced.jsp)
|
107
120
|
- The change potentially break your `find_element/s`
|
108
|
-
- You can wrap it with `wait` method to avoid the error explicitly
|
121
|
+
- You can wrap it with `wait` method to avoid the error explicitly
|
109
122
|
- Or you also can configure `wait: 20` as `appium_lib` capability to keep the behaviour
|
110
123
|
- [Experimental]
|
111
124
|
- Add `direct_connect` capability
|
@@ -162,7 +175,7 @@ This change has a breaking change about implicit wait.
|
|
162
175
|
{ platformName: :windows,
|
163
176
|
app: 'relative/path/to/app'
|
164
177
|
}
|
165
|
-
} # `:app` will be alsolute path to the `:app` if the path exists
|
178
|
+
} # `:app` will be alsolute path to the `:app` if the path exists
|
166
179
|
```
|
167
180
|
|
168
181
|
### 3. Deprecations
|
@@ -312,7 +325,7 @@ This change has a breaking change about implicit wait.
|
|
312
325
|
## v9.9.0
|
313
326
|
### 1. Enhancements
|
314
327
|
- Bump the core library to 1.3.0
|
315
|
-
- The change have one breaking change for `start_recording_screen`(Android)
|
328
|
+
- The change have one breaking change for `start_recording_screen`(Android)
|
316
329
|
- Read `docs/migration.md`
|
317
330
|
|
318
331
|
### 2. Bug fixes
|
data/appium_lib.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'lib/appium_lib/version'
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.required_ruby_version = '>= 2.
|
4
|
+
s.required_ruby_version = '>= 2.6'
|
5
5
|
|
6
6
|
s.name = 'appium_lib'
|
7
7
|
s.version = Appium::VERSION
|
@@ -14,17 +14,17 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
|
15
15
|
s.require_paths = ['lib']
|
16
16
|
|
17
|
-
s.add_runtime_dependency 'appium_lib_core', '
|
17
|
+
s.add_runtime_dependency 'appium_lib_core', '5.0.0.rc7'
|
18
18
|
s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
|
19
|
-
s.add_runtime_dependency 'tomlrb', '
|
19
|
+
s.add_runtime_dependency 'tomlrb', '>= 1.1', '< 3.0'
|
20
20
|
|
21
21
|
s.add_development_dependency 'appium_thor', '~> 1.1', '>= 1.1.4'
|
22
|
-
s.add_development_dependency 'fakefs', '~> 1.
|
22
|
+
s.add_development_dependency 'fakefs', '~> 1.4.0'
|
23
23
|
s.add_development_dependency 'hashdiff', '~> 1.0.0'
|
24
24
|
s.add_development_dependency 'posix-spawn', '~> 0.3'
|
25
25
|
s.add_development_dependency 'pry'
|
26
26
|
s.add_development_dependency 'rake', '~> 13.0'
|
27
|
-
s.add_development_dependency 'rubocop', '1.
|
27
|
+
s.add_development_dependency 'rubocop', '1.22.2'
|
28
28
|
s.add_development_dependency 'spec', '~> 5.3', '>= 5.3.4'
|
29
29
|
s.add_development_dependency 'yard', '~> 0.9.11'
|
30
30
|
|