appium_lib_core 11.1.1 → 11.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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/Gemfile +3 -3
  4. data/README.md +4 -4
  5. data/Rakefile +1 -5
  6. data/appium_lib_core.gemspec +0 -1
  7. data/lib/appium_lib_core/android/device/emulator.rb +4 -12
  8. data/lib/appium_lib_core/android/device/screen.rb +1 -3
  9. data/lib/appium_lib_core/android/device.rb +0 -4
  10. data/lib/appium_lib_core/common/base/bidi_bridge.rb +4 -0
  11. data/lib/appium_lib_core/common/base/bridge.rb +8 -2
  12. data/lib/appium_lib_core/common/base/driver.rb +10 -4
  13. data/lib/appium_lib_core/common/base/has_location.rb +1 -3
  14. data/lib/appium_lib_core/common/base/rotable.rb +1 -3
  15. data/lib/appium_lib_core/common/base/search_context.rb +0 -2
  16. data/lib/appium_lib_core/common/device/image_comparison.rb +3 -12
  17. data/lib/appium_lib_core/common/wait.rb +4 -0
  18. data/lib/appium_lib_core/common.rb +0 -1
  19. data/lib/appium_lib_core/driver.rb +21 -12
  20. data/lib/appium_lib_core/element.rb +8 -3
  21. data/lib/appium_lib_core/ios/xcuitest/device.rb +0 -5
  22. data/lib/appium_lib_core/mac2/device.rb +0 -5
  23. data/lib/appium_lib_core/version.rb +2 -2
  24. data/lib/appium_lib_core/windows/device.rb +0 -5
  25. data/lib/appium_lib_core.rb +2 -2
  26. data/rbs_collection.lock.yaml +63 -31
  27. data/sig/gems/forwardable.rbs +17 -0
  28. data/sig/gems/selenium/atoms.rbs +0 -1
  29. data/sig/gems/selenium/bidi/browsing_context.rbs +1 -1
  30. data/sig/gems/selenium/bridge.rbs +3 -0
  31. data/sig/gems/selenium/chromium/features.rbs +1 -1
  32. data/sig/gems/selenium/common/element.rbs +2 -0
  33. data/sig/gems/selenium/driver.rbs +10 -0
  34. data/sig/gems/selenium/fedcm.rbs +12 -0
  35. data/sig/gems/selenium/firefox/profile.rbs +0 -2
  36. data/sig/gems/selenium/log_entry.rbs +12 -0
  37. data/sig/gems/selenium/remote/capabilities.rbs +6 -0
  38. data/sig/interfaces/bridge.rbs +4 -0
  39. data/sig/lib/appium_lib_core/android/device/auth_finger_print.rbs +1 -1
  40. data/sig/lib/appium_lib_core/android/device/clipboard.rbs +1 -1
  41. data/sig/lib/appium_lib_core/android/device/emulator.rbs +2 -2
  42. data/sig/lib/appium_lib_core/android/device/performance.rbs +1 -1
  43. data/sig/lib/appium_lib_core/android/device/screen.rbs +2 -0
  44. data/sig/lib/appium_lib_core/android/device.rbs +20 -2
  45. data/sig/lib/appium_lib_core/android/uiautomator2/device/battery.rbs +2 -0
  46. data/sig/lib/appium_lib_core/android/uiautomator2/device.rbs +15 -0
  47. data/sig/lib/appium_lib_core/android.rbs +4 -0
  48. data/sig/lib/appium_lib_core/android_espresso.rbs +4 -0
  49. data/sig/lib/appium_lib_core/android_uiautomator2.rbs +4 -0
  50. data/sig/lib/appium_lib_core/common/base/bidi_bridge.rbs +4 -0
  51. data/sig/lib/appium_lib_core/common/base/bridge.rbs +3 -1
  52. data/sig/lib/appium_lib_core/common/base/capabilities.rbs +3 -0
  53. data/sig/lib/appium_lib_core/common/base/rotable.rbs +3 -0
  54. data/sig/lib/appium_lib_core/common/base/search_context.rbs +1 -1
  55. data/sig/lib/appium_lib_core/common/base.rbs +4 -0
  56. data/sig/lib/appium_lib_core/common/device/app_state.rbs +2 -2
  57. data/sig/lib/appium_lib_core/common/device/device.rbs +1 -1
  58. data/sig/lib/appium_lib_core/common/device/device_lock.rbs +2 -2
  59. data/sig/lib/appium_lib_core/common/device/keyboard.rbs +2 -2
  60. data/sig/lib/appium_lib_core/common/device/keyevent.rbs +1 -1
  61. data/sig/lib/appium_lib_core/common/device/screen_record.rbs +7 -3
  62. data/sig/lib/appium_lib_core/common.rbs +4 -0
  63. data/sig/lib/appium_lib_core/driver.rbs +19 -10
  64. data/sig/lib/appium_lib_core/element.rbs +5 -2
  65. data/sig/lib/appium_lib_core/ios/{clipboard.rbs → device/clipboard.rbs} +0 -4
  66. data/sig/lib/appium_lib_core/ios/xcuitest/device/battery.rbs +3 -1
  67. data/sig/lib/appium_lib_core/ios/xcuitest/device/performance.rbs +2 -0
  68. data/sig/lib/appium_lib_core/ios_xcuitest.rbs +4 -0
  69. data/sig/lib/appium_lib_core/mac2.rbs +4 -0
  70. data/sig/lib/appium_lib_core/windows.rbs +4 -0
  71. data/sig/lib/appium_lib_core.rbs +1 -1
  72. metadata +16 -31
  73. data/lib/appium_lib_core/common/ws/websocket.rb +0 -165
  74. data/sig/gems/faye.rbs +0 -10
  75. data/sig/lib/appium_lib_core/android/device/network.rbs +0 -13
  76. data/sig/lib/appium_lib_core/common/ws/websocket.rbs +0 -103
