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.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile +1 -1
  4. data/README.md +26 -6
  5. data/appium_lib_core.gemspec +1 -1
  6. data/lib/appium_lib_core/common/base/bidi_bridge.rb +96 -0
  7. data/lib/appium_lib_core/common/base/driver.rb +28 -2
  8. data/lib/appium_lib_core/common/base.rb +2 -1
  9. data/lib/appium_lib_core/common/device/app_management.rb +1 -1
  10. data/lib/appium_lib_core/common/device/keyboard.rb +1 -1
  11. data/lib/appium_lib_core/driver.rb +2 -2
  12. data/lib/appium_lib_core/version.rb +2 -2
  13. data/sig/gems/em.rbs +5 -0
  14. data/sig/gems/faye.rbs +10 -0
  15. data/sig/gems/selenium/atoms.rbs +16 -0
  16. data/sig/gems/selenium/bidi/browsing_context.rbs +27 -0
  17. data/sig/gems/selenium/bidi/browsing_context_info.rbs +25 -0
  18. data/sig/gems/selenium/bidi/log_inspector.rbs +33 -0
  19. data/sig/gems/selenium/bidi/navigate_result.rbs +17 -0
  20. data/sig/gems/selenium/bidi/session.rbs +19 -0
  21. data/sig/gems/selenium/bridge.rbs +275 -0
  22. data/sig/gems/selenium/chrome/features.rbs +16 -0
  23. data/sig/gems/selenium/chromium/features.rbs +42 -0
  24. data/sig/gems/selenium/common/element.rbs +65 -0
  25. data/sig/gems/selenium/edge/features.rbs +17 -0
  26. data/sig/gems/selenium/error.rbs +9 -0
  27. data/sig/gems/selenium/event_firing_bridge.rbs +47 -0
  28. data/sig/gems/selenium/firefox/driver.rbs +21 -0
  29. data/sig/gems/selenium/firefox/extension.rbs +31 -0
  30. data/sig/gems/selenium/firefox/features.rbs +25 -0
  31. data/sig/gems/selenium/firefox/options.rbs +8 -0
  32. data/sig/gems/selenium/firefox/profile.rbs +77 -0
  33. data/sig/gems/selenium/firefox/profiles_ini.rbs +23 -0
  34. data/sig/gems/selenium/firefox/service.rbs +6 -0
  35. data/sig/gems/selenium/firefox/util.rbs +12 -0
  36. data/sig/gems/selenium/ie/features.rbs +13 -0
  37. data/sig/gems/selenium/interactions.rbs +11 -0
  38. data/sig/gems/selenium/interfaces/commands.rbs +3 -0
  39. data/sig/gems/selenium/interfaces/commands_list.rbs +3 -0
  40. data/sig/gems/selenium/interfaces/devtools.rbs +3 -0
  41. data/sig/gems/selenium/interfaces/driver.rbs +17 -0
  42. data/sig/gems/selenium/interfaces/features.rbs +3 -0
  43. data/sig/gems/selenium/local_driver.rbs +11 -0
  44. data/sig/gems/selenium/platform.rbs +6 -0
  45. data/sig/gems/selenium/profile_helper.rbs +6 -0
  46. data/sig/gems/selenium/{default.rbs → remote/bridge/commands.rbs} +2 -3
  47. data/sig/gems/selenium/{capabilities.rbs → remote/capabilities.rbs} +2 -2
  48. data/sig/gems/selenium/remote/http/common.rbs +39 -0
  49. data/sig/gems/selenium/remote/http/default.rbs +48 -0
  50. data/sig/gems/selenium/{common.rbs → remote/response.rbs} +1 -3
  51. data/sig/gems/selenium/safari/features.rbs +23 -0
  52. data/sig/gems/selenium/search_context.rbs +17 -0
  53. data/sig/interfaces/bridge.rbs +5 -0
  54. data/sig/lib/appium_lib_core/android/device/auth_finger_print.rbs +13 -0
  55. data/sig/lib/appium_lib_core/android/device/clipboard.rbs +13 -0
  56. data/sig/lib/appium_lib_core/android/device/emulator.rbs +23 -0
  57. data/sig/lib/appium_lib_core/android/device/network.rbs +13 -0
  58. data/sig/lib/appium_lib_core/android/device/performance.rbs +13 -0
  59. data/sig/lib/appium_lib_core/android/device/screen.rbs +11 -0
  60. data/sig/lib/appium_lib_core/android/device.rbs +13 -0
  61. data/sig/lib/appium_lib_core/android/espresso/bridge.rbs +11 -0
  62. data/sig/lib/appium_lib_core/android/uiautomator1/bridge.rbs +11 -0
  63. data/sig/lib/appium_lib_core/android/uiautomator2/bridge.rbs +11 -0
  64. data/sig/lib/appium_lib_core/android/uiautomator2/device/battery.rbs +13 -0
  65. data/sig/lib/appium_lib_core/common/base/bidi_bridge.rbs +25 -0
  66. data/sig/lib/appium_lib_core/common/base/bridge.rbs +206 -0
  67. data/sig/lib/appium_lib_core/common/base/device_ime.rbs +25 -0
  68. data/sig/lib/appium_lib_core/common/base/remote_status.rbs +2 -0
  69. data/sig/lib/appium_lib_core/common/base/screenshot.rbs +2 -0
  70. data/sig/lib/appium_lib_core/common/base/search_context.rbs +9 -0
  71. data/sig/lib/appium_lib_core/common/command.rbs +13 -0
  72. data/sig/lib/appium_lib_core/common/device/app_management.rbs +29 -0
  73. data/sig/lib/appium_lib_core/common/device/app_state.rbs +15 -0
  74. data/sig/lib/appium_lib_core/common/device/clipboard_content_type.rbs +11 -0
  75. data/sig/lib/appium_lib_core/common/device/context.rbs +19 -0
  76. data/sig/lib/appium_lib_core/common/device/device.rbs +15 -0
  77. data/sig/lib/appium_lib_core/common/device/device_lock.rbs +17 -0
  78. data/sig/lib/appium_lib_core/common/device/execute_driver.rbs +25 -0
  79. data/sig/lib/appium_lib_core/common/device/file_management.rbs +17 -0
  80. data/sig/lib/appium_lib_core/common/device/image_comparison.rbs +27 -0
  81. data/sig/lib/appium_lib_core/common/device/ime_actions.rbs +21 -0
  82. data/sig/lib/appium_lib_core/common/device/keyboard.rbs +15 -0
  83. data/sig/lib/appium_lib_core/common/device/keyevent.rbs +17 -0
  84. data/sig/lib/appium_lib_core/common/device/orientation.rbs +15 -0
  85. data/sig/lib/appium_lib_core/common/device/screen_record.rbs +23 -0
  86. data/sig/lib/appium_lib_core/common/device/setting.rbs +15 -0
  87. data/sig/lib/appium_lib_core/common/error.rbs +26 -0
  88. data/sig/lib/appium_lib_core/common/log.rbs +19 -0
  89. data/sig/lib/appium_lib_core/common/logger.rbs +23 -0
  90. data/sig/lib/appium_lib_core/common/wait/timer.rbs +15 -0
  91. data/sig/lib/appium_lib_core/common/ws/websocket.rbs +103 -0
  92. data/sig/lib/appium_lib_core/driver.rbs +5 -5
  93. data/sig/lib/appium_lib_core/element.rbs +24 -0
  94. data/sig/lib/appium_lib_core/ios/clipboard.rbs +17 -0
  95. data/sig/lib/appium_lib_core/ios/device.rbs +12 -0
  96. data/sig/lib/appium_lib_core/ios/xcuitest/bridge.rbs +11 -0
  97. data/sig/lib/appium_lib_core/ios/xcuitest/device/performance.rbs +13 -0
  98. data/sig/lib/appium_lib_core/ios/xcuitest/device/screen.rbs +15 -0
  99. data/sig/lib/appium_lib_core/ios/xcuitest/device.rbs +14 -0
  100. data/sig/lib/appium_lib_core/mac2/bridge.rbs +9 -0
  101. data/sig/lib/appium_lib_core/mac2/device/screen.rbs +13 -0
  102. data/sig/lib/appium_lib_core/mac2/device.rbs +11 -0
  103. data/sig/lib/appium_lib_core/support/event_firing_bridge.rbs +21 -0
  104. data/sig/lib/appium_lib_core/windows/bridge.rbs +9 -0
  105. data/sig/lib/appium_lib_core/windows/device/screen.rbs +13 -0
  106. data/sig/lib/appium_lib_core/windows/device.rbs +11 -0
  107. metadata +105 -10
