File tree Expand file tree Collapse file tree 6 files changed +21
-23
lines changed
rb/sig/lib/selenium/webdriver Expand file tree Collapse file tree 6 files changed +21
-23
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ module Selenium
77
88 def initialize : (url: String) -> void
99
10+ def add_callback : -> Integer
11+
1012 def close : () -> nil
1113
1214 def callbacks : () -> Hash[untyped , untyped ]
1315
14- def remove_callback : -> untyped
16+ def remove_callback : -> Array[Integer]
1517
1618 def session : () -> Session
1719
18- def send_cmd : (untyped method, **untyped params) -> untyped
20+ def send_cmd : (String method, **untyped params) -> untyped
1921
2022 def error_message : (Hash[String,String] message) -> String
2123 end
Original file line number Diff line number Diff line change @@ -2,27 +2,25 @@ module Selenium
22 module WebDriver
33 class BiDi
44 class LogHandler
5- @bidi: untyped
5+ @bidi: BiDi
66
7- @log_entry_subscribed: untyped
7+ @log_entry_subscribed: bool
88
9- ConsoleLogEntry: untyped
9+ ConsoleLogEntry: Struct
1010
11- JavaScriptLogEntry: untyped
11+ JavaScriptLogEntry: Struct
1212
13- def initialize : (untyped bidi) -> void
13+ def initialize : (BiDi bidi) -> void
1414
15- # @return [int] id of the handler
16- def add_message_handler : (untyped type ) { (untyped ) -> untyped } -> untyped
15+ def add_message_handler : (String type ) { (untyped ) -> untyped } -> Integer
1716
18- # @param [int] id of the handler previously added
19- def remove_message_handler : (untyped id) -> untyped
17+ def remove_message_handler : (Integer id) -> false
2018
2119 private
2220
23- def subscribe_log_entry : () -> untyped
21+ def subscribe_log_entry : () -> false
2422
25- def unsubscribe_log_entry : () -> untyped
23+ def unsubscribe_log_entry : () -> false
2624 end
2725 end
2826 end
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ module Selenium
3535
3636 def initialize : (url: untyped ) -> void
3737
38- def add_callback : -> untyped
39-
4038 def close : () -> untyped
4139
4240 def callbacks : () -> untyped
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ module Selenium
66
77 attr_reader bidi: untyped
88
9- def create_session : (untyped capabilities) -> untyped
9+ def create_session : (Hash[Symbol, String] capabilities) -> BiDi
1010
11- def quit : () -> untyped
11+ def quit : () -> nil
1212
13- def close : () -> untyped
13+ def close : () -> nil
1414 end
1515 end
1616 end
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ module Selenium
3232
3333 def initialize : (url: String | URI, ?http_client: untyped ?) -> void
3434
35- def bidi : -> untyped
35+ def bidi : -> WebDriver::Error::WebDriverError
3636
3737 def cancel_fedcm_dialog : -> nil
3838
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ module Selenium
33 module Remote
44 class Bridge
55 class LocatorConverter
6- ESCAPE_CSS_REGEXP: :: Regexp
6+ ESCAPE_CSS_REGEXP: Regexp
77
8- UNICODE_CODE_POINT: 30
8+ UNICODE_CODE_POINT: Integer
99
10- def convert : (untyped how, untyped what) -> :: Array[untyped ]
10+ def convert : (String | Symbol how, String what) -> Array[String ]
1111
1212 private
1313
14- def escape_css : (untyped string) -> untyped
14+ def escape_css : (String string) -> String
1515 end
1616 end
1717 end
You can’t perform that action at this time.
0 commit comments