@@ -6,7 +6,7 @@ gems:
6
6
  source:
7
7
  type: git
8
8
  name: ruby/gem_rbs_collection
9
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
9
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
10
10
  remote: https://github.com/ruby/gem_rbs_collection.git
11
11
  repo_dir: gems
12
12
  - name: addressable
@@ -14,7 +14,7 @@ gems:
14
14
  source:
15
15
  type: git
16
16
  name: ruby/gem_rbs_collection
17
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
17
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
18
18
  remote: https://github.com/ruby/gem_rbs_collection.git
19
19
  repo_dir: gems
20
20
  - name: ast
@@ -22,23 +22,27 @@ gems:
22
22
  source:
23
23
  type: git
24
24
  name: ruby/gem_rbs_collection
25
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
25
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
26
26
  remote: https://github.com/ruby/gem_rbs_collection.git
27
27
  repo_dir: gems
28
28
  - name: base64
29
- version: '0'
29
+ version: 0.3.0
30
30
  source:
31
- type: stdlib
31
+ type: rubygems
32
32
  - name: bigdecimal
33
- version: '0'
33
+ version: '3.1'
34
34
  source:
35
- type: stdlib
35
+ type: git
36
+ name: ruby/gem_rbs_collection
37
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
38
+ remote: https://github.com/ruby/gem_rbs_collection.git
39
+ repo_dir: gems
36
40
  - name: concurrent-ruby
37
41
  version: '1.1'
38
42
  source:
39
43
  type: git
40
44
  name: ruby/gem_rbs_collection
41
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
45
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
42
46
  remote: https://github.com/ruby/gem_rbs_collection.git
43
47
  repo_dir: gems
44
48
  - name: connection_pool
@@ -46,14 +50,22 @@ gems:
46
50
  source:
47
51
  type: git
48
52
  name: ruby/gem_rbs_collection
