appium_lib_core 4.1.0 → 9.3.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 +357 -270
- data/README.md +68 -16
- data/Rakefile +8 -20
- data/Steepfile +11 -0
- data/appium_lib_core.gemspec +13 -15
- data/bin/console +0 -4
- data/lib/appium_lib_core/android/device/auth_finger_print.rb +4 -1
- data/lib/appium_lib_core/android/device/clipboard.rb +4 -2
- data/lib/appium_lib_core/android/device/emulator.rb +11 -5
- data/lib/appium_lib_core/android/device/network.rb +10 -0
- data/lib/appium_lib_core/android/device/performance.rb +3 -0
- data/lib/appium_lib_core/android/device/screen.rb +5 -1
- data/lib/appium_lib_core/android/device.rb +83 -20
- data/lib/appium_lib_core/common/base/bridge.rb +238 -95
- data/lib/appium_lib_core/common/base/capabilities.rb +21 -8
- data/lib/appium_lib_core/common/{command/mjsonwp.rb → base/device_ime.rb} +33 -12
- data/lib/appium_lib_core/common/base/driver.rb +260 -334
- 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 +22 -38
- data/lib/appium_lib_core/{ios/uiautomation/bridge.rb → common/base/remote_status.rb} +9 -8
- data/lib/appium_lib_core/common/base/rotable.rb +62 -0
- data/lib/appium_lib_core/common/base/screenshot.rb +10 -10
- data/lib/appium_lib_core/common/base/search_context.rb +98 -172
- data/lib/appium_lib_core/common/base.rb +1 -5
- data/lib/appium_lib_core/common/command.rb +244 -4
- data/lib/appium_lib_core/common/device/app_management.rb +2 -26
- data/lib/appium_lib_core/common/device/context.rb +1 -5
- data/lib/appium_lib_core/common/device/image_comparison.rb +27 -10
- data/lib/appium_lib_core/common/device/keyevent.rb +4 -4
- data/lib/appium_lib_core/common/device/{touch_actions.rb → orientation.rb} +6 -10
- data/lib/appium_lib_core/common/device/screen_record.rb +8 -2
- data/lib/appium_lib_core/common/error.rb +5 -5
- data/lib/appium_lib_core/common/log.rb +5 -4
- data/lib/appium_lib_core/common/wait.rb +38 -6
- data/lib/appium_lib_core/device.rb +3 -9
- data/lib/appium_lib_core/driver.rb +193 -182
- data/lib/appium_lib_core/{patch.rb → element.rb} +64 -26
- data/lib/appium_lib_core/ios/device/clipboard.rb +4 -2
- data/lib/appium_lib_core/ios/xcuitest/device.rb +2 -0
- 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/{ios.rb → mac2.rb} +2 -5
- data/lib/appium_lib_core/support/event_firing_bridge.rb +57 -0
- data/lib/appium_lib_core/version.rb +2 -2
- data/lib/appium_lib_core.rb +23 -10
- data/rbs_collection.lock.yaml +252 -0
- data/rbs_collection.yaml +15 -0
- data/sig/gems/selenium/abstract_event_listener.rbs +8 -0
- data/sig/gems/selenium/capabilities.rbs +8 -0
- data/sig/gems/selenium/common.rbs +10 -0
- data/sig/gems/selenium/default.rbs +10 -0
- data/sig/gems/selenium/driver.rbs +7 -0
- data/sig/gems/selenium/has_session_id.rbs +8 -0
- data/sig/gems/selenium/has_web_storage.rbs +8 -0
- data/sig/gems/selenium/uploads_files.rbs +8 -0
- data/sig/lib/appium_lib_core/common/base/capabilities.rbs +9 -0
- data/sig/lib/appium_lib_core/common/base/driver.rbs +167 -0
- data/sig/lib/appium_lib_core/common/base/driver_settings.rbs +15 -0
- data/sig/lib/appium_lib_core/common/base/has_location.rbs +13 -0
- data/sig/lib/appium_lib_core/common/base/has_network_connection.rbs +19 -0
- data/sig/lib/appium_lib_core/common/base/http_default.rbs +38 -0
- data/sig/lib/appium_lib_core/common/base/platform.rbs +7 -0
- data/sig/lib/appium_lib_core/common/base/remote_status.rbs +9 -0
- data/sig/lib/appium_lib_core/common/base/rotable.rbs +17 -0
- data/sig/lib/appium_lib_core/common/base/screenshot.rbs +19 -0
- data/sig/lib/appium_lib_core/common/device/battery_status.rbs +13 -0
- data/sig/lib/appium_lib_core/common/wait.rbs +31 -0
- data/sig/lib/appium_lib_core/device.rbs +21 -0
- data/sig/lib/appium_lib_core/driver.rbs +196 -0
- data/sig/lib/appium_lib_core/ios/xcuitest/device/battery.rbs +15 -0
- data/sig/lib/appium_lib_core/version.rbs +7 -0
- data/sig/lib/appium_lib_core.rbs +8 -0
- metadata +88 -111
- data/.github/ISSUE_TEMPLATE/issue-report.md +0 -29
- data/.github/contributing.md +0 -26
- data/.github/issue_template.md +0 -20
- data/.github/workflows/unittest.yml +0 -68
- data/.gitignore +0 -18
- data/.rubocop.yml +0 -58
- data/azure-pipelines.yml +0 -15
- data/ci-jobs/functional/android_setup.yml +0 -3
- data/ci-jobs/functional/ios_setup.yml +0 -7
- data/ci-jobs/functional/publish_test_result.yml +0 -18
- data/ci-jobs/functional/run_appium.yml +0 -25
- data/ci-jobs/functional/start-emulator.sh +0 -26
- data/ci-jobs/functional_test.yml +0 -298
- data/docs/mobile_command.md +0 -34
- 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
- data/lib/appium_lib_core/common/device/value.rb +0 -52
- data/lib/appium_lib_core/common/touch_action/multi_touch.rb +0 -56
- data/lib/appium_lib_core/common/touch_action/touch_actions.rb +0 -203
- data/lib/appium_lib_core/ios/uiautomation/device.rb +0 -44
- data/lib/appium_lib_core/ios/uiautomation/patch.rb +0 -34
- data/release_notes.md +0 -816
- data/script/commands.rb +0 -200
@@ -0,0 +1,252 @@
|
|
1
|
+
---
|
2
|
+
path: ".gem_rbs_collection"
|
3
|
+
gems:
|
4
|
+
- name: activesupport
|
5
|
+
version: '7.0'
|
6
|
+
source:
|
7
|
+
type: git
|
8
|
+
name: ruby/gem_rbs_collection
|
9
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
10
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
11
|
+
repo_dir: gems
|
12
|
+
- name: addressable
|
13
|
+
version: '2.8'
|
14
|
+
source:
|
15
|
+
type: git
|
16
|
+
name: ruby/gem_rbs_collection
|
17
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
18
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
19
|
+
repo_dir: gems
|
20
|
+
- name: ast
|
21
|
+
version: '2.4'
|
22
|
+
source:
|
23
|
+
type: git
|
24
|
+
name: ruby/gem_rbs_collection
|
25
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
26
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
27
|
+
repo_dir: gems
|
28
|
+
- name: base64
|
29
|
+
version: '0'
|
30
|
+
source:
|
31
|
+
type: stdlib
|
32
|
+
- name: bigdecimal
|
33
|
+
version: '0'
|
34
|
+
source:
|
35
|
+
type: stdlib
|
36
|
+
- name: concurrent-ruby
|
37
|
+
version: '1.1'
|
38
|
+
source:
|
39
|
+
type: git
|
40
|
+
name: ruby/gem_rbs_collection
|
41
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
42
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
43
|
+
repo_dir: gems
|
44
|
+
- name: connection_pool
|
45
|
+
version: '2.4'
|
46
|
+
source:
|
47
|
+
type: git
|
48
|
+
name: ruby/gem_rbs_collection
|
49
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
50
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
51
|
+
repo_dir: gems
|
52
|
+
- name: csv
|
53
|
+
version: '0'
|
54
|
+
source:
|
55
|
+
type: stdlib
|
56
|
+
- name: date
|
57
|
+
version: '0'
|
58
|
+
source:
|
59
|
+
type: stdlib
|
60
|
+
- name: erb
|
61
|
+
version: '0'
|
62
|
+
source:
|
63
|
+
type: stdlib
|
64
|
+
- name: ffi
|
65
|
+
version: 1.17.0
|
66
|
+
source:
|
67
|
+
type: rubygems
|
68
|
+
- name: fileutils
|
69
|
+
version: '0'
|
70
|
+
source:
|
71
|
+
type: stdlib
|
72
|
+
- name: forwardable
|
73
|
+
version: '0'
|
74
|
+
source:
|
75
|
+
type: stdlib
|
76
|
+
- name: hashdiff
|
77
|
+
version: '1.1'
|
78
|
+
source:
|
79
|
+
type: git
|
80
|
+
name: ruby/gem_rbs_collection
|
81
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
82
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
83
|
+
repo_dir: gems
|
84
|
+
- name: i18n
|
85
|
+
version: '1.10'
|
86
|
+
source:
|
87
|
+
type: git
|
88
|
+
name: ruby/gem_rbs_collection
|
89
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
90
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
91
|
+
repo_dir: gems
|
92
|
+
- name: json
|
93
|
+
version: '0'
|
94
|
+
source:
|
95
|
+
type: stdlib
|
96
|
+
- name: listen
|
97
|
+
version: '3.9'
|
98
|
+
source:
|
99
|
+
type: git
|
100
|
+
name: ruby/gem_rbs_collection
|
101
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
102
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
103
|
+
repo_dir: gems
|
104
|
+
- name: logger
|
105
|
+
version: '0'
|
106
|
+
source:
|
107
|
+
type: stdlib
|
108
|
+
- name: minitest
|
109
|
+
version: '0'
|
110
|
+
source:
|
111
|
+
type: stdlib
|
112
|
+
- name: monitor
|
113
|
+
version: '0'
|
114
|
+
source:
|
115
|
+
type: stdlib
|
116
|
+
- name: mutex_m
|
117
|
+
version: '0'
|
118
|
+
source:
|
119
|
+
type: stdlib
|
120
|
+
- name: optparse
|
121
|
+
version: '0'
|
122
|
+
source:
|
123
|
+
type: stdlib
|
124
|
+
- name: parallel
|
125
|
+
version: '1.20'
|
126
|
+
source:
|
127
|
+
type: git
|
128
|
+
name: ruby/gem_rbs_collection
|
129
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
130
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
131
|
+
repo_dir: gems
|
132
|
+
- name: parser
|
133
|
+
version: '3.2'
|
134
|
+
source:
|
135
|
+
type: git
|
136
|
+
name: ruby/gem_rbs_collection
|
137
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
138
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
139
|
+
repo_dir: gems
|
140
|
+
- name: rainbow
|
141
|
+
version: '3.0'
|
142
|
+
source:
|
143
|
+
type: git
|
144
|
+
name: ruby/gem_rbs_collection
|
145
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
146
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
147
|
+
repo_dir: gems
|
148
|
+
- name: rake
|
149
|
+
version: '13.0'
|
150
|
+
source:
|
151
|
+
type: git
|
152
|
+
name: ruby/gem_rbs_collection
|
153
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
154
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
155
|
+
repo_dir: gems
|
156
|
+
- name: regexp_parser
|
157
|
+
version: '2.8'
|
158
|
+
source:
|
159
|
+
type: git
|
160
|
+
name: ruby/gem_rbs_collection
|
161
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
162
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
163
|
+
repo_dir: gems
|
164
|
+
- name: ripper
|
165
|
+
version: '0'
|
166
|
+
source:
|
167
|
+
type: stdlib
|
168
|
+
- name: rubocop
|
169
|
+
version: '1.57'
|
170
|
+
source:
|
171
|
+
type: git
|
172
|
+
name: ruby/gem_rbs_collection
|
173
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
174
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
175
|
+
repo_dir: gems
|
176
|
+
- name: rubocop-ast
|
177
|
+
version: '1.30'
|
178
|
+
source:
|
179
|
+
type: git
|
180
|
+
name: ruby/gem_rbs_collection
|
181
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
182
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
183
|
+
repo_dir: gems
|
184
|
+
- name: rubyzip
|
185
|
+
version: '2.3'
|
186
|
+
source:
|
187
|
+
type: git
|
188
|
+
name: ruby/gem_rbs_collection
|
189
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
190
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
191
|
+
repo_dir: gems
|
192
|
+
- name: securerandom
|
193
|
+
version: '0'
|
194
|
+
source:
|
195
|
+
type: stdlib
|
196
|
+
- name: simplecov
|
197
|
+
version: '0.22'
|
198
|
+
source:
|
199
|
+
type: git
|
200
|
+
name: ruby/gem_rbs_collection
|
201
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
202
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
203
|
+
repo_dir: gems
|
204
|
+
- name: singleton
|
205
|
+
version: '0'
|
206
|
+
source:
|
207
|
+
type: stdlib
|
208
|
+
- name: strscan
|
209
|
+
version: '0'
|
210
|
+
source:
|
211
|
+
type: stdlib
|
212
|
+
- name: thor
|
213
|
+
version: '1.2'
|
214
|
+
source:
|
215
|
+
type: git
|
216
|
+
name: ruby/gem_rbs_collection
|
217
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
218
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
219
|
+
repo_dir: gems
|
220
|
+
- name: time
|
221
|
+
version: '0'
|
222
|
+
source:
|
223
|
+
type: stdlib
|
224
|
+
- name: timeout
|
225
|
+
version: '0'
|
226
|
+
source:
|
227
|
+
type: stdlib
|
228
|
+
- name: tzinfo
|
229
|
+
version: '2.0'
|
230
|
+
source:
|
231
|
+
type: git
|
232
|
+
name: ruby/gem_rbs_collection
|
233
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
234
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
235
|
+
repo_dir: gems
|
236
|
+
- name: webmock
|
237
|
+
version: '3.19'
|
238
|
+
source:
|
239
|
+
type: git
|
240
|
+
name: ruby/gem_rbs_collection
|
241
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
242
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
243
|
+
repo_dir: gems
|
244
|
+
- name: yard
|
245
|
+
version: '0.9'
|
246
|
+
source:
|
247
|
+
type: git
|
248
|
+
name: ruby/gem_rbs_collection
|
249
|
+
revision: 3670834268f4ea9c10aefeffae7e072b51256375
|
250
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
251
|
+
repo_dir: gems
|
252
|
+
gemfile_lock_path: Gemfile.lock
|
data/rbs_collection.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Download sources
|
2
|
+
sources:
|
3
|
+
- name: ruby/gem_rbs_collection
|
4
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
5
|
+
revision: main
|
6
|
+
repo_dir: gems
|
7
|
+
|
8
|
+
# A directory to install the downloaded RBSs
|
9
|
+
path: .gem_rbs_collection
|
10
|
+
|
11
|
+
gems:
|
12
|
+
# Skip loading rbs gem's RBS.
|
13
|
+
# It's unnecessary if you don't use rbs as a library.
|
14
|
+
- name: rbs
|
15
|
+
ignore: true
|
@@ -0,0 +1,167 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
class Driver < Selenium::WebDriver::Driver
|
5
|
+
@wait_timeout: untyped
|
6
|
+
|
7
|
+
@wait_interval: untyped
|
8
|
+
|
9
|
+
@devtools: untyped
|
10
|
+
|
11
|
+
@bidi: untyped
|
12
|
+
|
13
|
+
@bridge: untyped
|
14
|
+
|
15
|
+
@settings: untyped
|
16
|
+
|
17
|
+
@ime: untyped
|
18
|
+
|
19
|
+
@logs: untyped
|
20
|
+
|
21
|
+
include Selenium::WebDriver::DriverExtensions::UploadsFiles
|
22
|
+
|
23
|
+
include Selenium::WebDriver::DriverExtensions::HasSessionId
|
24
|
+
|
25
|
+
include Selenium::WebDriver::DriverExtensions::HasWebStorage
|
26
|
+
|
27
|
+
include Base::Rotatable
|
28
|
+
|
29
|
+
include Base::TakesScreenshot
|
30
|
+
|
31
|
+
include Base::HasRemoteStatus
|
32
|
+
|
33
|
+
include Base::HasLocation
|
34
|
+
|
35
|
+
include Base::HasNetworkConnection
|
36
|
+
|
37
|
+
include Core::Waitable
|
38
|
+
|
39
|
+
attr_reader bridge: untyped
|
40
|
+
|
41
|
+
def initialize: (?bridge: untyped?, ?listener: untyped?, **untyped opts) -> void
|
42
|
+
|
43
|
+
private
|
44
|
+
|
45
|
+
def create_bridge: (**untyped opts) -> untyped
|
46
|
+
|
47
|
+
public
|
48
|
+
|
49
|
+
def update_sending_request_to: (protocol: untyped, host: untyped, port: untyped, path: untyped) -> (nil | untyped)
|
50
|
+
|
51
|
+
AVAILABLE_METHODS: ::Array[:get | :head | :post | :put | :delete | :connect | :options | :trace | :patch]
|
52
|
+
|
53
|
+
def add_command: (method: untyped, url: untyped, name: untyped) { () -> untyped } -> untyped
|
54
|
+
|
55
|
+
def key_action: (?async: bool) -> untyped
|
56
|
+
|
57
|
+
def lock: (?untyped? duration) -> untyped
|
58
|
+
|
59
|
+
def locked?: () -> untyped
|
60
|
+
|
61
|
+
alias device_locked? locked?
|
62
|
+
|
63
|
+
def unlock: () -> untyped
|
64
|
+
|
65
|
+
def hide_keyboard: (?untyped? close_key, ?untyped? strategy) -> untyped
|
66
|
+
|
67
|
+
def keyboard_shown?: () -> untyped
|
68
|
+
|
69
|
+
alias is_keyboard_shown keyboard_shown?
|
70
|
+
|
71
|
+
def settings: () -> untyped
|
72
|
+
|
73
|
+
def get_settings: () -> untyped
|
74
|
+
|
75
|
+
def settings=: (untyped value) -> untyped
|
76
|
+
|
77
|
+
alias update_settings settings=
|
78
|
+
|
79
|
+
def ime: () -> untyped
|
80
|
+
|
81
|
+
def ime_activate: (untyped ime_name) -> untyped
|
82
|
+
|
83
|
+
def ime_available_engines: () -> untyped
|
84
|
+
|
85
|
+
def ime_active_engine: () -> untyped
|
86
|
+
|
87
|
+
def ime_activated: () -> untyped
|
88
|
+
|
89
|
+
def ime_deactivate: () -> untyped
|
90
|
+
|
91
|
+
def within_context: (untyped context) ?{ () -> untyped } -> untyped
|
92
|
+
|
93
|
+
def current_context: () -> untyped
|
94
|
+
|
95
|
+
def available_contexts: () -> untyped
|
96
|
+
|
97
|
+
def context=: (?untyped? context) -> untyped
|
98
|
+
|
99
|
+
alias set_context context=
|
100
|
+
|
101
|
+
def push_file: (untyped path, untyped filedata) -> untyped
|
102
|
+
|
103
|
+
def pull_file: (untyped path) -> untyped
|
104
|
+
|
105
|
+
def pull_folder: (untyped path) -> untyped
|
106
|
+
|
107
|
+
def press_keycode: (untyped key, ?metastate: untyped, ?flags: untyped) -> untyped
|
108
|
+
|
109
|
+
def long_press_keycode: (untyped key, ?metastate: untyped, ?flags: untyped) -> untyped
|
110
|
+
|
111
|
+
def app_strings: (?untyped? language) -> untyped
|
112
|
+
|
113
|
+
def background_app: (?::Integer duration) -> untyped
|
114
|
+
|
115
|
+
def install_app: (untyped path, **untyped options) -> untyped
|
116
|
+
|
117
|
+
def remove_app: (untyped app_id, ?keep_data: untyped?, ?timeout: untyped?) -> untyped
|
118
|
+
|
119
|
+
def app_installed?: (untyped app_id) -> untyped
|
120
|
+
|
121
|
+
def activate_app: (untyped app_id) -> untyped
|
122
|
+
|
123
|
+
def terminate_app: (untyped app_id, ?timeout: untyped?) -> untyped
|
124
|
+
|
125
|
+
def app_state: (untyped app_id) -> untyped
|
126
|
+
|
127
|
+
alias query_app_state app_state
|
128
|
+
|
129
|
+
def stop_recording_screen: (?remote_path: untyped?, ?user: untyped?, ?pass: untyped?, ?method: ::String) -> untyped
|
130
|
+
|
131
|
+
def stop_and_save_recording_screen: (untyped file_path) -> untyped
|
132
|
+
|
133
|
+
def shake: () -> untyped
|
134
|
+
|
135
|
+
def device_time: (?untyped? format) -> untyped
|
136
|
+
|
137
|
+
def perform_actions: (untyped data) -> nil
|
138
|
+
|
139
|
+
def window_size: () -> untyped
|
140
|
+
|
141
|
+
def window_rect: () -> untyped
|
142
|
+
|
143
|
+
def back: () -> untyped
|
144
|
+
|
145
|
+
def logs: () -> untyped
|
146
|
+
|
147
|
+
def get_timeouts: () -> untyped
|
148
|
+
|
149
|
+
def match_images_features: (first_image: untyped, second_image: untyped, ?detector_name: ::String, ?match_func: ::String, ?good_matches_factor: untyped?, ?visualize: bool) -> untyped
|
150
|
+
|
151
|
+
def find_image_occurrence: (full_image: untyped, partial_image: untyped, ?visualize: bool, ?threshold: untyped?, ?multiple: untyped?, ?match_neighbour_threshold: untyped?) -> untyped
|
152
|
+
|
153
|
+
def get_images_similarity: (first_image: untyped, second_image: untyped, ?visualize: bool) -> untyped
|
154
|
+
|
155
|
+
def compare_images: (first_image: untyped, second_image: untyped, ?mode: ::Symbol, ?options: untyped?) -> untyped
|
156
|
+
|
157
|
+
def find_element_by_image: (untyped img_path) -> untyped
|
158
|
+
|
159
|
+
def find_elements_by_image: (untyped img_path) -> untyped
|
160
|
+
|
161
|
+
def execute_driver: (?script: ::String, ?type: ::String, ?timeout_ms: untyped?) -> untyped
|
162
|
+
|
163
|
+
def convert_to_element: (untyped response_id) -> untyped
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module HasLocation
|
5
|
+
def location: () -> untyped
|
6
|
+
|
7
|
+
def location=: (untyped location) -> untyped
|
8
|
+
|
9
|
+
def set_location: (untyped latitude, untyped longitude, untyped altitude, ?speed: untyped?, ?satellites: untyped?) -> untyped
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module HasNetworkConnection
|
5
|
+
def network_connection_type: () -> untyped
|
6
|
+
|
7
|
+
def network_connection_type=: (untyped connection_type) -> untyped
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def type_to_values: () -> Hash[Symbol, Integer]
|
12
|
+
|
13
|
+
def values_to_type: () -> untyped
|
14
|
+
|
15
|
+
def valid_type?: (untyped type) -> untyped
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Http
|
5
|
+
module RequestHeaders
|
6
|
+
KEYS: Hash[Symbol, String]
|
7
|
+
end
|
8
|
+
|
9
|
+
class Default < Selenium::WebDriver::Remote::Http::Default
|
10
|
+
@open_timeout: untyped
|
11
|
+
|
12
|
+
@read_timeout: untyped
|
13
|
+
|
14
|
+
@additional_headers: untyped
|
15
|
+
|
16
|
+
@http: untyped
|
17
|
+
|
18
|
+
@server_url: untyped
|
19
|
+
|
20
|
+
attr_reader additional_headers: untyped
|
21
|
+
|
22
|
+
# override
|
23
|
+
def initialize: (?open_timeout: untyped?, ?read_timeout: untyped?) -> void
|
24
|
+
|
25
|
+
def set_additional_header: (untyped key, untyped value) -> untyped
|
26
|
+
|
27
|
+
def delete_additional_header: (untyped key) -> untyped
|
28
|
+
|
29
|
+
def update_sending_request_to: (scheme: untyped, host: untyped, port: untyped, path: untyped) -> untyped
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def validate_url_param: (untyped scheme, untyped host, untyped port, untyped path) -> bool
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Rotatable
|
5
|
+
ORIENTATIONS: Array[Symbol]
|
6
|
+
|
7
|
+
def rotation=: (untyped orientation) -> untyped
|
8
|
+
|
9
|
+
alias rotate rotation=
|
10
|
+
|
11
|
+
alias orientation= rotation=
|
12
|
+
|
13
|
+
def orientation: () -> untyped
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module TakesScreenshot
|
5
|
+
def save_screenshot: (untyped png_path) -> untyped
|
6
|
+
|
7
|
+
def screenshot_as: (untyped format) -> untyped
|
8
|
+
|
9
|
+
def save_element_screenshot: (untyped element, untyped png_path) -> untyped
|
10
|
+
|
11
|
+
alias take_element_screenshot save_element_screenshot
|
12
|
+
|
13
|
+
def element_screenshot_as: (untyped element, untyped format) -> untyped
|
14
|
+
|
15
|
+
def save_viewport_screenshot: (untyped png_path) -> untyped
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|