File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
rb/lib/selenium/webdriver/common/driver_extensions Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,52 @@ module WebDriver
22
22
module DriverExtensions
23
23
module HasCasting
24
24
25
+ #
26
+ # What devices ("sinks") are available to be cast to.
27
+ #
28
+ # @return [Array] list of sinks available for casting with id and name values
29
+ #
30
+
25
31
def cast_sinks
26
32
@bridge . cast_sinks
27
33
end
28
34
35
+ #
36
+ # Sets a specific sink, using its name, as a Cast session receiver target.
37
+ #
38
+ # @param [String] name the sink to use as the target
39
+ #
40
+
29
41
def cast_sink_to_use = ( name )
30
42
@bridge . cast_sink_to_use = name
31
43
end
32
44
45
+ #
46
+ # Starts a tab mirroring session on a specific receiver target.
47
+ #
48
+ # @param [String] name the sink to use as the target
49
+ #
50
+
33
51
def start_cast_tab_mirroring ( name )
34
52
@bridge . start_cast_tab_mirroring ( name )
35
53
end
36
54
55
+ #
56
+ # Gets error messages when there is any issue in a Cast session.
57
+ #
58
+ # @return [String] the error message
59
+ #
60
+
37
61
def cast_issue_message
38
62
@bridge . cast_issue_message
39
63
end
40
64
65
+ #
66
+ # Stops the existing Cast session on a specific receiver target.
67
+ #
68
+ # @param [String] name the sink to stop the Cast session
69
+ #
70
+
41
71
def stop_casting ( name )
42
72
@bridge . stop_casting ( name )
43
73
end
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ module WebDriver
22
22
module DriverExtensions
23
23
module HasLaunching
24
24
25
+ #
26
+ # Launches Chromium app specified by id.
27
+ #
28
+ # @param [String] id
29
+ #
30
+
25
31
def launch_app ( id )
26
32
@bridge . launch_app ( id )
27
33
end
You can’t perform that action at this time.
0 commit comments