@@ -2,6 +2,8 @@ module Appium
2
2
  module Core
3
3
  class Base
4
4
  module TakesScreenshot
5
+ include _Bridge
6
+
5
7
  def save_screenshot: (untyped png_path) -> untyped
6
8
 
7
9
  def screenshot_as: (untyped format) -> untyped
@@ -0,0 +1,9 @@
1
+ module Appium
2
+ module Core
3
+ class Base
4
+ module SearchContext
5
+ APPIUM_EXTRA_FINDERS: { Symbol => String }
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ module Appium
2
+ module Core
3
+ module Commands
4
+ COMMAND: Hash[Symbol, Array[Symbol | String]]
5
+
6
+ COMMAND_ANDROID: Hash[Symbol, Array[Symbol | String]]
7
+
8
+ COMMAND_IOS: Hash[Symbol, Array[Symbol | String]]
9
+
10
+ COMMANDS: untyped
11
+ end
12
+ end
13
+ end
@@ -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,11 @@
1
+ module Appium
2
+ module Core
3
+ class Base
4
+ module Device
5
+ module Clipboard
6
+ CONTENT_TYPE: ::Array[:plaintext | :image | :url]
7
+ end
8
+ end
9
+ end
10
+ end
11
+ 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
@@ -0,0 +1,15 @@
1
+ module Appium
2
+ module Core
3
+ module Wait
4
+ class Timer
5
+ @end_time: untyped
6
+
7
+ def initialize: (Numeric timeout) -> void
8
+
9
+ def timeout?: () -> bool
10
+
11
+ def current_time: () -> Float
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,103 @@
1
+ module Appium
2
+ module Core
3
+ class WebSocket
4
+ @endpoint: untyped
5
+
6
+ @ws_thread: untyped
7
+
8
+ @client: untyped
9
+
10
+ attr_reader client: untyped
11
+
12
+ attr_reader endpoint: untyped
13
+
14
+ # A websocket client based on Faye::WebSocket::Client .
15
+ # Uses eventmachine to wait response from the peer. The eventmachine works on a thread. The thread will exit
16
+ # with close method.
17
+ #
18
+ # @param [String] url URL to establish web socket connection. If the URL has no port, the client use:
19
+ # +ws+: 80, +wss+: 443 ports.
20
+ # @param [Array] protocols An array of strings representing acceptable subprotocols for use over the socket.
21
+ # The driver will negotiate one of these to use via the Sec-WebSocket-Protocol header
22
+ # if supported by the other peer. Default is nil.
23
+ # The protocols is equal to https://github.com/faye/faye-websocket-ruby/ 's one for client.
24
+ # @param [Hash] options Initialize options for Faye client. Read https://github.com/faye/faye-websocket-ruby#initialization-options
25
+ # for more details. Default is +{}+.
26
+ #
27
+ # @example
28
+ # ws = WebSocket.new(url: "ws://#{host}:#{port}/ws/session/#{@session_id}/appium/device/logcat")
29
+ # ws.client #=> #<Faye::WebSocket::Client:.....> # An instance of Faye::WebSocket::Client
30
+ # ws.message 'some message' #=> nil. Send a message to the peer.
31
+ # ws.close #=> Kill the thread which run a eventmachine.
32
+ #
33
+ def initialize: (url: untyped, ?protocols: untyped?, ?options: ::Hash[untyped, untyped]) -> void
34
+
35
+ #
36
+ # Sends a ping frame with an optional message and fires the callback when a matching pong is received.
37
+ #
38
+ # @param [String] message A message to send ping.
39
+ # @param [Block] callback
40
+ #
41
+ # @example
42
+ # ws = WebSocket.new(url: "ws://#{host}:#{port}/ws/session/#{@session_id}/appium/device/logcat")
43
+ # ws.ping 'message'
44
+ #
45
+ def ping: (untyped message) { (?) -> untyped } -> untyped
46
+
47
+ # Accepts either a String or an Array of byte-sized integers and sends a text or binary message over the connection
48
+ # to the other peer; binary data must be encoded as an Array.
49
+ #
50
+ # @param [String|Array] message A message to send a text or binary message over the connection
51
+ #
52
+ # @example
53
+ # ws = WebSocket.new(url: "ws://#{host}:#{port}/ws/session/#{@session_id}/appium/device/logcat")
54
+ # ws.send 'happy testing'
55
+ #
56
+ def send: (untyped message) -> untyped
57
+
58
+ # Closes the connection, sending the given status code and reason text, both of which are optional.
59
+ #
60
+ # @param [Integer] code A status code to send to the peer with close signal. Default is nil.
61
+ # @param [String] reason A reason to send to the peer with close signal. Default is 'close from ruby_lib_core'.
62
+ #
63
+ # @example
64
+ # ws = WebSocket.new(url: "ws://#{host}:#{port}/ws/session/#{@session_id}/appium/device/logcat")
65
+ # ws.close reason: 'a something special reason'
66
+ #
67
+ def close: (?code: untyped?, ?reason: ::String) -> untyped
68
+
69
+ #
70
+ # Fires when the socket connection is established. Event has no attributes.
71
+ #
72
+ # Default is just put a debug message.
73
+ #
74
+ def handle_open: () -> untyped
75
+
76
+ #
77
+ # Fires when the socket receives a message. The message gas one +data+ attribute and this method can handle the data.
78
+ # The data is either a String (for text frames) or an Array of byte-sized integers (for binary frames).
79
+ #
80
+ # Default is just put a debug message and puts the result on standard out.
81
+ # In general, users should override this handler to handle messages from the peer.
82
+ #
83
+ def handle_message_data: (untyped data) -> untyped
84
+
85
+ #
86
+ # Fires when there is a protocol error due to bad data sent by the other peer.
87
+ # This event is purely informational, you do not need to implement error recovery.
88
+ #
89
+ # Default is just put a error message.
90
+ #
91
+ def handle_error: () -> untyped
92
+
93
+ #
94
+ # Fires when either the client or the server closes the connection. The method gets +code+ and +reason+ attributes.
95
+ # They expose the status code and message sent by the peer that closed the connection.
96
+ #
97
+ # Default is just put a error message.
98
+ # The methods also clear +client+ instance and stop the eventmachine which is called in initialising this class.
99
+ #
100
+ def handle_close: (untyped code, untyped reason) -> untyped
101
+ end
102
+ end
103
+ end
@@ -109,7 +109,7 @@ module Appium
109
109
 
