appium_lib_core 11.0.1 → 11.0.2

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 (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/Gemfile +1 -1
  4. data/lib/appium_lib_core/common/device/app_management.rb +1 -1
  5. data/lib/appium_lib_core/version.rb +2 -2
  6. data/sig/gems/em.rbs +5 -0
  7. data/sig/gems/faye.rbs +10 -0
  8. data/sig/gems/selenium/atoms.rbs +16 -0
  9. data/sig/gems/selenium/bidi/browsing_context.rbs +27 -0
  10. data/sig/gems/selenium/bidi/browsing_context_info.rbs +25 -0
  11. data/sig/gems/selenium/bidi/log_inspector.rbs +33 -0
  12. data/sig/gems/selenium/bidi/navigate_result.rbs +17 -0
  13. data/sig/gems/selenium/bidi/session.rbs +19 -0
  14. data/sig/gems/selenium/bridge.rbs +275 -0
  15. data/sig/gems/selenium/chrome/features.rbs +16 -0
  16. data/sig/gems/selenium/chromium/features.rbs +42 -0
  17. data/sig/gems/selenium/common/element.rbs +65 -0
  18. data/sig/gems/selenium/edge/features.rbs +17 -0
  19. data/sig/gems/selenium/error.rbs +9 -0
  20. data/sig/gems/selenium/event_firing_bridge.rbs +47 -0
  21. data/sig/gems/selenium/firefox/driver.rbs +21 -0
  22. data/sig/gems/selenium/firefox/extension.rbs +31 -0
  23. data/sig/gems/selenium/firefox/features.rbs +25 -0
  24. data/sig/gems/selenium/firefox/options.rbs +8 -0
  25. data/sig/gems/selenium/firefox/profile.rbs +77 -0
  26. data/sig/gems/selenium/firefox/profiles_ini.rbs +23 -0
  27. data/sig/gems/selenium/firefox/service.rbs +6 -0
  28. data/sig/gems/selenium/firefox/util.rbs +12 -0
  29. data/sig/gems/selenium/ie/features.rbs +13 -0
  30. data/sig/gems/selenium/interactions.rbs +11 -0
  31. data/sig/gems/selenium/interfaces/commands.rbs +3 -0
  32. data/sig/gems/selenium/interfaces/commands_list.rbs +3 -0
  33. data/sig/gems/selenium/interfaces/devtools.rbs +3 -0
  34. data/sig/gems/selenium/interfaces/driver.rbs +17 -0
  35. data/sig/gems/selenium/interfaces/features.rbs +3 -0
  36. data/sig/gems/selenium/local_driver.rbs +11 -0
  37. data/sig/gems/selenium/platform.rbs +6 -0
  38. data/sig/gems/selenium/profile_helper.rbs +6 -0
  39. data/sig/gems/selenium/{default.rbs → remote/bridge/commands.rbs} +2 -3
  40. data/sig/gems/selenium/{capabilities.rbs → remote/capabilities.rbs} +2 -2
  41. data/sig/gems/selenium/remote/http/common.rbs +39 -0
  42. data/sig/gems/selenium/remote/http/default.rbs +48 -0
  43. data/sig/gems/selenium/{common.rbs → remote/response.rbs} +1 -3
  44. data/sig/gems/selenium/safari/features.rbs +23 -0
  45. data/sig/gems/selenium/search_context.rbs +17 -0
  46. data/sig/interfaces/bridge.rbs +5 -0
  47. data/sig/lib/appium_lib_core/android/device/auth_finger_print.rbs +13 -0
  48. data/sig/lib/appium_lib_core/android/device/clipboard.rbs +13 -0
  49. data/sig/lib/appium_lib_core/android/device/emulator.rbs +23 -0
  50. data/sig/lib/appium_lib_core/android/device/network.rbs +13 -0
  51. data/sig/lib/appium_lib_core/android/device/performance.rbs +13 -0
  52. data/sig/lib/appium_lib_core/android/device/screen.rbs +11 -0
  53. data/sig/lib/appium_lib_core/android/device.rbs +13 -0
  54. data/sig/lib/appium_lib_core/android/espresso/bridge.rbs +11 -0
  55. data/sig/lib/appium_lib_core/android/uiautomator1/bridge.rbs +11 -0
  56. data/sig/lib/appium_lib_core/android/uiautomator2/bridge.rbs +11 -0
  57. data/sig/lib/appium_lib_core/android/uiautomator2/device/battery.rbs +13 -0
  58. data/sig/lib/appium_lib_core/common/base/bridge.rbs +206 -0
  59. data/sig/lib/appium_lib_core/common/base/device_ime.rbs +25 -0
  60. data/sig/lib/appium_lib_core/common/base/remote_status.rbs +2 -0
  61. data/sig/lib/appium_lib_core/common/base/screenshot.rbs +2 -0
  62. data/sig/lib/appium_lib_core/common/base/search_context.rbs +1 -0
  63. data/sig/lib/appium_lib_core/common/command.rbs +13 -0
  64. data/sig/lib/appium_lib_core/common/device/app_management.rbs +29 -0
  65. data/sig/lib/appium_lib_core/common/device/app_state.rbs +15 -0
  66. data/sig/lib/appium_lib_core/common/device/clipboard_content_type.rbs +11 -0
  67. data/sig/lib/appium_lib_core/common/device/context.rbs +19 -0
  68. data/sig/lib/appium_lib_core/common/device/device.rbs +15 -0
  69. data/sig/lib/appium_lib_core/common/device/device_lock.rbs +17 -0
  70. data/sig/lib/appium_lib_core/common/device/execute_driver.rbs +25 -0
  71. data/sig/lib/appium_lib_core/common/device/file_management.rbs +17 -0
  72. data/sig/lib/appium_lib_core/common/device/image_comparison.rbs +27 -0
  73. data/sig/lib/appium_lib_core/common/device/ime_actions.rbs +21 -0
  74. data/sig/lib/appium_lib_core/common/device/keyboard.rbs +15 -0
  75. data/sig/lib/appium_lib_core/common/device/keyevent.rbs +17 -0
  76. data/sig/lib/appium_lib_core/common/device/orientation.rbs +15 -0
  77. data/sig/lib/appium_lib_core/common/device/screen_record.rbs +23 -0
  78. data/sig/lib/appium_lib_core/common/device/setting.rbs +15 -0
  79. data/sig/lib/appium_lib_core/common/error.rbs +26 -0
  80. data/sig/lib/appium_lib_core/common/log.rbs +19 -0
  81. data/sig/lib/appium_lib_core/common/logger.rbs +23 -0
  82. data/sig/lib/appium_lib_core/common/wait/timer.rbs +15 -0
  83. data/sig/lib/appium_lib_core/common/ws/websocket.rbs +103 -0
  84. data/sig/lib/appium_lib_core/driver.rbs +5 -5
  85. data/sig/lib/appium_lib_core/element.rbs +24 -0
  86. data/sig/lib/appium_lib_core/ios/clipboard.rbs +17 -0
  87. data/sig/lib/appium_lib_core/ios/device.rbs +12 -0
  88. data/sig/lib/appium_lib_core/ios/xcuitest/bridge.rbs +11 -0
  89. data/sig/lib/appium_lib_core/ios/xcuitest/device/performance.rbs +13 -0
  90. data/sig/lib/appium_lib_core/ios/xcuitest/device/screen.rbs +15 -0
  91. data/sig/lib/appium_lib_core/ios/xcuitest/device.rbs +14 -0
  92. data/sig/lib/appium_lib_core/mac2/bridge.rbs +9 -0
  93. data/sig/lib/appium_lib_core/mac2/device/screen.rbs +13 -0
  94. data/sig/lib/appium_lib_core/mac2/device.rbs +11 -0
  95. data/sig/lib/appium_lib_core/support/event_firing_bridge.rbs +21 -0
  96. data/sig/lib/appium_lib_core/windows/bridge.rbs +9 -0
  97. data/sig/lib/appium_lib_core/windows/device/screen.rbs +13 -0
  98. data/sig/lib/appium_lib_core/windows/device.rbs +11 -0
  99. metadata +93 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a55943a46ddf58f1d5d55f35ca053dd462e5fa64f96acc2fcc25bd0f9e359abb
4
- data.tar.gz: 5fdec234ffc06d2d378ebfc328d6c8799e660f7ec0113ba67f24381da9aca682
3
+ metadata.gz: 5d726486fec10984535bedbd31b2d24a7891a7d10ba31f06f823307678ac0bc6
4
+ data.tar.gz: 8de3869f41fa4f680e8db592d26287430bdb68b9a79f757baeb6018afbeac80f
5
5
  SHA512:
6
- metadata.gz: 16711bfc64ce4ef4c6501f45f03bcaf4aac07a41d7f24a99e0307309f6d1a9a81de9a1a871d1a74e1da69cdcfa863c5a40b863c05c127821e90c723757ac3d06
7
- data.tar.gz: 150380ab09f8287fc1863ea67c3144a858773704c8566c5ff5409e27246609f396c572a8ab28b120936ff7d040aea773ac5582f23f61d21b4aabc38812748fa8
6
+ metadata.gz: e98f8d19e9e09abc6ee28f1be39e9d22d41dceabc57cc936594adda74df1a699a100059c242787bba4c0ea331a6681257f171ab8e397cf890631463692d4d655
7
+ data.tar.gz: 7b80fe220f197d16a45ecc6cc83495388efd1261a90c2597ca0651666b885dbeccf9fe4809f46e19fad47361113f0f0fd3ea267df8fe8c65c437e4feff8a3ba5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  Read `release_notes.md` for commit level details.
4
4
 
5
+ ## [11.0.2] - 2025-04-27
6
+ - Add more sig definitions [#571](https://github.com/appium/ruby_lib_core/pull/571)
7
+
5
8
  ## [11.0.1] - 2025-03-27
6
9
  - Remove `::Selenium::WebDriver::DriverExtensions::HasWebStorage` import to follow selenium webdriver 4.30.0
7
10
 
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ gem 'minitest', '~> 5.0'
8
8
  gem 'minitest-reporters', '~> 1.1'
9
9
  gem 'parallel_tests'
10
10
  gem 'rake', '~> 13.0'
11
- gem 'rubocop', '1.74.0'
11
+ gem 'rubocop', '1.75.3'
12
12
  gem 'simplecov'
13
13
  gem 'steep', '~> 1.9.3'
14
14
  gem 'webmock', '~> 3.25.0'
@@ -29,7 +29,7 @@ module Appium
29
29
 
30
30
  def install_app(path, options = {})
31
31
  args = { appPath: path }
32
- args[:options] = options unless options.empty?
32
+ args[:options] = options unless options&.empty?
33
33
 
34
34
  execute :install_app, {}, args
35
35
  end
@@ -14,7 +14,7 @@
14
14
 
15
15
  module Appium
16
16
  module Core
17
- VERSION = '11.0.1' unless defined? ::Appium::Core::VERSION
18
- DATE = '2025-03-27' unless defined? ::Appium::Core::DATE
17
+ VERSION = '11.0.2' unless defined? ::Appium::Core::VERSION
18
+ DATE = '2025-04-27' unless defined? ::Appium::Core::DATE
19
19
  end
20
20
  end
data/sig/gems/em.rbs ADDED
@@ -0,0 +1,5 @@
1
+ module EM
2
+ def stop: () -> untyped
3
+
4
+ def run: () -> untyped
5
+ end
data/sig/gems/faye.rbs ADDED
@@ -0,0 +1,10 @@
1
+ module Faye
2
+ module WebSocket
3
+ class Client
4
+ def initialize: (String, String, Hash[Symbol, untyped]) -> void
5
+ def close: () -> void
6
+ def send: (String) -> void
7
+ def on: (String, Proc) -> void
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,16 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Atoms
4
+ include _Bridge
5
+ include _ExecuteScript
6
+
7
+ def atom_script: (Symbol) -> String
8
+
9
+ private
10
+
11
+ def read_atom: (Symbol function) -> String
12
+
13
+ def execute_atom: (Symbol function_name, [Element | String | Symbol] arguments) -> [Element | Integer | Float | bool | nil | String | Array[untyped]]
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,27 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class BiDi
4
+ class BrowsingContext
5
+ @bidi: untyped
6
+
7
+ @id: untyped
8
+
9
+ attr_accessor id: untyped
10
+
11
+ READINESS_STATE: Hash[Symbol, String]
12
+
13
+ def initialize: (driver: untyped, ?browsing_context_id: untyped?, ?type: untyped?, ?reference_context: untyped?) -> void
14
+
15
+ def navigate: (url: untyped, ?readiness_state: untyped?) -> untyped
16
+
17
+ def get_tree: (?max_depth: untyped?) -> untyped
18
+
19
+ def close: () -> untyped
20
+
21
+ private
22
+
23
+ def create: (untyped type, untyped reference_context) -> untyped
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,25 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class BiDi
4
+ class BrowsingContextInfo
5
+ @id: untyped
6
+
7
+ @url: untyped
8
+
9
+ @children: untyped
10
+
11
+ @parent_browsing_context: untyped
12
+
13
+ attr_accessor id: untyped
14
+
15
+ attr_accessor url: untyped
16
+
17
+ attr_accessor children: untyped
18
+
19
+ attr_accessor parent_browsing_context: untyped
20
+
21
+ def initialize: (id: untyped, url: untyped, children: untyped, parent_context: untyped) -> void
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,33 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class BiDi
4
+ class LogInspector
5
+ @bidi: untyped
6
+
7
+ EVENTS: Hash[Symbol, String]
8
+
9
+ LOG_LEVEL: Hash[Symbol, String]
10
+
11
+ def initialize: (untyped driver, ?untyped? browsing_context_ids) -> void
12
+
13
+ def on_console_entry: (?untyped? filter_by) { () -> untyped } -> untyped
14
+
15
+ def on_javascript_log: (?untyped? filter_by) { () -> untyped } -> untyped
16
+
17
+ def on_javascript_exception: () { () -> untyped } -> untyped
18
+
19
+ def on_log: (?untyped? filter_by) { (untyped) -> untyped } -> untyped?
20
+
21
+ private
22
+
23
+ def on: (untyped event) { () -> untyped } -> untyped
24
+
25
+ def check_valid_filter: (untyped filter_by) -> (nil | untyped)
26
+
27
+ def console_log_events: (untyped params, untyped filter_by) { (untyped) -> untyped } -> untyped?
28
+
29
+ def javascript_log_events: (untyped params, untyped filter_by) { (untyped) -> untyped } -> untyped?
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,17 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class BiDi
4
+ class NavigateResult
5
+ @url: untyped
6
+
7
+ @navigation_id: untyped
8
+
9
+ attr_accessor url: untyped
10
+
11
+ attr_accessor navigation_id: untyped
12
+
13
+ def initialize: (url: untyped, navigation_id: untyped) -> void
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class BiDi
4
+ class Session
5
+ @bidi: untyped
6
+
7
+ Status: untyped
8
+
9
+ def initialize: (untyped bidi) -> void
10
+
11
+ def status: () -> untyped
12
+
13
+ def subscribe: (untyped events, ?untyped? browsing_contexts) -> untyped
14
+
15
+ def unsubscribe: (untyped events, ?untyped? browsing_contexts) -> untyped
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,275 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Remote
4
+ class Bridge
5
+ include _CommandList
6
+ include _Features
7
+
8
+ @bidi: WebDriver::BiDi
9
+ @http: untyped
10
+
11
+ @file_detector: untyped
12
+
13
+ @session_id: untyped
14
+
15
+ @capabilities: untyped
16
+
17
+ @browser: untyped
18
+
19
+ @manage: untyped
20
+
21
+ @escaper: untyped
22
+
23
+ include Atoms
24
+
25
+ PORT: Integer
26
+
27
+ attr_accessor http: untyped
28
+
29
+ attr_accessor file_detector: untyped
30
+
31
+ attr_reader capabilities: untyped
32
+
33
+ def initialize: (url: String | URI, ?http_client: untyped?) -> void
34
+
35
+ def cancel_fedcm_dialog: -> nil
36
+
37
+ def click_fedcm_dialog_button: -> nil
38
+
39
+ def create_session: (untyped capabilities) -> untyped
40
+
41
+ extend WebDriver::Chrome::Features
42
+
43
+ extend WebDriver::Firefox::Features
44
+
45
+ extend WebDriver::Edge::Features
46
+
47
+ extend WebDriver::Safari::Features
48
+
49
+ def fedcm_account_list: -> [FedCM::Account]
50
+
51
+ def fedcm_dialog_type: -> String
52
+
53
+ def fedcm_subtitle: -> String?
54
+
55
+ def fedcm_title: -> String
56
+
57
+ def reset_fedcm_cooldown: -> nil
58
+
59
+ def select_fedcm_account: -> nil
60
+
61
+ def session_id: () -> untyped
62
+
63
+ def browser: () -> untyped
64
+
65
+ def fedcm_delay: -> bool
66
+
67
+ def status: () -> untyped
68
+
69
+ def get: (untyped url) -> untyped
70
+
71
+ def timeouts: () -> untyped
72
+
73
+ def timeouts=: (untyped timeouts) -> untyped
74
+
75
+ def accept_alert: () -> untyped
76
+
77
+ def dismiss_alert: () -> untyped
78
+
79
+ def alert=: (untyped keys) -> untyped
80
+
81
+ def alert_text: () -> untyped
82
+
83
+ def go_back: () -> untyped
84
+
85
+ def go_forward: () -> untyped
86
+
87
+ def url: () -> untyped
88
+
89
+ def title: () -> untyped
90
+
91
+ def page_source: () -> untyped
92
+
93
+ def new_window: (untyped type) -> untyped
94
+
95
+ def switch_to_window: (untyped name) -> untyped
96
+
97
+ def switch_to_frame: (untyped id) -> untyped
98
+
99
+ def switch_to_parent_frame: () -> untyped
100
+
101
+ def switch_to_default_content: () -> untyped
102
+
103
+ QUIT_ERRORS: ::Array[untyped]
104
+
105
+ def quit: () -> untyped
106
+
107
+ def close: () -> untyped
108
+
109
+ def refresh: () -> untyped
110
+
111
+ def window_handles: () -> untyped
112
+
113
+ def window_handle: () -> untyped
114
+
115
+ def resize_window: (untyped width, untyped height, ?::Symbol handle) -> untyped
116
+
117
+ def window_size: (?::Symbol handle) -> untyped
118
+
119
+ def minimize_window: () -> untyped
120
+
121
+ def maximize_window: (?::Symbol handle) -> untyped
122
+
123
+ def full_screen_window: () -> untyped
124
+
125
+ def reposition_window: (untyped x, untyped y) -> untyped
126
+
127
+ def window_position: () -> untyped
128
+
129
+ def set_window_rect: (?x: untyped?, ?y: untyped?, ?width: untyped?, ?height: untyped?) -> untyped
130
+
131
+ def window_rect: () -> untyped
132
+
133
+ def screenshot: () -> untyped
134
+
135
+ def element_screenshot: (untyped element) -> untyped
136
+
137
+ def local_storage_item: (untyped key, ?untyped? value) -> untyped
138
+
139
+ def remove_local_storage_item: (untyped key) -> untyped
140
+
141
+ def local_storage_keys: () -> untyped
142
+
143
+ def clear_local_storage: () -> untyped
144
+
145
+ def local_storage_size: () -> untyped
146
+
147
+ def session_storage_item: (untyped key, ?untyped? value) -> untyped
148
+
149
+ def remove_session_storage_item: (untyped key) -> untyped
150
+
151
+ def session_storage_keys: () -> untyped
152
+
153
+ def clear_session_storage: () -> untyped
154
+
155
+ def session_storage_size: () -> untyped
156
+
157
+ def execute_script: (untyped script, *untyped args) -> untyped
158
+
159
+ def execute_async_script: (untyped script, *untyped args) -> untyped
160
+
161
+ def manage: () -> untyped
162
+
163
+ def add_cookie: (untyped cookie) -> untyped
164
+
165
+ def delete_cookie: (untyped name) -> untyped
166
+
167
+ def cookie: (untyped name) -> untyped
168
+
169
+ def cookies: () -> untyped
170
+
171
+ def delete_all_cookies: () -> untyped
172
+
173
+ def action: (?async: bool, ?devices: untyped, ?duration: ::Integer) -> untyped
174
+
175
+ alias actions action
176
+
177
+ def send_actions: (untyped data) -> untyped
178
+
179
+ def release_actions: () -> untyped
180
+
181
+ def print_page: (?::Hash[untyped, untyped] options) -> untyped
182
+
183
+ def click_element: (untyped element) -> untyped
184
+
185
+ def send_keys_to_element: (untyped element, untyped keys) -> untyped
186
+
187
+ def upload: (untyped local_file) -> untyped
188
+
189
+ def clear_element: (untyped element) -> untyped
190
+
191
+ def submit_element: (untyped element) -> untyped
192
+
193
+ def element_tag_name: (untyped element) -> untyped
194
+
195
+ def element_attribute: (untyped element, untyped name) -> untyped
196
+
197
+ def element_dom_attribute: (untyped element, untyped name) -> untyped
198
+
199
+ def element_property: (untyped element, untyped name) -> untyped
200
+
201
+ def element_aria_role: (untyped element) -> untyped
202
+
203
+ def element_aria_label: (untyped element) -> untyped
204
+
205
+ def element_value: (untyped element) -> untyped
206
+
207
+ def element_text: (untyped element) -> untyped
208
+
209
+ def element_location: (untyped element) -> untyped
210
+
211
+ def element_rect: (untyped element) -> untyped
212
+
213
+ def element_location_once_scrolled_into_view: (untyped element) -> untyped
214
+
215
+ def element_size: (untyped element) -> untyped
216
+
217
+ def element_enabled?: (untyped element) -> untyped
218
+
219
+ def element_selected?: (untyped element) -> untyped
220
+
221
+ def element_displayed?: (untyped element) -> untyped
222
+
223
+ def element_value_of_css_property: (untyped element, untyped prop) -> untyped
224
+
225
+ def active_element: () -> untyped
226
+
227
+ alias switch_to_active_element active_element
228
+
229
+ def find_element_by: (untyped how, untyped what, ?untyped parent_ref) -> untyped
230
+
231
+ def find_elements_by: (untyped how, untyped what, ?untyped parent_ref) -> untyped
232
+
233
+ def shadow_root: (untyped element) -> untyped
234
+
235
+ def add_virtual_authenticator: (untyped options) -> untyped
236
+
237
+ def remove_virtual_authenticator: (untyped id) -> untyped
238
+
239
+ def add_credential: (untyped credential, untyped id) -> untyped
240
+
241
+ def credentials: (untyped authenticator_id) -> untyped
242
+
243
+ def remove_credential: (untyped credential_id, untyped authenticator_id) -> untyped
244
+
245
+ def remove_all_credentials: (untyped authenticator_id) -> untyped
246
+
247
+ def user_verified: (untyped verified, untyped authenticator_id) -> untyped
248
+
249
+ private
250
+
251
+ def execute: (untyped command, ?::Hash[untyped, untyped] opts, ?untyped? command_hash) -> WebDriver::Remote::Response
252
+
253
+ def escaper: () -> untyped
254
+
255
+ def commands: (untyped command) -> untyped
256
+
257
+ def unwrap_script_result: (untyped arg) -> untyped
258
+
259
+ def element_id_from: (untyped id) -> untyped
260
+
261
+ def shadow_root_id_from: (untyped id) -> untyped
262
+
263
+ def prepare_capabilities_payload: (untyped capabilities) -> { capabilities: untyped }
264
+
265
+ def convert_locator: (untyped how, untyped what) -> ::Array[untyped]
266
+
267
+ ESCAPE_CSS_REGEXP: ::Regexp
268
+
269
+ UNICODE_CODE_POINT: 30
270
+
271
+ def escape_css: (untyped string) -> untyped
272
+ end
273
+ end
274
+ end
275
+ end
@@ -0,0 +1,16 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Chrome
4
+ module Features
5
+ include WebDriver::Chromium::Features
6
+
7
+ CHROME_COMMANDS: Hash[Symbol, Array[Symbol | String]]
8
+ COMMANDS: Hash[Symbol, Array[Symbol | String]]
9
+
10
+ def command_list: -> Hash[Symbol, Array[Symbol | String]]
11
+
12
+ def commands: (Symbol command) -> Array[Symbol | String]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,42 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Chromium
4
+ module Features
5
+ include _Bridge
6
+
7
+ CHROMIUM_COMMANDS: Hash[Symbol, Array[Symbol | String]]
8
+
9
+ def commands: (Symbol command) -> Array[Symbol | String]
10
+
11
+ def launch_app: (String id) -> String
12
+
13
+ def cast_sinks: () -> Array[String]
14
+
15
+ def cast_sink_to_use=: (String name) -> untyped
16
+
17
+ def cast_issue_message: () -> String
18
+
19
+ def start_cast_tab_mirroring: (String name) -> untyped
20
+
21
+ def start_cast_desktop_mirroring: (String name) -> untyped
22
+
23
+ def stop_casting: (String name) -> untyped
24
+
25
+ def set_permission: (String name, String value) -> untyped
26
+
27
+ def network_conditions: () -> Hash[untyped, untyped]
28
+
29
+ def network_conditions=: (Hash[Symbol | String, Integer | bool] conditions) -> untyped
30
+
31
+ def delete_network_conditions: () -> untyped
32
+
33
+ def send_command: (Hash[String | Symbol, untyped] command_params) -> untyped
34
+
35
+ def available_log_types: () -> Array[Symbol]
36
+
37
+ def log: (Symbol type) -> Array[Hash[String, untyped]] |
38
+ (Symbol type) -> Array[LogEntry]
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,65 @@
1
+ module Selenium
2
+ module WebDriver
3
+ class Element
4
+ ELEMENT_KEY: ::String
5
+
6
+ def inspect: () -> untyped
7
+
8
+ def ==: (untyped other) -> bool
9
+
10
+ alias eql? ==
11
+
12
+ def hash: () -> Integer
13
+
14
+ def click: () -> untyped
15
+
16
+ def tag_name: () -> untyped
17
+
18
+ def attribute: (String | Symbol name) -> String?
19
+
20
+ def dom_attribute: (String name) -> String?
21
+
22
+ def property: (String name) -> String?
23
+
24
+ def aria_role: () -> String
25
+
26
+ def accessible_name: () -> String
27
+
28
+ def text: () -> String
29
+
30
+ def send_keys: (*untyped args) -> untyped
31
+
32
+ alias send_key send_keys
33
+
34
+ def clear: () -> bool
35
+
36
+ def enabled?: () -> bool
37
+
38
+ def selected?: () -> bool
39
+
40
+ def displayed?: () -> bool
41
+
42
+ def submit: () -> untyped
43
+
44
+ def css_value: (String prop) -> untyped
45
+
46
+ alias style css_value
47
+
48
+ alias [] attribute
49
+
50
+ def ref: () -> ::Array[:element | untyped]
51
+
52
+ def to_json: () -> untyped
53
+
54
+ def as_json: () -> untyped
55
+
56
+ private
57
+
58
+ attr_reader bridge: Remote::Bridge
59
+
60
+ def selectable?: () -> bool
61
+
62
+ def screenshot: () -> untyped
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,17 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Edge
4
+ module Features
5
+ include WebDriver::Chromium::Features
6
+
7
+ EDGE_COMMANDS: Hash[Symbol, Array[Symbol | String]]
8
+
9
+ COMMANDS: untyped
10
+
11
+ def command_list: -> untyped
12
+
13
+ def commands: (untyped command) -> untyped
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Error
4
+ module UnknownError
5
+ def message: -> String
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,47 @@
1
+ module Selenium
2
+ module WebDriver
3
+ module Support
4
+ class EventFiringBridge
5
+ @delegate: untyped
6
+
7
+ @listener: untyped
8
+
9
+ @driver: untyped
10
+
11
+ def initialize: (untyped delegate, untyped listener) -> void
12
+
13
+ def get: (untyped url) -> untyped
14
+
15
+ def go_forward: () -> untyped
16
+
17
+ def go_back: () -> untyped
18
+
19
+ def click_element: (untyped ref) -> untyped
20
+
21
+ def clear_element: (untyped ref) -> untyped
22
+
23
+ def send_keys_to_element: (untyped ref, untyped keys) -> untyped
24
+
25
+ def find_element_by: (untyped how, untyped what, ?untyped? parent) -> untyped
26
+
27
+ def find_elements_by: (untyped how, untyped what, ?untyped? parent) -> untyped
28
+
29
+ def execute_script: (untyped script, *untyped args) -> untyped
30
+
31
+ def quit: () -> untyped
32
+
33
+ def close: () -> untyped
34
+
35
+ private
36
+
37
+ def create_element: (untyped ref) -> untyped
38
+
39
+ def driver: () -> untyped
40
+
41
+ def dispatch: (untyped name, *untyped args) { () -> untyped } -> untyped
42
+
43
+ def method_missing: (untyped meth, *untyped args) { () -> untyped } -> untyped
44
+ end
45
+ end
46
+ end
47
+ end