Skip to content

Commit 8cadb71

Browse files
committed
Skip firefox test
1 parent f878c80 commit 8cadb71

File tree

22 files changed

+63
-329
lines changed

22 files changed

+63
-329
lines changed

rb/sig/lib/selenium/webdriver.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Selenium::WebDriver
2-
def self.logger: (**nil) -> Selenium::WebDriver::Logger
2+
def self.logger: (**untyped) -> Selenium::WebDriver::Logger
33
end
Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,5 @@
1-
module Selenium
2-
module WebDriver
3-
class ActionBuilder
4-
@bridge: Remote::Bridge
1+
class Selenium::WebDriver::ActionBuilder
2+
def initialize: (Selenium::WebDriver::Remote::Bridge, ?devices: Array[untyped], ?async: bool, ?duration: Integer) -> void
53

6-
@duration: Integer
7-
8-
@async: bool
9-
10-
@devices: Array[Interactions::InputDevice]
11-
12-
include KeyActions
13-
14-
include PointerActions
15-
16-
include WheelActions
17-
18-
attr_reader devices: Array[Interactions::InputDevice]
19-
20-
def initialize: (Remote::Bridge bridge, ?devices: Array[Interactions::InputDevice], ?async: bool, ?duration: ::Integer) -> void
21-
22-
def add_pointer_input: (Symbol kind, String name) -> Interactions::InputDevice
23-
24-
def add_key_input: (String name) -> Interactions::InputDevice
25-
26-
def add_wheel_input: (String name) -> Interactions::InputDevice
27-
28-
def device: (?name: String?, ?type: String?) -> Interactions::InputDevice?
29-
30-
def pointer_inputs: () -> Array[Interactions::InputDevice]
31-
32-
def key_inputs: () -> Array[Interactions::InputDevice]
33-
34-
def wheel_inputs: () -> Array[Interactions::InputDevice]
35-
36-
def pause: (?device: Interactions::InputDevice?, ?duration: Float) -> self
37-
38-
def pauses: (?device: Interactions::InputDevice?, ?number: Integer?, ?duration: Float) -> self
39-
40-
def perform: () -> nil
41-
42-
def clear_all_actions: () -> Array[Selenium::WebDriver::Interactions::InputDevice]
43-
44-
def release_actions: () -> untyped
45-
46-
private
47-
48-
def tick: (*Interactions::InputDevice action_devices) -> Array[Interactions::InputDevice]?
49-
50-
def add_input: (Interactions::InputDevice | Symbol | interned device) -> Interactions::InputDevice
51-
end
52-
end
4+
def clear_all_actions: () -> Array[untyped]
535
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class Selenium::WebDriver::Driver
2-
def quit: () -> nil
2+
def action: (**untyped) -> Selenium::WebDriver::ActionBuilder
33
end
Lines changed: 5 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,9 @@
1-
module Selenium
2-
module WebDriver
3-
class Element
4-
ELEMENT_KEY: ::String
1+
class Selenium::WebDriver::Element
2+
def initialize: (Selenium::WebDriver::Remote::Bridge, String) -> void
53

6-
include SearchContext
4+
def rect: () -> Selenium::WebDriver::Rectangle
75

8-
include TakesScreenshot
6+
def to_json: (*untyped) -> String
97

10-
def initialize: (Remote::Bridge | Support::EventFiringBridge bridge, String id) -> void
11-
12-
def inspect: () -> untyped
13-
14-
def ==: (untyped other) -> bool
15-
16-
alias eql? ==
17-
18-
def hash: () -> Integer
19-
20-
def click: () -> untyped
21-
22-
def tag_name: () -> untyped
23-
24-
def attribute: (String | Symbol name) -> String?
25-
26-
def dom_attribute: (String name) -> String?
27-
28-
def property: (String name) -> String?
29-
30-
def aria_role: () -> String
31-
32-
def accessible_name: () -> String
33-
34-
def text: () -> String
35-
36-
def send_keys: (*untyped args) -> untyped
37-
38-
alias send_key send_keys
39-
40-
def clear: () -> bool
41-
42-
def enabled?: () -> bool
43-
44-
def selected?: () -> bool
45-
46-
def displayed?: () -> bool
47-
48-
def submit: () -> untyped
49-
50-
def css_value: (String prop) -> untyped
51-
52-
alias style css_value
53-
54-
def location: () -> WebDriver::Point
55-
56-
def rect: () -> WebDriver::Rectangle
57-
58-
def location_once_scrolled_into_view: () -> WebDriver::Point
59-
60-
def size: () -> WebDriver::Dimension
61-
62-
def shadow_root: () -> WebDriver::ShadowRoot
63-
64-
alias first find_element
65-
66-
alias all find_elements
67-
68-
#
69-
# element['class'] or element[:class] #=> "someclass"
70-
#
71-
alias [] attribute
72-
73-
def ref: () -> ::Array[:element | untyped]
74-
75-
def to_json: () -> untyped
76-
77-
def as_json: () -> untyped
78-
79-
private
80-
81-
attr_reader bridge: Remote::Bridge
82-
83-
def selectable?: () -> bool
84-
85-
def screenshot: () -> untyped
86-
end
87-
end
8+
def as_json: (*untyped) -> Hash[untyped, untyped]
889
end
Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
1-
module Selenium
2-
module WebDriver
3-
module Interactions
4-
class InputDevice
5-
@name: String
1+
class Selenium::WebDriver::Interactions::InputDevice
2+
def initialize: (?String) -> void
63