110
110
  attr_reader enable_idempotency_header: bool
111
111
 
112
- attr_reader device: Symbol
112
+ attr_reader device: Symbol | String
113
113
 
114
114
  attr_reader automation_name: Symbol
115
115
 
@@ -164,7 +164,7 @@ module Appium
164
164
 
165
165
  private
166
166
 
167
- def convert_to_symbol: (untyped? value) -> Symbol
167
+ def convert_to_symbol: (untyped? value) -> Symbol?
168
168
 
169
169
  def extend_for: (device: Symbol | String, automation_name: Symbol) -> self
170
170
 
@@ -183,10 +183,10 @@ module Appium
183
183
  def set_app_path: () -> String?
184
184
 
185
185
  def set_appium_lib_specific_values: (
186
- Hash[Symbol, Symbol | String | Hash[Symbol, String | Numeric] | Numeric]? appium_lib_opts
187
- ) -> self
186
+ Hash[Symbol, String] appium_lib_opts
187
+ ) -> bool
188
188
 
189
- def set_appium_device: () -> String
189
+ def set_appium_device: () -> Symbol
190
190
 
191
191
  def set_automation_name: () -> Symbol?
192
192
 
@@ -0,0 +1,24 @@
1
+ module Appium
2
+ module Core
3
+ class Element < ::Selenium::WebDriver::Element
4
+ include ::Appium::Core::Base::TakesScreenshot
5
+
6
+ attr_reader id: untyped
7
+
8
+ def method_missing: (untyped method_name, *untyped args) { (?) -> untyped } -> (nil | untyped)
9
+
10
+ def respond_to_missing?: (*untyped) -> true
11
+
12
+ # Alias for type
13
+ alias type send_keys
14
+
15
+ def location_rel: (untyped driver) -> untyped
16
+
17
+ def screenshot: () -> untyped
18
+
19
+ def screenshot_as: (untyped format) -> untyped
20
+
21
+ def save_screenshot: (untyped png_path) -> untyped
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,17 @@
1
+ module Appium
2
+ module Core
3
+ module Ios
4
+ module Device
5
+ module Clipboard
6
+ include _Bridge
7
+
8
+ def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
9
+
10
+ def self.add_methods: () -> untyped
11
+
12
+ def self.touch_id: -> untyped
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ module Appium
2
+ module Core
3
+ module Ios
4
+ module Device
5
+ include _Bridge
6
+ extend Forwardable
7
+
8
+ def self.toggle_touch_id_enrollment: -> untyped
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ module Appium
2
+ module Core
3
+ module Ios
4
+ module Xcuitest
5
+ module Bridge
6
+ def self.for: (untyped target) -> untyped
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ module Appium
2
+ module Core
3
+ module Ios
4
+ module Xcuitest
5
+ module Device
6
+ module Performance
7
+ def self.add_methods: () -> untyped
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ module Appium
2
+ module Core
3
+ module Ios
4
+ module Xcuitest
5
+ module Device
6
+ module Screen
7
+ def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped
8
+
9
+ def self.add_methods: () -> untyped
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ module Appium
2
+ module Core
3
+ module Ios
4
+ module Xcuitest
5
+ module Device
6
+ extend Forwardable
7
+ include _Bridge
8
+
9
+ def self.extended: (untyped _mod) -> untyped
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end