File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
rb/lib/selenium/webdriver Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ module Features
27
27
get_cast_sinks : [ :get , 'session/:session_id/goog/cast/get_sinks' ] ,
28
28
set_cast_sink_to_use : [ :post , 'session/:session_id/goog/cast/set_sink_to_use' ] ,
29
29
start_cast_tab_mirroring : [ :post , 'session/:session_id/goog/cast/start_tab_mirroring' ] ,
30
+ start_cast_desktop_mirroring : [ :post , 'session/:session_id/goog/cast/start_desktop_mirroring' ] ,
30
31
get_cast_issue_message : [ :get , 'session/:session_id/goog/cast/get_issue_message' ] ,
31
32
stop_casting : [ :post , 'session/:session_id/goog/cast/stop_casting' ] ,
32
33
get_network_conditions : [ :get , 'session/:session_id/chromium/network_conditions' ] ,
@@ -62,6 +63,10 @@ def start_cast_tab_mirroring(name)
62
63
execute :start_cast_tab_mirroring , { } , { sinkName : name }
63
64
end
64
65
66
+ def start_cast_desktop_mirroring ( name )
67
+ execute :start_cast_desktop_mirroring , { } , { sinkName : name }
68
+ end
69
+
65
70
def stop_casting ( name )
66
71
execute :stop_casting , { } , { sinkName : name }
67
72
end
Original file line number Diff line number Diff line change @@ -52,6 +52,16 @@ def start_cast_tab_mirroring(name)
52
52
@bridge . start_cast_tab_mirroring ( name )
53
53
end
54
54
55
+ #
56
+ # Starts a tab mirroring session on a specific receiver target.
57
+ #
58
+ # @param [String] name the sink to use as the target
59
+ #
60
+
61
+ def start_cast_desktop_mirroring ( name )
62
+ @bridge . start_cast_desktop_mirroring ( name )
63
+ end
64
+
55
65
#
56
66
# Gets error messages when there is any issue in a Cast session.
57
67
#
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ module Features
30
30
get_cast_sinks : [ :get , 'session/:session_id/ms/cast/get_sinks' ] ,
31
31
set_cast_sink_to_use : [ :post , 'session/:session_id/ms/cast/set_sink_to_use' ] ,
32
32
start_cast_tab_mirroring : [ :post , 'session/:session_id/ms/cast/start_tab_mirroring' ] ,
33
+ start_cast_desktop_mirroring : [ :post , 'session/:session_id/ms/cast/start_desktop_mirroring' ] ,
33
34
get_cast_issue_message : [ :get , 'session/:session_id/ms/cast/get_issue_message' ] ,
34
35
stop_casting : [ :post , 'session/:session_id/ms/cast/stop_casting' ] ,
35
36
send_command : [ :post , 'session/:session_id/ms/cdp/execute' ]
You can’t perform that action at this time.
0 commit comments