7-
@actions: Array[Interaction]
4+
def add_action: (Selenium::WebDriver::Interactions::Scroll) -> Array[untyped]
85

9-
attr_reader name: String
6+
def encode: () -> Hash[untyped, untyped]
107

11-
attr_reader actions: Array[untyped]
12-
13-
attr_reader type: String
14-
15-
def initialize: (?String? name) -> void
16-
17-
def add_action: (Interaction action) -> Array[Interaction]
18-
19-
def clear_actions: () -> Array[untyped]
20-
21-
def create_pause: (Float duration) -> Array[Interaction]
22-
23-
def encode: () -> untyped
24-
end
25-
end
26-
end
8+
def clear_actions: () -> Array[untyped]
279
end
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
module Selenium
2-
module WebDriver
3-
module Interactions
4-
class Interaction
5-
attr_reader type: untyped
6-
7-
def initialize: (untyped source) -> void
8-
9-
def assert_source: (untyped _source) -> untyped
10-
end
11-
end
12-
end
1+
class Selenium::WebDriver::Interactions::Interaction
2+
def initialize: (Selenium::WebDriver::Interactions::WheelInput) -> void
133
end
Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
module Selenium
2-
module WebDriver
3-
module Interactions
4-
KEY: Symbol
5-
6-
POINTER: Symbol
7-
8-
NONE: Symbol
9-
10-
WHEEL: Symbol
11-
12-
def self.key: (?untyped? name) -> untyped
13-
14-
def self.pointer: (?Symbol kind, ?name: untyped?) -> untyped
15-
16-
def self.mouse: (?name: untyped?) -> untyped
17-
18-
def self.pen: (?name: untyped?) -> untyped
19-
20-
def self.touch: (?name: untyped?) -> untyped
21-
22-
def self.none: (?untyped? name) -> untyped
23-
24-
def self.wheel: (?untyped? name) -> untyped
25-
end
26-
end
1+
module Selenium::WebDriver::Interactions
2+
def self.wheel: (?String) -> Selenium::WebDriver::Interactions::WheelInput
273
end
Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
module Selenium
2-
module WebDriver
3-
module Interactions
4-
class Scroll < Interaction
5-
@type: untyped
1+
class Selenium::WebDriver::Interactions::Scroll
2+
def initialize: (source: Selenium::WebDriver::Interactions::WheelInput, ?origin: Symbol, ?duration: Float, **Integer) -> void
63

7-
@duration: untyped
4+
def assert_source: (Selenium::WebDriver::Interactions::WheelInput) -> nil
85

9-
@origin: untyped
10-
11-
@x_offset: untyped
12-
13-
@y_offset: untyped
14-
15-
@delta_x: untyped
16-
17-
@delta_y: untyped
18-
19-
def initialize: (source: untyped, ?origin: Symbol, ?duration: Float, **untyped opts) -> void
20-
21-
def assert_source: (untyped source) -> untyped?
22-
23-
def encode: () -> Hash[String, untyped]
24-
end
25-
end
26-
end
6+
def encode: () -> Hash[untyped, untyped]
277
end
Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
1-
module Selenium
2-
module WebDriver
3-
module WheelActions
4-
include _ActionBuilder
5-
include _Driver
1+
module Selenium::WebDriver::WheelActions
2+
def scroll_by: (Integer, Integer, ?device: nil) -> Selenium::WebDriver::ActionBuilder
63

7-
@default_scroll_duration: untyped
4+
def scroll: (**Integer?) -> Selenium::WebDriver::ActionBuilder
85

9-
attr_writer default_scroll_duration: untyped
6+
def default_scroll_duration: () -> Float
107

11-
def default_scroll_duration: () -> untyped
12-
13-
def scroll_to: (untyped element, ?device: untyped?) -> untyped
14-
15-
def scroll_by: (untyped delta_x, untyped delta_y, ?device: untyped?) -> untyped
16-
17-
def scroll_from: (untyped scroll_origin, untyped delta_x, untyped delta_y, ?device: untyped?) -> untyped
18-
19-
private
20-
21-
def scroll: (**untyped opts) -> self
22-
23-
def wheel_input: (?untyped? name) -> untyped
24-
end
25-
end
8+
def wheel_input: (?nil) -> Selenium::WebDriver::Interactions::WheelInput
269
end
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
module Selenium
2-
module WebDriver
3-
module Interactions
4-
class WheelInput < InputDevice
5-
@type: untyped
1+
class Selenium::WebDriver::Interactions::WheelInput
2+
def initialize: (?String) -> void
63

7-
def initialize: (?untyped? name) -> void
8-
9-
def create_scroll: (**untyped opts) -> untyped
10-
end
11-
end
12-
end
4+
def create_scroll: (**Integer | Float) -> void
135
end

0 commit comments

Comments
 (0)