49
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
53
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
50
54
  remote: https://github.com/ruby/gem_rbs_collection.git
51
55
  repo_dir: gems
52
56
  - name: csv
57
+ version: '3.3'
58
+ source:
59
+ type: git
60
+ name: ruby/gem_rbs_collection
61
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
62
+ remote: https://github.com/ruby/gem_rbs_collection.git
63
+ repo_dir: gems
64
+ - name: date
53
65
  version: '0'
54
66
  source:
55
67
  type: stdlib
56
- - name: date
68
+ - name: digest
57
69
  version: '0'
58
70
  source:
59
71
  type: stdlib
@@ -62,7 +74,7 @@ gems:
62
74
  source:
63
75
  type: stdlib
64
76
  - name: ffi
65
- version: 1.17.0
77
+ version: 1.17.2
66
78
  source:
67
79
  type: rubygems
68
80
  - name: fileutils
@@ -78,7 +90,7 @@ gems:
78
90
  source:
79
91
  type: git
80
92
  name: ruby/gem_rbs_collection
81
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
93
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
82
94
  remote: https://github.com/ruby/gem_rbs_collection.git
83
95
  repo_dir: gems
84
96
  - name: i18n
@@ -86,7 +98,7 @@ gems:
86
98
  source:
87
99
  type: git
88
100
  name: ruby/gem_rbs_collection
89
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
101
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
90
102
  remote: https://github.com/ruby/gem_rbs_collection.git
91
103
  repo_dir: gems
92
104
  - name: json
@@ -98,7 +110,7 @@ gems:
98
110
  source:
99
111
  type: git
100
112
  name: ruby/gem_rbs_collection
101
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
113
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
102
114
  remote: https://github.com/ruby/gem_rbs_collection.git
103
115
  repo_dir: gems
104
116
  - name: logger
@@ -106,14 +118,18 @@ gems:
106
118
  source:
107
119
  type: stdlib
108
120
  - name: minitest
109
- version: '0'
121
+ version: '5.25'
110
122
  source:
111
- type: stdlib
123
+ type: git
124
+ name: ruby/gem_rbs_collection
125
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
126
+ remote: https://github.com/ruby/gem_rbs_collection.git
127
+ repo_dir: gems
112
128
  - name: monitor
113
129
  version: '0'
114
130
  source:
115
131
  type: stdlib
116
- - name: mutex_m
132
+ - name: openssl
117
133
  version: '0'
118
134
  source:
119
135
  type: stdlib
@@ -126,7 +142,7 @@ gems:
126
142
  source:
127
143
  type: git
128
144
  name: ruby/gem_rbs_collection
129
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
145
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
130
146
  remote: https://github.com/ruby/gem_rbs_collection.git
131
147
  repo_dir: gems
132
148
  - name: parser
@@ -134,15 +150,19 @@ gems:
134
150
  source:
135
151
  type: git
136
152
  name: ruby/gem_rbs_collection
137
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
153
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
138
154
  remote: https://github.com/ruby/gem_rbs_collection.git
139
155
  repo_dir: gems
156
+ - name: prism
157
+ version: 1.6.0
158
+ source:
159
+ type: rubygems
140
160
  - name: rainbow
141
161
  version: '3.0'
142
162
  source:
143
163
  type: git
144
164
  name: ruby/gem_rbs_collection
145
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
165
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
146
166
  remote: https://github.com/ruby/gem_rbs_collection.git
147
167
  repo_dir: gems
148
168
  - name: rake
@@ -150,7 +170,7 @@ gems:
150
170
  source:
151
171
  type: git
152
172
  name: ruby/gem_rbs_collection
153
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
173
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
154
174
  remote: https://github.com/ruby/gem_rbs_collection.git
155
175
  repo_dir: gems
156
176
  - name: regexp_parser
@@ -158,7 +178,7 @@ gems:
158
178
  source:
159
179
  type: git
