forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rb] Expand RBS typing support by replacing untypes with precise typi…
…ng (SeleniumHQ#13709) * Update atoms.rb signature types * Start adding bidi types * Extended types of devtools and edge * Added firefox and safari types and removed unused signature * Update chrome features with type and remove Safari error * Update server and remove unused signature * Expand Server type signature * expanding type support on options * Expand options types * add extra options support * Expand options support --------- Co-authored-by: aguspe <[email protected]>
- Loading branch information
1 parent
1e99cb3
commit ddb7ee5
Showing
12 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
module Selenium | ||
module WebDriver | ||
class BiDi | ||
@ws: untyped | ||
@ws: WebSocketConnection | ||
|
||
@session: untyped | ||
@session: Session | ||
|
||
def initialize: (url: untyped) -> void | ||
def initialize: (url: String) -> void | ||
|
||
def close: () -> untyped | ||
def close: () -> nil | ||
|
||
def callbacks: () -> untyped | ||
def callbacks: () -> Hash[untyped, untyped] | ||
|
||
def session: () -> untyped | ||
def session: () -> Session | ||
|
||
def send_cmd: (untyped method, **untyped params) -> untyped | ||
|
||
def error_message: (untyped message) -> ::String | ||
def error_message: (Hash[String,String] message) -> String | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module Selenium | ||
module WebDriver | ||
module Edge | ||
self.@path: untyped | ||
@path: String? | ||
|
||
def self.path=: (untyped path) -> untyped | ||
def self.path=: (String path) -> String | ||
|
||
def self.path: () -> untyped | ||
def self.path: () -> String? | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
module Selenium | ||
module WebDriver | ||
module Safari | ||
self.@use_technology_preview: untyped | ||
@use_technology_preview: bool? | ||
@path: String? | ||
|
||
self.@path: untyped | ||
|
||
attr_accessor self.use_technology_preview: untyped | ||
attr_accessor self.use_technology_preview: bool | ||
|
||
def self.technology_preview: () -> String | ||
|
||
def self.technology_preview!: () -> untyped | ||
def self.technology_preview!: () -> bool | ||
|
||
def self.technology_preview?: () -> untyped | ||
def self.technology_preview?: () -> bool | ||
|
||
def self.path=: (untyped path) -> untyped | ||
def self.path=: (String) -> String | ||
|
||
def self.path: () -> untyped | ||
def self.path: () -> String | ||
end | ||
end | ||
end |
Empty file.
Empty file.