forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.rbs
More file actions
66 lines (37 loc) · 1.87 KB
/
Copy pathoptions.rbs
File metadata and controls
66 lines (37 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module Selenium
module WebDriver
class Options
@options: Hash[untyped, untyped]
W3C_OPTIONS: Array[Symbol]
GRID_OPTIONS: Array[Symbol]
BROWSER: Symbol
KEY: untyped
CAPABILITIES: Hash[String | Symbol, String | Numeric | bool?]
attr_reader self.driver_path: String
def self.chrome: (**String | Symbol | Integer | bool opts) -> Chrome::Options
def self.firefox: (**String | Symbol | Integer | bool opts) -> Firefox::Options
def self.ie: (**String | Symbol | Integer | bool opts) -> IE::Options
alias self.internet_explorer self.ie
def self.edge: (**String | Symbol | Integer | bool opts) -> Edge::Options
alias self.microsoftedge self.edge
def self.safari: (**String | Symbol | Integer | bool opts) -> Safari::Options
def self.set_capabilities: () -> untyped
attr_accessor options: Hash[String | Symbol, String | Numeric | bool?]
def initialize: (Hash[String | Symbol, String | Numeric | bool] opts) -> void
def add_option: (String | Symbol name, String | Numeric | bool? value) -> (String | Numeric | bool)?
def ==: (untyped other) -> bool
alias eql? ==
def as_json: (*untyped) -> untyped
private
def w3c?: (untyped key) -> untyped
def process_w3c_options: (untyped options) -> untyped
def process_browser_options: (untyped _browser_options) -> nil
def camelize?: (untyped _key) -> true
def generate_as_json: (Array[untyped] | Hash[untyped, untyped] | String | Symbol value, ?camelize_keys: bool)
-> (Array[untyped] | Hash[untyped, untyped] | String | Symbol)
def process_json_hash: (Hash[untyped, untyped] value, bool camelize_keys) -> Hash[untyped, untyped]
def convert_json_key: (String | Symbol key, camelize: bool) -> String
def camel_case: (String str) -> String
end
end
end