160
180
  name: ruby/gem_rbs_collection
161
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
181
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
162
182
  remote: https://github.com/ruby/gem_rbs_collection.git
163
183
  repo_dir: gems
164
184
  - name: ripper
@@ -170,15 +190,15 @@ gems:
170
190
  source:
171
191
  type: git
172
192
  name: ruby/gem_rbs_collection
173
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
193
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
174
194
  remote: https://github.com/ruby/gem_rbs_collection.git
175
195
  repo_dir: gems
176
196
  - name: rubocop-ast
177
- version: '1.30'
197
+ version: '1.46'
178
198
  source:
179
199
  type: git
180
200
  name: ruby/gem_rbs_collection
181
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
201
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
182
202
  remote: https://github.com/ruby/gem_rbs_collection.git
183
203
  repo_dir: gems
184
204
  - name: rubyzip
@@ -186,7 +206,7 @@ gems:
186
206
  source:
187
207
  type: git
188
208
  name: ruby/gem_rbs_collection
189
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
209
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
190
210
  remote: https://github.com/ruby/gem_rbs_collection.git
191
211
  repo_dir: gems
192
212
  - name: securerandom
@@ -198,13 +218,21 @@ gems:
198
218
  source:
199
219
  type: git
200
220
  name: ruby/gem_rbs_collection
201
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
221
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
202
222
  remote: https://github.com/ruby/gem_rbs_collection.git
203
223
  repo_dir: gems
204
224
  - name: singleton
205
225
  version: '0'
206
226
  source:
207
227
  type: stdlib
228
+ - name: socket
229
+ version: '0'
230
+ source:
231
+ type: stdlib
232
+ - name: stringio
233
+ version: '0'
234
+ source:
235
+ type: stdlib
208
236
  - name: strscan
209
237
  version: '0'
210
238
  source:
@@ -214,7 +242,7 @@ gems:
214
242
  source:
215
243
  type: git
216
244
  name: ruby/gem_rbs_collection
217
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
245
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
218
246
  remote: https://github.com/ruby/gem_rbs_collection.git
219
247
  repo_dir: gems
220
248
  - name: time
@@ -230,15 +258,19 @@ gems:
230
258
  source:
231
259
  type: git
232
260
  name: ruby/gem_rbs_collection
233
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
261
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
234
262
  remote: https://github.com/ruby/gem_rbs_collection.git
235
263
  repo_dir: gems
264
+ - name: uri
265
+ version: '0'
266
+ source:
267
+ type: stdlib
236
268
  - name: webmock
237
269
  version: '3.19'
238
270
  source:
239
271
  type: git
240
272
  name: ruby/gem_rbs_collection
241
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
273
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
242
274
  remote: https://github.com/ruby/gem_rbs_collection.git
243
275
  repo_dir: gems
244
276
  - name: yard
@@ -246,7 +278,7 @@ gems:
246
278
  source:
247
279
  type: git
248
280
  name: ruby/gem_rbs_collection
249
- revision: 3670834268f4ea9c10aefeffae7e072b51256375
281
+ revision: f1d2dae32fe8d46683fbc79bbd0f1ca391d5e11a
250
282
  remote: https://github.com/ruby/gem_rbs_collection.git
251
283
  repo_dir: gems
252
284
  gemfile_lock_path: Gemfile.lock
@@ -0,0 +1,17 @@
1
+ # The Forwardable module provides delegation of specified methods to a designated object
2
+ module Forwardable
3
+ # Defines delegators for instance methods
4
+ def def_instance_delegators: (Symbol | String accessor, *Symbol methods) -> void
5
+
6
+ def def_instance_delegator: (Symbol | String accessor, Symbol method, ?Symbol ali) -> void
7
+
8
+ # Defines delegators for singleton methods (used with extend Forwardable)
9
+ def def_single_delegators: (Symbol | String accessor, *Symbol methods) -> void
10
+
11
+ def def_single_delegator: (Symbol | String accessor, Symbol method, ?Symbol ali) -> void
12
+
13
+ # Common aliases that work in both instance and singleton contexts
14
+ def def_delegators: (Symbol | String accessor, *Symbol methods) -> void
15
+
16
+ def def_delegator: (Symbol | String accessor, Symbol method, ?Symbol ali) -> void
17
+ end
@@ -2,7 +2,6 @@ module Selenium
2
2
  module WebDriver
