appium_lib_core 4.1.0 → 5.0.1
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/codeql-analysis.yml +70 -0
- data/.github/workflows/unittest.yml +8 -9
- data/.rubocop.yml +89 -1
- data/CHANGELOG.md +89 -276
- data/README.md +11 -6
- data/Rakefile +4 -0
- data/appium_lib_core.gemspec +4 -7
- data/bin/console +0 -4
- data/ci-jobs/functional/run_appium.yml +3 -3
- data/ci-jobs/functional_test.yml +3 -3
- data/docs/mobile_command.md +2 -2
- data/lib/appium_lib_core/android/device/auth_finger_print.rb +2 -1
- data/lib/appium_lib_core/android/device.rb +4 -4
- data/lib/appium_lib_core/common/base/bridge.rb +297 -90
- data/lib/appium_lib_core/common/base/capabilities.rb +10 -3
- data/lib/appium_lib_core/common/base/device_ime.rb +49 -0
- data/lib/appium_lib_core/common/base/driver.rb +183 -171
- data/lib/appium_lib_core/common/base/driver_settings.rb +51 -0
- data/lib/appium_lib_core/common/base/has_location.rb +80 -0
- data/lib/appium_lib_core/common/base/has_network_connection.rb +56 -0
- data/lib/appium_lib_core/common/base/http_default.rb +1 -3
- data/lib/appium_lib_core/common/base/remote_status.rb +31 -0
- data/lib/appium_lib_core/common/base/rotable.rb +54 -0
- data/lib/appium_lib_core/common/base/screenshot.rb +6 -6
- data/lib/appium_lib_core/common/base/search_context.rb +19 -4
- data/lib/appium_lib_core/common/base.rb +1 -3
- data/lib/appium_lib_core/common/command.rb +257 -4
- data/lib/appium_lib_core/common/device/image_comparison.rb +12 -4
- data/lib/appium_lib_core/common/device/keyevent.rb +4 -4
- data/lib/appium_lib_core/common/{command/mjsonwp.rb → device/orientation.rb} +14 -11
- data/lib/appium_lib_core/common/device/touch_actions.rb +2 -0
- data/lib/appium_lib_core/common/device/value.rb +6 -6
- data/lib/appium_lib_core/common/error.rb +4 -1
- data/lib/appium_lib_core/common/log.rb +4 -1
- data/lib/appium_lib_core/common/touch_action/multi_touch.rb +19 -0
- data/lib/appium_lib_core/common/touch_action/touch_actions.rb +16 -2
- data/lib/appium_lib_core/common/wait.rb +38 -6
- data/lib/appium_lib_core/device.rb +1 -5
- data/lib/appium_lib_core/driver.rb +30 -46
- data/lib/appium_lib_core/{patch.rb → element.rb} +66 -9
- data/lib/appium_lib_core/ios/uiautomation/patch.rb +1 -1
- data/lib/appium_lib_core/{common/base/command.rb → mac2/bridge.rb} +9 -8
- data/lib/appium_lib_core/mac2/device/screen.rb +48 -0
- data/lib/appium_lib_core/mac2/device.rb +92 -0
- data/lib/appium_lib_core/mac2.rb +17 -0
- data/lib/appium_lib_core/version.rb +2 -2
- data/lib/appium_lib_core.rb +2 -5
- data/release_notes.md +125 -0
- data/script/commands.rb +3 -37
- metadata +27 -68
- data/lib/appium_lib_core/common/base/bridge/mjsonwp.rb +0 -81
- data/lib/appium_lib_core/common/base/bridge/w3c.rb +0 -252
- data/lib/appium_lib_core/common/command/common.rb +0 -110
- data/lib/appium_lib_core/common/command/w3c.rb +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d7090e2267f551b98bc21215bfc636753ebd0ab2fccc2e95bba5e2ea7781659
|
4
|
+
data.tar.gz: 719c1d37595a5501c2935de660971458c02314c1c5ca15f9b0b2615bae5f188f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be218fca9b0d444cabeb4577ddcec877ea180106b61704b10be452ca6ffbfd2bdf56e8ccdf3185a5a23d6aa5cc7a63d383cf4d48c86c446ec9ad72ef9d225526
|
7
|
+
data.tar.gz: fe8efa1222a796c36134231e9a04a94a8e3bf195c7dd42824d34f5aa94f3b2816ed8eafbd611e8b19c34df85193d5a98540714043aae946382ed985e2107ff73
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
2
|
+
# to commit it to your repository.
|
3
|
+
#
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
+
# or to provide custom queries or build logic.
|
6
|
+
#
|
7
|
+
# ******** NOTE ********
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
+
# supported CodeQL languages.
|
11
|
+
#
|
12
|
+
name: "CodeQL"
|
13
|
+
|
14
|
+
on:
|
15
|
+
push:
|
16
|
+
branches: [ master ]
|
17
|
+
pull_request:
|
18
|
+
# The branches below must be a subset of the branches above
|
19
|
+
branches: [ master ]
|
20
|
+
schedule:
|
21
|
+
- cron: '39 12 * * 0'
|
22
|
+
|
23
|
+
jobs:
|
24
|
+
analyze:
|
25
|
+
name: Analyze
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
permissions:
|
28
|
+
actions: read
|
29
|
+
contents: read
|
30
|
+
security-events: write
|
31
|
+
|
32
|
+
strategy:
|
33
|
+
fail-fast: false
|
34
|
+
matrix:
|
35
|
+
language: [ 'ruby' ]
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
37
|
+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
38
|
+
|
39
|
+
steps:
|
40
|
+
- name: Checkout repository
|
41
|
+
uses: actions/checkout@v2
|
42
|
+
|
43
|
+
# Initializes the CodeQL tools for scanning.
|
44
|
+
- name: Initialize CodeQL
|
45
|
+
uses: github/codeql-action/init@v1
|
46
|
+
with:
|
47
|
+
languages: ${{ matrix.language }}
|
48
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
49
|
+
# By default, queries listed here will override any specified in a config file.
|
50
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
51
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
52
|
+
|
53
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
55
|
+
- name: Autobuild
|
56
|
+
uses: github/codeql-action/autobuild@v1
|
57
|
+
|
58
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
59
|
+
# 📚 https://git.io/JvXDl
|
60
|
+
|
61
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
62
|
+
# and modify them (or add more) to build your code if your project
|
63
|
+
# uses a compiled language
|
64
|
+
|
65
|
+
#- run: |
|
66
|
+
# make bootstrap
|
67
|
+
# make release
|
68
|
+
|
69
|
+
- name: Perform CodeQL Analysis
|
70
|
+
uses: github/codeql-action/analyze@v1
|
@@ -11,7 +11,7 @@ jobs:
|
|
11
11
|
strategy:
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
|
-
ruby: [2.
|
14
|
+
ruby: [2.6, 2.7, 3.0]
|
15
15
|
|
16
16
|
runs-on: ubuntu-latest
|
17
17
|
|
@@ -29,16 +29,15 @@ jobs:
|
|
29
29
|
- name: Run tests
|
30
30
|
run: |
|
31
31
|
bundle exec rake rubocop
|
32
|
-
bundle exec
|
33
|
-
AUTOMATION_NAME_DROID=espresso bundle exec
|
34
|
-
AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec
|
32
|
+
bundle exec rake test:unit
|
33
|
+
AUTOMATION_NAME_DROID=espresso bundle exec rake test:unit:android
|
34
|
+
AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec rake test:unit
|
35
35
|
|
36
36
|
test-win:
|
37
37
|
strategy:
|
38
38
|
fail-fast: false
|
39
39
|
matrix:
|
40
|
-
|
41
|
-
ruby: [2.4, 2.5, 2.6]
|
40
|
+
ruby: [2.6, 2.7, 3.0]
|
42
41
|
|
43
42
|
runs-on: windows-latest
|
44
43
|
|
@@ -58,11 +57,11 @@ jobs:
|
|
58
57
|
gem uninstall --force eventmachine && gem install eventmachine --platform ruby
|
59
58
|
- name: Run tests
|
60
59
|
run: |
|
61
|
-
|
60
|
+
rake test:unit
|
62
61
|
|
63
62
|
setx AUTOMATION_NAME_DROID espresso
|
64
|
-
|
63
|
+
rake test:unit:android
|
65
64
|
|
66
65
|
setx AUTOMATION_NAME_DROID appium
|
67
66
|
setx AUTOMATION_NAME_IOS appium
|
68
|
-
|
67
|
+
rake test:unit
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.6
|
3
3
|
Layout/LineLength:
|
4
4
|
Max: 128
|
5
5
|
Layout/RescueEnsureAlignment:
|
@@ -56,3 +56,91 @@ Style/ExplicitBlockArgument:
|
|
56
56
|
Enabled: false
|
57
57
|
Style/KeywordParametersOrder:
|
58
58
|
Enabled: false
|
59
|
+
Gemspec/DateAssignment:
|
60
|
+
Enabled: true
|
61
|
+
Layout/LineEndStringConcatenationIndentation:
|
62
|
+
Enabled: true
|
63
|
+
Layout/SpaceBeforeBrackets:
|
64
|
+
Enabled: true
|
65
|
+
Lint/AmbiguousAssignment:
|
66
|
+
Enabled: true
|
67
|
+
Lint/AmbiguousOperatorPrecedence:
|
68
|
+
Enabled: false
|
69
|
+
Lint/AmbiguousRange:
|
70
|
+
Enabled: true
|
71
|
+
Lint/DeprecatedConstants:
|
72
|
+
Enabled: true
|
73
|
+
Lint/DuplicateBranch:
|
74
|
+
Enabled: true
|
75
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
76
|
+
Enabled: true
|
77
|
+
Lint/EmptyBlock:
|
78
|
+
Enabled: true
|
79
|
+
Lint/EmptyClass:
|
80
|
+
Enabled: true
|
81
|
+
Lint/EmptyInPattern:
|
82
|
+
Enabled: true
|
83
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
84
|
+
Enabled: true
|
85
|
+
Lint/LambdaWithoutLiteralBlock:
|
86
|
+
Enabled: true
|
87
|
+
Lint/NoReturnInBeginEndBlocks:
|
88
|
+
Enabled: true
|
89
|
+
Lint/NumberedParameterAssignment:
|
90
|
+
Enabled: true
|
91
|
+
Lint/OrAssignmentToConstant:
|
92
|
+
Enabled: true
|
93
|
+
Lint/RedundantDirGlobSort:
|
94
|
+
Enabled: true
|
95
|
+
Lint/RequireRelativeSelfPath:
|
96
|
+
Enabled: true
|
97
|
+
Lint/SymbolConversion:
|
98
|
+
Enabled: true
|
99
|
+
Lint/ToEnumArguments:
|
100
|
+
Enabled: true
|
101
|
+
Lint/TripleQuotes:
|
102
|
+
Enabled: true
|
103
|
+
Lint/UnexpectedBlockArity:
|
104
|
+
Enabled: true
|
105
|
+
Lint/UnmodifiedReduceAccumulator:
|
106
|
+
Enabled: true
|
107
|
+
Security/IoMethods:
|
108
|
+
Enabled: true
|
109
|
+
Style/ArgumentsForwarding:
|
110
|
+
Enabled: true
|
111
|
+
Style/CollectionCompact:
|
112
|
+
Enabled: true
|
113
|
+
Style/DocumentDynamicEvalDefinition:
|
114
|
+
Enabled: true
|
115
|
+
Style/EndlessMethod:
|
116
|
+
Enabled: true
|
117
|
+
Style/HashConversion:
|
118
|
+
Enabled: true
|
119
|
+
Style/HashExcept:
|
120
|
+
Enabled: true
|
121
|
+
Style/IfWithBooleanLiteralBranches:
|
122
|
+
Enabled: true
|
123
|
+
Style/InPatternThen:
|
124
|
+
Enabled: true
|
125
|
+
Style/MultilineInPatternThen:
|
126
|
+
Enabled: true
|
127
|
+
Style/NegatedIfElseCondition:
|
128
|
+
Enabled: true
|
129
|
+
Style/NilLambda:
|
130
|
+
Enabled: true
|
131
|
+
Style/NumberedParameters:
|
132
|
+
Enabled: true
|
133
|
+
Style/NumberedParametersLimit:
|
134
|
+
Enabled: true
|
135
|
+
Style/QuotedSymbols:
|
136
|
+
Enabled: true
|
137
|
+
Style/RedundantArgument:
|
138
|
+
Enabled: true
|
139
|
+
Style/RedundantSelfAssignmentBranch:
|
140
|
+
Enabled: true
|
141
|
+
Style/SelectByRegexp:
|
142
|
+
Enabled: true
|
143
|
+
Style/StringChars:
|
144
|
+
Enabled: true
|
145
|
+
Style/SwapValues:
|
146
|
+
Enabled: true
|