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,206 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
class LocatorConverter
|
5
|
+
def convert: (untyped how, untyped what) -> ::Array[untyped]
|
6
|
+
end
|
7
|
+
|
8
|
+
class Bridge < ::Selenium::WebDriver::Remote::Bridge
|
9
|
+
@browser: untyped
|
10
|
+
|
11
|
+
@available_commands: untyped
|
12
|
+
|
13
|
+
@session_id: untyped
|
14
|
+
|
15
|
+
# generate a dummy capabilities instance which only has the given platformName and automationName
|
16
|
+
@capabilities: untyped
|
17
|
+
|
18
|
+
include Device::DeviceLock
|
19
|
+
|
20
|
+
include Device::Keyboard
|
21
|
+
|
22
|
+
include Device::ImeActions
|
23
|
+
|
24
|
+
include Device::Setting
|
25
|
+
|
26
|
+
include Device::Context
|
27
|
+
|
28
|
+
include Device::FileManagement
|
29
|
+
|
30
|
+
include Device::KeyEvent
|
31
|
+
|
32
|
+
include Device::ImageComparison
|
33
|
+
|
34
|
+
include Device::AppManagement
|
35
|
+
|
36
|
+
include Device::AppState
|
37
|
+
|
38
|
+
include Device::ScreenRecord::Command
|
39
|
+
|
40
|
+
include Device::Device
|
41
|
+
|
42
|
+
include Device::ExecuteDriver
|
43
|
+
|
44
|
+
include Device::Orientation
|
45
|
+
|
46
|
+
# Prefix for extra capability defined by W3C
|
47
|
+
APPIUM_PREFIX: "appium:"
|
48
|
+
|
49
|
+
# No 'browserName' means the session is native appium connection
|
50
|
+
APPIUM_NATIVE_BROWSER_NAME: "appium"
|
51
|
+
|
52
|
+
attr_reader available_commands: untyped
|
53
|
+
|
54
|
+
def browser: () -> untyped
|
55
|
+
|
56
|
+
# Appium only.
|
57
|
+
# Attach to an existing session.
|
58
|
+
#
|
59
|
+
# @param [String] The session id to attach to.
|
60
|
+
# @param [String] platform_name The platform name to keep in the dummy capabilities
|
61
|
+
# @param [String] platform_name The automation name to keep in the dummy capabilities
|
62
|
+
# @return [::Appium::Core::Base::Capabilities]
|
63
|
+
#
|
64
|
+
# @example
|
65
|
+
#
|
66
|
+
# new_driver = ::Appium::Core::Driver.attach_to(
|
67
|
+
# driver.session_id,
|
68
|
+
# url: 'http://127.0.0.1:4723/wd/hub', automation_name: 'UiAutomator2', platform_name: 'Android'
|
69
|
+
# )
|
70
|
+
#
|
71
|
+
def attach_to: (untyped session_id, untyped platform_name, untyped automation_name) -> untyped
|
72
|
+
|
73
|
+
# Override
|
74
|
+
# Creates session handling.
|
75
|
+
#
|
76
|
+
# @param [::Appium::Core::Base::Capabilities, Hash] capabilities A capability
|
77
|
+
# @return [::Appium::Core::Base::Capabilities]
|
78
|
+
#
|
79
|
+
# @example
|
80
|
+
#
|
81
|
+
# opts = {
|
82
|
+
# caps: {
|
83
|
+
# platformName: :ios,
|
84
|
+
# automationName: 'XCUITest',
|
85
|
+
# app: 'test/functional/app/UICatalog.app.zip',
|
86
|
+
# platformVersion: '11.4',
|
87
|
+
# deviceName: 'iPhone Simulator',
|
88
|
+
# useNewWDA: true,
|
89
|
+
# },
|
90
|
+
# appium_lib: {
|
91
|
+
# wait: 30
|
92
|
+
# }
|
93
|
+
# }
|
94
|
+
# core = ::Appium::Core.for(caps)
|
95
|
+
# driver = core.start_driver
|
96
|
+
#
|
97
|
+
def create_session: (untyped capabilities) -> untyped
|
98
|
+
|
99
|
+
# Append +appium:+ prefix for Appium following W3C spec
|
100
|
+
# https://www.w3.org/TR/webdriver/#dfn-validate-capabilities
|
101
|
+
#
|
102
|
+
# @param [::Appium::Core::Base::Capabilities, Hash] capabilities A capability
|
103
|
+
# @return [::Appium::Core::Base::Capabilities]
|
104
|
+
def add_appium_prefix: (untyped capabilities) -> untyped
|
105
|
+
|
106
|
+
private
|
107
|
+
|
108
|
+
def camel_case: (untyped str_or_sym) -> untyped
|
109
|
+
|
110
|
+
def extension_prefix?: (untyped capability_name) -> untyped
|
111
|
+
|
112
|
+
def json_create: (untyped value) -> untyped
|
113
|
+
|
114
|
+
public
|
115
|
+
|
116
|
+
def add_command: (method: untyped, url: untyped, name: untyped) { (?) -> untyped } -> untyped
|
117
|
+
|
118
|
+
def commands: (untyped command) -> untyped
|
119
|
+
|
120
|
+
def status: () -> untyped
|
121
|
+
|
122
|
+
# Perform 'touch' actions for W3C module.
|
123
|
+
# Generate +touch+ pointer action here and users can use this via +driver.action+
|
124
|
+
# - https://www.selenium.dev/documentation/webdriver/actions_api/
|
125
|
+
# - https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/ActionBuilder.html
|
126
|
+
# - https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
|
127
|
+
# - https://www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html
|
128
|
+
#
|
129
|
+
# The pointer type is 'touch' by default in the Appium Ruby client.
|
130
|
+
#
|
131
|
+
# @example
|
132
|
+
#
|
133
|
+
# element = @driver.find_element(:id, "some id")
|
134
|
+
# @driver.action.click(element).perform # The 'click' is a part of 'PointerActions'
|
135
|
+
#
|
136
|
+
def action: (?untyped? _deprecated_async, ?async: bool, ?devices: untyped?) -> untyped
|
137
|
+
|
138
|
+
# Port from MJSONWP
|
139
|
+
def get_timeouts: () -> untyped
|
140
|
+
|
141
|
+
# For Appium
|
142
|
+
# override
|
143
|
+
def element_displayed?: (untyped element) -> untyped
|
144
|
+
|
145
|
+
# For Appium
|
146
|
+
# override
|
147
|
+
def element_attribute: (untyped element, untyped name) -> untyped
|
148
|
+
|
149
|
+
# For Appium
|
150
|
+
alias switch_to_active_element active_element
|
151
|
+
|
152
|
+
# For Appium
|
153
|
+
# @param [Hash] id The id which can get as a response from server
|
154
|
+
# @return [::Appium::Core::Element]
|
155
|
+
def convert_to_element: (untyped id) -> untyped
|
156
|
+
|
157
|
+
# For Appium
|
158
|
+
# override
|
159
|
+
# called in 'extend DriverExtensions::HasNetworkConnection'
|
160
|
+
def network_connection: () -> untyped
|
161
|
+
|
162
|
+
# For Appium
|
163
|
+
# override
|
164
|
+
# called in 'extend DriverExtensions::HasNetworkConnection'
|
165
|
+
def network_connection=: (untyped type) -> untyped
|
166
|
+
|
167
|
+
# For Appium
|
168
|
+
# No implementation for W3C webdriver module
|
169
|
+
# called in 'extend DriverExtensions::HasLocation'
|
170
|
+
def location: () -> untyped
|
171
|
+
|
172
|
+
# For Appium
|
173
|
+
# No implementation for W3C webdriver module
|
174
|
+
def set_location: (untyped lat, untyped lon, ?::Float alt, ?speed: untyped?, ?satellites: untyped?) -> untyped
|
175
|
+
|
176
|
+
#
|
177
|
+
# logs
|
178
|
+
#
|
179
|
+
# For Appium
|
180
|
+
# No implementation for W3C webdriver module
|
181
|
+
def available_log_types: () -> untyped
|
182
|
+
|
183
|
+
# For Appium
|
184
|
+
# No implementation for W3C webdriver module
|
185
|
+
def log: (untyped type) -> untyped
|
186
|
+
|
187
|
+
# For Appium
|
188
|
+
def log_event: (untyped vendor, untyped event) -> untyped
|
189
|
+
|
190
|
+
# For Appium
|
191
|
+
def log_events: (?untyped? type) -> untyped
|
192
|
+
|
193
|
+
def viewport_screenshot: () -> untyped
|
194
|
+
|
195
|
+
def element_screenshot: (untyped element_id) -> untyped
|
196
|
+
|
197
|
+
# for selenium-webdriver compatibility in chrome browser session.
|
198
|
+
# This may be needed in selenium-webdriver 4.8 or over? (around the version)
|
199
|
+
# when a session starts browserName: 'chrome' for bridge.
|
200
|
+
# This method is not only for Android, but also chrome desktop browser as well.
|
201
|
+
# So this bridge itself does not restrict the target module.
|
202
|
+
def send_command: (untyped command_params) -> untyped
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
#
|
5
|
+
# @api private
|
6
|
+
#
|
7
|
+
class DeviceIME
|
8
|
+
@bridge: untyped
|
9
|
+
|
10
|
+
# @private this class is private
|
11
|
+
def initialize: (untyped bridge) -> void
|
12
|
+
|
13
|
+
def activate: (untyped ime_name) -> untyped
|
14
|
+
|
15
|
+
def available_engines: () -> untyped
|
16
|
+
|
17
|
+
def active_engine: () -> untyped
|
18
|
+
|
19
|
+
def activated?: () -> untyped
|
20
|
+
|
21
|
+
def deactivate: () -> untyped
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
APPIUM_EXTRA_FINDERS: { accessibility_id: "accessibility id", image: "-image", custom: "-custom", uiautomator: "-android uiautomator", viewtag: "-android viewtag", data_matcher: "-android datamatcher", view_matcher: "-android viewmatcher", predicate: "-ios predicate string", class_chain: "-ios class chain" }
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module AppManagement
|
6
|
+
include _Bridge
|
7
|
+
|
8
|
+
def app_strings: (?untyped? language) -> untyped
|
9
|
+
|
10
|
+
def background_app: (Integer? duration) -> untyped
|
11
|
+
|
12
|
+
def install_app: (untyped path, Hash[untyped, untyped]? options) -> untyped
|
13
|
+
|
14
|
+
def remove_app: (untyped id, ?keep_data: untyped?, ?timeout: untyped?) -> untyped
|
15
|
+
|
16
|
+
def app_installed?: (untyped app_id) -> untyped
|
17
|
+
|
18
|
+
def activate_app: (untyped app_id) -> untyped
|
19
|
+
|
20
|
+
def terminate_app: (untyped app_id, ?timeout: untyped?) -> untyped
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def options?: (*untyped args) -> untyped
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module AppState
|
6
|
+
STATUS: ::Array[:not_installed | :not_running | :running_in_background_suspended | :running_in_background | :running_in_foreground]
|
7
|
+
|
8
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
9
|
+
|
10
|
+
def app_state: (untyped app_id) -> untyped
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module Context
|
6
|
+
def within_context: (untyped context) ?{ () -> untyped } -> untyped
|
7
|
+
|
8
|
+
def current_context: () -> untyped
|
9
|
+
|
10
|
+
def available_contexts: () -> untyped
|
11
|
+
|
12
|
+
def set_context: (?untyped? context) -> untyped
|
13
|
+
|
14
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module Device
|
6
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
7
|
+
|
8
|
+
def shake: () -> untyped
|
9
|
+
|
10
|
+
def device_time: (?untyped? format) -> untyped
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module DeviceLock
|
6
|
+
def lock: (?untyped? duration) -> untyped
|
7
|
+
|
8
|
+
def device_locked?: () -> untyped
|
9
|
+
|
10
|
+
def unlock: () -> untyped
|
11
|
+
|
12
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module ExecuteDriver
|
6
|
+
class Result
|
7
|
+
@result: untyped
|
8
|
+
|
9
|
+
@logs: untyped
|
10
|
+
|
11
|
+
attr_reader result: untyped
|
12
|
+
|
13
|
+
attr_reader logs: untyped
|
14
|
+
|
15
|
+
def initialize: (untyped response) -> void
|
16
|
+
end
|
17
|
+
|
18
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
19
|
+
|
20
|
+
def execute_driver: (?script: ::String, ?type: ::String, ?timeout_ms: untyped?) -> untyped
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module FileManagement
|
6
|
+
def push_file: (untyped path, untyped filedata) -> untyped
|
7
|
+
|
8
|
+
def pull_file: (untyped path) -> untyped
|
9
|
+
|
10
|
+
def pull_folder: (untyped path) -> untyped
|
11
|
+
|
12
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module ImageComparison
|
6
|
+
MODE: Array[Symbol]
|
7
|
+
|
8
|
+
MATCH_FEATURES: { detector_name: untyped }
|
9
|
+
|
10
|
+
MATCH_TEMPLATE: { visualize: Array[bool] }
|
11
|
+
|
12
|
+
GET_SIMILARITY: { visualize: Array[bool] }
|
13
|
+
|
14
|
+
def match_images_features: (first_image: untyped, second_image: untyped, ?detector_name: ::String, ?match_func: ::String, ?good_matches_factor: untyped?, ?visualize: bool) -> untyped
|
15
|
+
|
16
|
+
def find_image_occurrence: (full_image: untyped, partial_image: untyped, ?visualize: bool, ?threshold: untyped?, ?multiple: untyped?, ?match_neighbour_threshold: untyped?) -> untyped
|
17
|
+
|
18
|
+
def get_images_similarity: (first_image: untyped, second_image: untyped, ?visualize: bool) -> untyped
|
19
|
+
|
20
|
+
def compare_images: (first_image: untyped, second_image: untyped, ?mode: ::Symbol, ?options: untyped?) -> untyped
|
21
|
+
|
22
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module ImeActions
|
6
|
+
include _Bridge
|
7
|
+
|
8
|
+
def ime_activate: (untyped ime_name) -> untyped
|
9
|
+
|
10
|
+
def ime_available_engines: () -> untyped
|
11
|
+
|
12
|
+
def ime_active_engine: () -> untyped
|
13
|
+
|
14
|
+
def ime_activated: () -> untyped
|
15
|
+
|
16
|
+
def ime_deactivate: () -> untyped
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module Keyboard
|
6
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
7
|
+
|
8
|
+
def hide_keyboard: (?untyped? close_key, ?untyped? strategy) -> untyped
|
9
|
+
|
10
|
+
def is_keyboard_shown: () -> untyped
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module KeyEvent
|
6
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
7
|
+
|
8
|
+
def keyevent: (untyped key, ?untyped? metastate) -> untyped
|
9
|
+
|
10
|
+
def press_keycode: (untyped key, ?metastate: untyped, ?flags: untyped) -> untyped
|
11
|
+
|
12
|
+
def long_press_keycode: (untyped key, ?metastate: untyped, ?flags: untyped) -> untyped
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module Orientation
|
6
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
7
|
+
|
8
|
+
def screen_orientation=: (untyped orientation) -> untyped
|
9
|
+
|
10
|
+
def screen_orientation: () -> untyped
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
class ScreenRecord
|
6
|
+
@upload_option: untyped
|
7
|
+
|
8
|
+
attr_reader upload_option: untyped
|
9
|
+
|
10
|
+
METHOD: ::Array["POST" | "PUT"]
|
11
|
+
|
12
|
+
def initialize: (?remote_path: untyped?, ?user: untyped?, ?pass: untyped?, ?method: ::String, ?file_field_name: untyped?, ?form_fields: untyped?, ?headers: untyped?, ?force_restart: untyped?) -> void
|
13
|
+
|
14
|
+
module Command
|
15
|
+
def stop_recording_screen: (?remote_path: untyped?, ?user: untyped?, ?pass: untyped?, ?method: ::String, ?file_field_name: untyped?, ?form_fields: untyped?, ?headers: untyped?) -> untyped
|
16
|
+
|
17
|
+
def stop_and_save_recording_screen: (untyped file_path) -> untyped
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Base
|
4
|
+
module Device
|
5
|
+
module Setting
|
6
|
+
def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
|
7
|
+
|
8
|
+
def get_settings: () -> untyped
|
9
|
+
|
10
|
+
def update_settings: (untyped settings) -> untyped
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
module Error
|
4
|
+
class CoreError < StandardError
|
5
|
+
end
|
6
|
+
|
7
|
+
class NotSupportedAppiumServer < CoreError
|
8
|
+
end
|
9
|
+
|
10
|
+
class NoSuchElementError < CoreError
|
11
|
+
end
|
12
|
+
|
13
|
+
class UnsupportedOperationError < CoreError
|
14
|
+
end
|
15
|
+
|
16
|
+
class ServerError < CoreError
|
17
|
+
end
|
18
|
+
|
19
|
+
class SessionNotCreatedError < CoreError
|
20
|
+
end
|
21
|
+
|
22
|
+
class ArgumentError < CoreError
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Appium
|
2
|
+
module Core
|
3
|
+
class Logs
|
4
|
+
@bridge: untyped
|
5
|
+
|
6
|
+
def initialize: (untyped bridge) -> void
|
7
|
+
|
8
|
+
def get: (untyped type) -> untyped
|
9
|
+
|
10
|
+
def available_types: () -> untyped
|
11
|
+
|
12
|
+
def event: (vendor: untyped, event: untyped) -> untyped
|
13
|
+
|
14
|
+
def event=: (untyped log_event) -> untyped
|
15
|
+
|
16
|
+
def events: (?untyped? type) -> untyped
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Appium
|
2
|
+
module Logger
|
3
|
+
self.@logger: untyped
|
4
|
+
|
5
|
+
extend Forwardable
|
6
|
+
|
7
|
+
attr_writer self.logger: untyped
|
8
|
+
|
9
|
+
def self.debug: (String message) -> untyped
|
10
|
+
|
11
|
+
def self.info: (String message) -> untyped
|
12
|
+
|
13
|
+
def self.warn: (String message) -> untyped
|
14
|
+
|
15
|
+
def self.error: (String message) -> untyped
|
16
|
+
|
17
|
+
def self.fatal: (String message) -> untyped
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def self.logger: () -> untyped
|
22
|
+
end
|
23
|
+
end
|