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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/lib/appium_lib_core/common/device/app_management.rb +1 -1
- 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/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 +1 -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 +93 -6
@@ -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
|
@@ -0,0 +1,17 @@
|
|
1
|
+
interface _Driver
|
2
|
+
def capabilities: () -> untyped
|
3
|
+
|
4
|
+
def devtools_url: () -> untyped
|
5
|
+
|
6
|
+
def devtools_version: () -> untyped
|
7
|
+
|
8
|
+
def devtools_address: () -> untyped
|
9
|
+
|
10
|
+
def ref: () -> untyped
|
11
|
+
|
12
|
+
def bridge: () -> untyped
|
13
|
+
|
14
|
+
def browser: () -> untyped
|
15
|
+
|
16
|
+
def service_url: (untyped service) -> untyped
|
17
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module LocalDriver
|
4
|
+
include _Driver
|
5
|
+
|
6
|
+
def initialize_local_driver: (untyped options, untyped service, untyped url) -> Array[untyped]
|
7
|
+
|
8
|
+
def process_options: (untyped options, untyped service) -> untyped
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Remote
|
4
|
+
module Http
|
5
|
+
class Common
|
6
|
+
MAX_REDIRECTS: Integer
|
7
|
+
|
8
|
+
CONTENT_TYPE: String
|
9
|
+
|
10
|
+
DEFAULT_HEADERS: Hash[String, untyped]
|
11
|
+
|
12
|
+
attr_writer server_url: untyped
|
13
|
+
|
14
|
+
def quit_errors: () -> Array[untyped]
|
15
|
+
|
16
|
+
def close: () -> untyped
|
17
|
+
|
18
|
+
def call: (untyped verb, untyped url, untyped command_hash) -> untyped
|
19
|
+
|
20
|
+
def self.extra_headers: () -> untyped
|
21
|
+
|
22
|
+
def self.extra_headers=: (Hash[String, untyped]) -> untyped
|
23
|
+
|
24
|
+
def self.user_agent: () -> untyped
|
25
|
+
|
26
|
+
def self.user_agent=: (String) -> untyped
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def server_url: () -> untyped
|
31
|
+
|
32
|
+
def request: (*untyped) -> untyped
|
33
|
+
|
34
|
+
def create_response: (untyped code, untyped body, untyped content_type) -> untyped
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Remote
|
4
|
+
module Http
|
5
|
+
# @api private
|
6
|
+
class Default < Common
|
7
|
+
@open_timeout: untyped
|
8
|
+
|
9
|
+
@read_timeout: untyped
|
10
|
+
|
11
|
+
@http: untyped
|
12
|
+
|
13
|
+
@proxy: untyped
|
14
|
+
|
15
|
+
attr_writer proxy: untyped
|
16
|
+
|
17
|
+
attr_accessor open_timeout: untyped
|
18
|
+
|
19
|
+
attr_accessor read_timeout: untyped
|
20
|
+
|
21
|
+
def initialize: (?open_timeout: untyped?, ?read_timeout: untyped?) -> void
|
22
|
+
|
23
|
+
def close: () -> untyped
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def http: () -> untyped
|
28
|
+
|
29
|
+
def start: (untyped http) -> untyped
|
30
|
+
|
31
|
+
MAX_RETRIES: Integer
|
32
|
+
|
33
|
+
def request: (untyped verb, untyped url, untyped headers, untyped payload, ?::Integer redirects) -> untyped
|
34
|
+
|
35
|
+
def new_request_for: (untyped verb, untyped url, untyped headers, untyped payload) -> untyped
|
36
|
+
|
37
|
+
def response_for: (untyped request) -> untyped
|
38
|
+
|
39
|
+
def new_http_client: () -> untyped
|
40
|
+
|
41
|
+
def proxy: () -> untyped
|
42
|
+
|
43
|
+
def use_proxy?: () -> untyped
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module Safari
|
4
|
+
module Features
|
5
|
+
include _Bridge
|
6
|
+
|
7
|
+
SAFARI_COMMANDS: Hash[Symbol, Array[Symbol | String]]
|
8
|
+
|
9
|
+
COMMANDS: untyped
|
10
|
+
|
11
|
+
def command_list: -> untyped
|
12
|
+
|
13
|
+
def commands: (untyped command) -> untyped
|
14
|
+
|
15
|
+
def permissions: () -> untyped
|
16
|
+
|
17
|
+
def permissions=: (untyped permissions) -> untyped
|
18
|
+
|
19
|
+
def attach_debugger: () -> untyped
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Selenium
|
2
|
+
module WebDriver
|
3
|
+
module SearchContext
|
4
|
+
include _Driver
|
5
|
+
|
6
|
+
FINDERS: untyped
|
7
|
+
|
8
|
+
def find_element: (*untyped args) -> untyped
|
9
|
+
|
10
|
+
def find_elements: (*untyped args) -> untyped
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def extract_args: (untyped args) -> untyped
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
module Android
|
4
|
+
module Device
|
5
|
+
module Emulator
|
6
|
+
GSM_CALL_ACTIONS: ::Array[:call | :accept | :cancel | :hold]
|
7
|
+
|
8
|
+
GSM_VOICE_STATES: ::Array[:on | :off | :denied | :searching | :roaming | :home | :unregistered]
|
9
|
+
|
10
|
+
GSM_SIGNALS: { none_or_unknown: 0, poor: 1, moderate: 2, good: 3, great: 4 }
|
11
|
+
|
12
|
+
NET_SPEED: ::Array[:gsm | :scsd | :gprs | :edge | :umts | :hsdpa | :lte | :evdo | :full]
|
13
|
+
|
14
|
+
POWER_AC_STATE: ::Array[:on | :off]
|
15
|
+
|
16
|
+
def self.add_methods: () -> untyped
|
17
|
+
|
18
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
module Android
|
4
|
+
module Device
|
5
|
+
extend Forwardable
|
6
|
+
|
7
|
+
def self.execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
8
|
+
|
9
|
+
def self.extended: (untyped _mod) -> (nil | untyped)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|