3
3
  module Atoms
4
4
  include _Bridge
5
- include _ExecuteScript
6
5
 
7
6
  def atom_script: (Symbol) -> String
8
7
 
@@ -10,7 +10,7 @@ module Selenium
10
10
 
11
11
  READINESS_STATE: Hash[Symbol, String]
12
12
 
13
- def initialize: (driver: untyped, ?browsing_context_id: untyped?, ?type: untyped?, ?reference_context: untyped?) -> void
13
+ def initialize: (untyped bridge) -> void
14
14
 
15
15
  def navigate: (url: untyped, ?readiness_state: untyped?) -> untyped
16
16
 
@@ -269,6 +269,9 @@ module Selenium
269
269
  UNICODE_CODE_POINT: 30
270
270
 
271
271
  def escape_css: (untyped string) -> untyped
272
+
273
+ def self.extra_commands: () -> Hash[Symbol, Array[untyped]]
274
+ def self.add_command: (Symbol name, Symbol method, String url, ?untyped block) -> void
272
275
  end
273
276
  end
274
277
  end
@@ -35,7 +35,7 @@ module Selenium
35
35
  def available_log_types: () -> Array[Symbol]
36
36
 
37
37
  def log: (Symbol type) -> Array[Hash[String, untyped]] |
38
- (Symbol type) -> Array[LogEntry]
38
+ (Symbol type) -> Array[Selenium::WebDriver::LogEntry]
39
39
  end
40
40
  end
41
41
  end
@@ -47,6 +47,8 @@ module Selenium
47
47
 
48
48
  alias [] attribute
49
49
 
50
+ def rect: () -> untyped
51
+
50
52
  def ref: () -> ::Array[:element | untyped]
51
53
 
52
54
  def to_json: () -> untyped
@@ -2,6 +2,16 @@ module Selenium
2
2
  module WebDriver
3
3
  class Driver
4
4
  def capabilities: () -> untyped
5
+
6
+ def manage: () -> untyped
7
+
8
+ def navigate: () -> untyped
9
+
10
+ def find_element: (untyped how, ?untyped? what) -> untyped
11
+
12
+ def find_elements: (untyped how, ?untyped? what) -> untyped
13
+
14
+ def add_extensions: (untyped mod) -> untyped
5
15
  end
6
16
  end
7
17
  end
@@ -0,0 +1,12 @@
1
+ module FedCM
2
+ class Account
3
+ # Keep fields loose to avoid downstream mismatches.
4
+ attr_reader id: untyped
5
+ attr_reader email: untyped
6
+ attr_reader name: untyped
7
+ attr_reader given_name: untyped
8
+ attr_reader picture_url: untyped
9
+
10
+ def initialize: (*untyped) -> void
11
+ end
12
+ end
@@ -50,8 +50,6 @@ module Selenium
50
50
 
51
51
  def proxy=: (untyped proxy) -> untyped
52
52
 
53
- alias as_json encoded
54
-
55
53
  private
56
54
 
57
55
  def set_manual_proxy_preference: (untyped key, untyped value) -> untyped?
@@ -0,0 +1,12 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class LogEntry
4
+ # Keep attributes loose to avoid downstream mismatches; refine later if desired.
5
+ attr_reader level: untyped
6
+ attr_reader message: String
7
+ attr_reader timestamp: Integer
8
+
9
+ def initialize: (untyped level, String message, Integer timestamp) -> void
10
+ end
11
+ end
12
+ end
@@ -2,6 +2,12 @@ module Selenium
2
2
  module WebDriver
