Skip to content

Commit 84e91e8

Browse files
committed
Reduce steep issues from 87 to 65
1 parent a98248d commit 84e91e8

File tree

7 files changed

+82
-0
lines changed

7 files changed

+82
-0
lines changed

rb/sig/lib/selenium/webdriver/bidi.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ module Selenium
1111

1212
def callbacks: () -> Hash[untyped, untyped]
1313

14+
def remove_callback: -> untyped
15+
1416
def session: () -> Session
1517

1618
def send_cmd: (untyped method, **untyped params) -> untyped
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class LogHandler
5+
@bidi: untyped
6+
7+
@log_entry_subscribed: untyped
8+
9+
ConsoleLogEntry: untyped
10+
11+
JavaScriptLogEntry: untyped
12+
13+
def initialize: (untyped bidi) -> void
14+
15+
# @return [int] id of the handler
16+
def add_message_handler: (untyped type) { (untyped) -> untyped } -> untyped
17+
18+
# @param [int] id of the handler previously added
19+
def remove_message_handler: (untyped id) -> untyped
20+
21+
private
22+
23+
def subscribe_log_entry: () -> untyped
24+
25+
def unsubscribe_log_entry: () -> untyped
26+
end
27+
end
28+
end
29+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class Struct < ::Struct
5+
def self.new: (*untyped args) { (?) -> untyped } -> void
6+
7+
def self.camel_to_snake: (String camel_str) -> String
8+
end
9+
end
10+
end
11+
end

rb/sig/lib/selenium/webdriver/common/websocket_connection.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module Selenium
3535

3636
def initialize: (url: untyped) -> void
3737

38+
def add_callback: -> untyped
39+
3840
def close: () -> untyped
3941

4042
def callbacks: () -> untyped
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module Selenium
2+
module WebDriver
3+
module Remote
4+
class BiDiBridge < Bridge
5+
@bidi: untyped
6+
7+
attr_reader bidi: untyped
8+
9+
def create_session: (untyped capabilities) -> untyped
10+
11+
def quit: () -> untyped
12+
13+
def close: () -> untyped
14+
end
15+
end
16+
end
17+
end

rb/sig/lib/selenium/webdriver/remote/bridge.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ module Selenium
3232

3333
def initialize: (url: String | URI, ?http_client: untyped?) -> void
3434

35+
def bidi: -> untyped
36+
3537
def cancel_fedcm_dialog: -> nil
3638

3739
def click_fedcm_dialog_button: -> nil
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module Selenium
2+
module WebDriver
3+
module Remote
4+
class Bridge
5+
class LocatorConverter
6+
ESCAPE_CSS_REGEXP: ::Regexp
7+
8+
UNICODE_CODE_POINT: 30
9+
10+
def convert: (untyped how, untyped what) -> ::Array[untyped]
11+
12+
private
13+
14+
def escape_css: (untyped string) -> untyped
15+
end
16+
end
17+
end
18+
end
19+
end

0 commit comments

Comments
 (0)