appium_lib_core 11.0.1 → 11.1.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/README.md +26 -6
- data/appium_lib_core.gemspec +1 -1
- data/lib/appium_lib_core/common/base/bidi_bridge.rb +96 -0
- data/lib/appium_lib_core/common/base/driver.rb +28 -2
- data/lib/appium_lib_core/common/base.rb +2 -1
- data/lib/appium_lib_core/common/device/app_management.rb +1 -1
- data/lib/appium_lib_core/common/device/keyboard.rb +1 -1
- data/lib/appium_lib_core/driver.rb +2 -2
- data/lib/appium_lib_core/version.rb +2 -2
- data/sig/gems/em.rbs +5 -0
- data/sig/gems/faye.rbs +10 -0
- data/sig/gems/selenium/atoms.rbs +16 -0
- data/sig/gems/selenium/bidi/browsing_context.rbs +27 -0
- data/sig/gems/selenium/bidi/browsing_context_info.rbs +25 -0
- data/sig/gems/selenium/bidi/log_inspector.rbs +33 -0
- data/sig/gems/selenium/bidi/navigate_result.rbs +17 -0
- data/sig/gems/selenium/bidi/session.rbs +19 -0
- data/sig/gems/selenium/bridge.rbs +275 -0
- data/sig/gems/selenium/chrome/features.rbs +16 -0
- data/sig/gems/selenium/chromium/features.rbs +42 -0
- data/sig/gems/selenium/common/element.rbs +65 -0
- data/sig/gems/selenium/edge/features.rbs +17 -0
- data/sig/gems/selenium/error.rbs +9 -0
- data/sig/gems/selenium/event_firing_bridge.rbs +47 -0
- data/sig/gems/selenium/firefox/driver.rbs +21 -0
- data/sig/gems/selenium/firefox/extension.rbs +31 -0
- data/sig/gems/selenium/firefox/features.rbs +25 -0
- data/sig/gems/selenium/firefox/options.rbs +8 -0
- data/sig/gems/selenium/firefox/profile.rbs +77 -0
- data/sig/gems/selenium/firefox/profiles_ini.rbs +23 -0
- data/sig/gems/selenium/firefox/service.rbs +6 -0
- data/sig/gems/selenium/firefox/util.rbs +12 -0
- data/sig/gems/selenium/ie/features.rbs +13 -0
- data/sig/gems/selenium/interactions.rbs +11 -0
- data/sig/gems/selenium/interfaces/commands.rbs +3 -0
- data/sig/gems/selenium/interfaces/commands_list.rbs +3 -0
- data/sig/gems/selenium/interfaces/devtools.rbs +3 -0
- data/sig/gems/selenium/interfaces/driver.rbs +17 -0
- data/sig/gems/selenium/interfaces/features.rbs +3 -0
- data/sig/gems/selenium/local_driver.rbs +11 -0
- data/sig/gems/selenium/platform.rbs +6 -0
- data/sig/gems/selenium/profile_helper.rbs +6 -0
- data/sig/gems/selenium/{default.rbs → remote/bridge/commands.rbs} +2 -3
- data/sig/gems/selenium/{capabilities.rbs → remote/capabilities.rbs} +2 -2
- data/sig/gems/selenium/remote/http/common.rbs +39 -0
- data/sig/gems/selenium/remote/http/default.rbs +48 -0
- data/sig/gems/selenium/{common.rbs → remote/response.rbs} +1 -3
- data/sig/gems/selenium/safari/features.rbs +23 -0
- data/sig/gems/selenium/search_context.rbs +17 -0
- data/sig/interfaces/bridge.rbs +5 -0
- data/sig/lib/appium_lib_core/android/device/auth_finger_print.rbs +13 -0
- data/sig/lib/appium_lib_core/android/device/clipboard.rbs +13 -0
- data/sig/lib/appium_lib_core/android/device/emulator.rbs +23 -0
- data/sig/lib/appium_lib_core/android/device/network.rbs +13 -0
- data/sig/lib/appium_lib_core/android/device/performance.rbs +13 -0
- data/sig/lib/appium_lib_core/android/device/screen.rbs +11 -0
- data/sig/lib/appium_lib_core/android/device.rbs +13 -0
- data/sig/lib/appium_lib_core/android/espresso/bridge.rbs +11 -0
- data/sig/lib/appium_lib_core/android/uiautomator1/bridge.rbs +11 -0
- data/sig/lib/appium_lib_core/android/uiautomator2/bridge.rbs +11 -0
- data/sig/lib/appium_lib_core/android/uiautomator2/device/battery.rbs +13 -0
- data/sig/lib/appium_lib_core/common/base/bidi_bridge.rbs +25 -0
- data/sig/lib/appium_lib_core/common/base/bridge.rbs +206 -0
- data/sig/lib/appium_lib_core/common/base/device_ime.rbs +25 -0
- data/sig/lib/appium_lib_core/common/base/remote_status.rbs +2 -0
- data/sig/lib/appium_lib_core/common/base/screenshot.rbs +2 -0
- data/sig/lib/appium_lib_core/common/base/search_context.rbs +9 -0
- data/sig/lib/appium_lib_core/common/command.rbs +13 -0
- data/sig/lib/appium_lib_core/common/device/app_management.rbs +29 -0
- data/sig/lib/appium_lib_core/common/device/app_state.rbs +15 -0
- data/sig/lib/appium_lib_core/common/device/clipboard_content_type.rbs +11 -0
- data/sig/lib/appium_lib_core/common/device/context.rbs +19 -0
- data/sig/lib/appium_lib_core/common/device/device.rbs +15 -0
- data/sig/lib/appium_lib_core/common/device/device_lock.rbs +17 -0
- data/sig/lib/appium_lib_core/common/device/execute_driver.rbs +25 -0
- data/sig/lib/appium_lib_core/common/device/file_management.rbs +17 -0
- data/sig/lib/appium_lib_core/common/device/image_comparison.rbs +27 -0
- data/sig/lib/appium_lib_core/common/device/ime_actions.rbs +21 -0
- data/sig/lib/appium_lib_core/common/device/keyboard.rbs +15 -0
- data/sig/lib/appium_lib_core/common/device/keyevent.rbs +17 -0
- data/sig/lib/appium_lib_core/common/device/orientation.rbs +15 -0
- data/sig/lib/appium_lib_core/common/device/screen_record.rbs +23 -0
- data/sig/lib/appium_lib_core/common/device/setting.rbs +15 -0
- data/sig/lib/appium_lib_core/common/error.rbs +26 -0
- data/sig/lib/appium_lib_core/common/log.rbs +19 -0
- data/sig/lib/appium_lib_core/common/logger.rbs +23 -0
- data/sig/lib/appium_lib_core/common/wait/timer.rbs +15 -0
- data/sig/lib/appium_lib_core/common/ws/websocket.rbs +103 -0
- data/sig/lib/appium_lib_core/driver.rbs +5 -5
- data/sig/lib/appium_lib_core/element.rbs +24 -0
- data/sig/lib/appium_lib_core/ios/clipboard.rbs +17 -0
- data/sig/lib/appium_lib_core/ios/device.rbs +12 -0
- data/sig/lib/appium_lib_core/ios/xcuitest/bridge.rbs +11 -0
- data/sig/lib/appium_lib_core/ios/xcuitest/device/performance.rbs +13 -0
- data/sig/lib/appium_lib_core/ios/xcuitest/device/screen.rbs +15 -0
- data/sig/lib/appium_lib_core/ios/xcuitest/device.rbs +14 -0
- data/sig/lib/appium_lib_core/mac2/bridge.rbs +9 -0
- data/sig/lib/appium_lib_core/mac2/device/screen.rbs +13 -0
- data/sig/lib/appium_lib_core/mac2/device.rbs +11 -0
- data/sig/lib/appium_lib_core/support/event_firing_bridge.rbs +21 -0
- data/sig/lib/appium_lib_core/windows/bridge.rbs +9 -0
- data/sig/lib/appium_lib_core/windows/device/screen.rbs +13 -0
- data/sig/lib/appium_lib_core/windows/device.rbs +11 -0
- metadata +105 -10
@@ -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,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
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Firefox
|
4
|
+
class Driver < WebDriver::Driver
|
5
|
+
EXTENSIONS: Array[untyped]
|
6
|
+
|
7
|
+
include LocalDriver
|
8
|
+
|
9
|
+
def initialize: (?options: untyped?, ?service: untyped?, ?url: untyped?, **untyped opts) -> void
|
10
|
+
|
11
|
+
def browser: () -> Symbol
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def devtools_url: () -> untyped
|
16
|
+
|
17
|
+
def devtools_version: () -> untyped
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Firefox
|
4
|
+
class Extension
|
5
|
+
@path: untyped
|
6
|
+
|
7
|
+
@should_reap_root: untyped
|
8
|
+
|
9
|
+
NAMESPACE: String
|
10
|
+
|
11
|
+
def initialize: (untyped path) -> void
|
12
|
+
|
13
|
+
def write_to: (untyped extensions_dir) -> untyped
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def create_root: () -> untyped
|
18
|
+
|
19
|
+
def read_id: (untyped directory) -> untyped
|
20
|
+
|
21
|
+
def read_id_from_install_rdf: (untyped directory) -> untyped?
|
22
|
+
|
23
|
+
def read_id_from_manifest_json: (untyped directory) -> untyped?
|
24
|
+
|
25
|
+
def applications_gecko_id: (untyped manifest) -> untyped
|
26
|
+
|
27
|
+
def name_and_version: (untyped manifest) -> untyped
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Firefox
|
4
|
+
module Features
|
5
|
+
include _Bridge
|
6
|
+
COMMANDS: Hash[Symbol, Array[Symbol | String]]
|
7
|
+
FIREFOX_COMMANDS: Hash[Symbol, Array[Symbol | String]]
|
8
|
+
|
9
|
+
def command_list: -> untyped
|
10
|
+
|
11
|
+
def commands: (untyped command) -> untyped
|
12
|
+
|
13
|
+
def install_addon: (untyped path, untyped temporary) -> untyped
|
14
|
+
|
15
|
+
def uninstall_addon: (untyped id) -> untyped
|
16
|
+
|
17
|
+
def full_screenshot: () -> untyped
|
18
|
+
|
19
|
+
def context=: (untyped context) -> untyped
|
20
|
+
|
21
|
+
def context: () -> untyped
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Firefox
|
4
|
+
class Profile
|
5
|
+
WEBDRIVER_PREFS: untyped
|
6
|
+
|
7
|
+
self.@ini: untyped
|
8
|
+
|
9
|
+
@model: untyped
|
10
|
+
|
11
|
+
@additional_prefs: untyped
|
12
|
+
|
13
|
+
@extensions: untyped
|
14
|
+
|
15
|
+
@log_file: untyped
|
16
|
+
|
17
|
+
include ProfileHelper
|
18
|
+
|
19
|
+
VALID_PREFERENCE_TYPES: Array[untyped]
|
20
|
+
|
21
|
+
DEFAULT_PREFERENCES: Hash[String, bool | String]
|
22
|
+
|
23
|
+
LOCK_FILES: Array[String]
|
24
|
+
|
25
|
+
attr_reader name: untyped
|
26
|
+
|
27
|
+
attr_reader log_file: untyped
|
28
|
+
|
29
|
+
attr_writer secure_ssl: untyped
|
30
|
+
|
31
|
+
attr_writer load_no_focus_lib: untyped
|
32
|
+
|
33
|
+
def self.ini: () -> untyped
|
34
|
+
|
35
|
+
def self.from_name: (untyped name) -> untyped
|
36
|
+
|
37
|
+
def self.decoded: (untyped json) -> untyped
|
38
|
+
|
39
|
+
def initialize: (?untyped? model) -> void
|
40
|
+
|
41
|
+
def layout_on_disk: () -> untyped
|
42
|
+
|
43
|
+
def []=: (untyped key, untyped value) -> untyped
|
44
|
+
|
45
|
+
def port=: (untyped port) -> untyped
|
46
|
+
|
47
|
+
def log_file=: (untyped file) -> untyped
|
48
|
+
|
49
|
+
def add_extension: (untyped path, ?untyped name) -> untyped
|
50
|
+
|
51
|
+
def proxy=: (untyped proxy) -> untyped
|
52
|
+
|
53
|
+
alias as_json encoded
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def set_manual_proxy_preference: (untyped key, untyped value) -> untyped?
|
58
|
+
|
59
|
+
def install_extensions: (untyped directory) -> untyped
|
60
|
+
|
61
|
+
def read_model_prefs: () -> (Hash[untyped, untyped] | untyped)
|
62
|
+
|
63
|
+
def delete_extensions_cache: (untyped directory) -> untyped
|
64
|
+
|
65
|
+
def delete_lock_files: (untyped directory) -> untyped
|
66
|
+
|
67
|
+
def extension_name_for: (untyped path) -> untyped
|
68
|
+
|
69
|
+
def update_user_prefs_in: (untyped directory) -> untyped
|
70
|
+
|
71
|
+
def read_user_prefs: (untyped path) -> untyped
|
72
|
+
|
73
|
+
def write_prefs: (untyped prefs, untyped path) -> untyped
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Firefox
|
4
|
+
class ProfilesIni
|
5
|
+
@ini_path: untyped
|
6
|
+
|
7
|
+
@profile_paths: untyped
|
8
|
+
|
9
|
+
def initialize: () -> void
|
10
|
+
|
11
|
+
def []: (untyped name) -> untyped
|
12
|
+
|
13
|
+
def refresh: () -> untyped
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def parse: () -> untyped
|
18
|
+
|
19
|
+
def path_for: (untyped name, untyped is_relative, untyped path) -> untyped?
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|