3
3
  module Remote
4
4
  class Capabilities
5
+ def initialize: (?Hash[untyped, untyped]) -> void
6
+ def []: (untyped key) -> untyped
7
+ def []=: (untyped key, untyped value) -> untyped
8
+
9
+ # Add this:
10
+ def self.json_create: (Hash[untyped, untyped] value) -> Capabilities
5
11
  end
6
12
  end
7
13
  end
@@ -2,4 +2,8 @@ interface _Bridge
2
2
  def bridge: -> untyped
3
3
 
4
4
  def execute: (untyped command, ?Hash[untyped, untyped] opts, ?untyped? command_hash) -> untyped
5
+
6
+ def execute_script: (String script, *untyped args) -> untyped
7
+
8
+ def execute_async_script: (String script, *untyped args) -> untyped
5
9
  end
@@ -3,7 +3,7 @@ module Appium
3
3
  module Android
4
4
  module Device
5
5
  module Authentication
6
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
6
+ include _Bridge
7
7
 
8
8
  def self.add_methods: () -> untyped
9
9
  end
@@ -3,7 +3,7 @@ module Appium
3
3
  module Android
4
4
  module Device
5
5
  module Clipboard
6
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
6
+ include _Bridge
7
7
 
8
8
  def self.add_methods: () -> untyped
9
9
  end
@@ -3,6 +3,8 @@ module Appium
3
3
  module Android
4
4
  module Device
5
5
  module Emulator
6
+ include _Bridge
7
+
6
8
  GSM_CALL_ACTIONS: ::Array[:call | :accept | :cancel | :hold]
7
9
 
8
10
  GSM_VOICE_STATES: ::Array[:on | :off | :denied | :searching | :roaming | :home | :unregistered]
@@ -14,8 +16,6 @@ module Appium
14
16
  POWER_AC_STATE: ::Array[:on | :off]
15
17
 
16
18
  def self.add_methods: () -> untyped
17
-
18
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
19
19
  end
20
20
  end
21
21
  end
@@ -3,7 +3,7 @@ module Appium
3
3
  module Android
4
4
  module Device
5
5
  module Performance
6
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
6
+ include _Bridge
7
7
 
8
8
  def self.add_methods: () -> untyped
9
9
  end
@@ -3,6 +3,8 @@ module Appium
3
3
  module Android
4
4
  module Device
5
5
  module Screen
6
+ include _Bridge
7
+
6
8
  def self.add_methods: () -> untyped
7
9
  end
8
10
  end
@@ -2,11 +2,29 @@ module Appium
2
2
  module Core
3
3
  module Android
4
4
  module Device
5
- extend Forwardable
5
+ include _Bridge
6
6
 
7
- def self.execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
7
+ extend Forwardable
8
8
 
9
9
  def self.extended: (untyped _mod) -> (nil | untyped)
10
+
11
+ def open_notifications: () -> untyped
12
+
13
+ def current_activity: () -> untyped
14
+
15
+ def current_package: () -> untyped
16
+
17
+ def get_system_bars: () -> untyped
18
+
19
+ def system_bars: () -> untyped
20
+
21
+ def toggle_location_services: () -> untyped
22
+
23
+ def hide_keyboard: () -> untyped
24
+
25
+ def background_app: (Integer duration) -> untyped
26
+
27
+ def chrome_send_command: (String cmd, Hash[untyped, untyped] params) -> untyped
10
28
  end
11
29
  end
12
30
  end
@@ -4,6 +4,8 @@ module Appium
4
4
  module Uiautomator2
5
5
  module Device
6
6
  module Battery
7
+ include _Bridge
8
+
7
9
  def self.add_methods: () -> untyped
8
10
  end
