Skip to content

Commit

Permalink
Expanded the features RBS for chrome and chromium, and added has_cast…
Browse files Browse the repository at this point in the history
…ing and has_launching.rbs
  • Loading branch information
Pexpe committed Oct 8, 2023
1 parent 1be49a3 commit 820a474
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rb/sig/lib/selenium/webdriver/chrome/features.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Selenium

CHROME_COMMANDS: { get_cast_sinks: ::Array[:get | "session/:session_id/goog/cast/get_sinks"], set_cast_sink_to_use: ::Array[:post | "session/:session_id/goog/cast/set_sink_to_use"], start_cast_tab_mirroring: ::Array[:post | "session/:session_id/goog/cast/start_tab_mirroring"], start_cast_desktop_mirroring: ::Array[:post | "session/:session_id/goog/cast/start_desktop_mirroring"], get_cast_issue_message: ::Array[:get | "session/:session_id/goog/cast/get_issue_message"], stop_casting: ::Array[:post | "session/:session_id/goog/cast/stop_casting"], send_command: ::Array[:post | "session/:session_id/goog/cdp/execute"] }

def commands: (untyped command) -> untyped
def commands: (Symbol command) -> Array[Symbol | String]
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions rb/sig/lib/selenium/webdriver/chromium/features.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module Selenium
module Features
CHROMIUM_COMMANDS: { launch_app: ::Array[:post | "session/:session_id/chromium/launch_app"], get_network_conditions: ::Array[:get | "session/:session_id/chromium/network_conditions"], set_network_conditions: ::Array[:post | "session/:session_id/chromium/network_conditions"], delete_network_conditions: ::Array[:delete | "session/:session_id/chromium/network_conditions"], set_permission: ::Array[:post | "session/:session_id/permissions"], get_available_log_types: ::Array[:get | "session/:session_id/se/log/types"], get_log: ::Array[:post | "session/:session_id/se/log"] }

def commands: (untyped command) -> untyped
def commands: (Symbol command) -> Array[Symbol | String]

def launch_app: (untyped id) -> untyped
def launch_app: (String id) -> String

def cast_sinks: () -> untyped

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module Selenium
module WebDriver
module DriverExtensions
module HasCasting
def cast_sinks: () -> Array[String]

def cast_sink_to_use=: (String name) -> untyped

def start_cast_tab_mirroring: (String name) -> untyped

def start_cast_desktop_mirroring: (String name) -> untyped

def cast_issue_message: () -> String

def stop_casting: (String name) -> void
end
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Selenium
module WebDriver
module DriverExtensions
module HasLaunching
def launch_app: (String id) -> String
end
end
end
end

0 comments on commit 820a474

Please sign in to comment.