9
11
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Appium
4
+ module Core
5
+ module Android
6
+ module Uiautomator2
7
+ module Device
8
+ extend Forwardable
9
+
10
+ def self.extended: (untyped _mod) -> void
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file only contains require statements and does not define any classes or modules.
4
+ # No type signatures needed.
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file only contains require statements and does not define any classes or modules.
4
+ # No type signatures needed.
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file only contains require statements and does not define any classes or modules.
4
+ # No type signatures needed.
@@ -19,6 +19,10 @@ module Appium
19
19
  def quit: () -> untyped
20
20
 
21
21
  def close: () -> untyped
22
+
23
+ private
24
+
25
+ def browsing_context: () -> ::Selenium::WebDriver::BiDi::BrowsingContext
22
26
  end
23
27
  end
24
28
  end
@@ -6,6 +6,8 @@ module Appium
6
6
  end
7
7
 
8
8
  class Bridge < ::Selenium::WebDriver::Remote::Bridge
9
+ include _Bridge
10
+
9
11
  @browser: untyped
10
12
 
11
13
  @available_commands: untyped
@@ -82,7 +84,7 @@ module Appium
82
84
  # caps: {
83
85
  # platformName: :ios,
84
86
  # automationName: 'XCUITest',
85
- # app: 'test/functional/app/UICatalog.app.zip',
87
+ # app: 'test/functional/app/UIKitCatalog-iphonesimulator.zip',
86
88
  # platformVersion: '11.4',
87
89
  # deviceName: 'iPhone Simulator',
88
90
  # useNewWDA: true,
@@ -3,6 +3,9 @@ module Appium
3
3
  class Base
4
4
  class Capabilities < Selenium::WebDriver::Remote::Capabilities
5
5
  def convert_key: (untyped key) -> untyped
6
+
7
+ # Inherit json_create from parent, but you can redeclare for clarity:
8
+ def self.json_create: (Hash[untyped, untyped] value) -> Capabilities
6
9
  end
7
10
  end
8
11
  end
@@ -4,6 +4,9 @@ module Appium
4
4
  module Rotatable
5
5
  ORIENTATIONS: Array[Symbol]
6
6
 
7
+ # Expects including class to have bridge accessor
8
+ def bridge: () -> untyped
9
+
7
10
  def rotation=: (untyped orientation) -> untyped
8
11
 
9
12
  alias rotate rotation=
@@ -2,7 +2,7 @@ module Appium
2
2
  module Core
3
3
  class Base
4
4
  module SearchContext
5
- APPIUM_EXTRA_FINDERS: { Symbol => String }
5
+ APPIUM_EXTRA_FINDERS: ::Hash[Symbol, String]
6
6
  end
7
7
  end
8
8
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file only contains require statements and does not define any classes or modules.
4
+ # No type signatures needed.
@@ -3,9 +3,9 @@ module Appium
3
3
  class Base
4
4
  module Device
5
5
  module AppState
6
- STATUS: ::Array[:not_installed | :not_running | :running_in_background_suspended | :running_in_background | :running_in_foreground]
6
+ include _Bridge
7
7
 
8
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
8
+ STATUS: ::Array[:not_installed | :not_running | :running_in_background_suspended | :running_in_background | :running_in_foreground]
9
9
 
10
10
  def app_state: (untyped app_id) -> untyped
11
11
  end
@@ -3,7 +3,7 @@ module Appium
3
3
  class Base
4
4
  module Device
5
5
  module Device
6
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
6
+ include _Bridge
7
7
 
8
8
  def shake: () -> untyped
9
9
 
@@ -3,13 +3,13 @@ module Appium
3
3
  class Base
4
4
  module Device
5
5
  module DeviceLock
6
+ include _Bridge
7
+
6
8
  def lock: (?untyped? duration) -> untyped
7
9
 
8
10
  def device_locked?: () -> untyped
9
11
 
10
12
  def unlock: () -> untyped
11
-
12
- def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
13
13
  end
14
14
  end
15
15
  end