Package org.openqa.selenium.chromium
Interface HasCasting
- All Known Implementing Classes:
ChromeDriver
,ChromiumDriver
,EdgeDriver
Used by classes to indicate that they can cast devices to available sink targets.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of cast sinks (Cast devices) available to the Chrome media router.void
selectCastSink
(String deviceName) Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).void
startDesktopMirroring
(String deviceName) Initiates desktop mirroring for the current browser tab on the specified device.void
startTabMirroring
(String deviceName) Initiates tab mirroring for the current browser tab on the specified device.void
stopCasting
(String deviceName) Stops casting from media router to the specified device, if connected.
-
Method Details
-
getCastSinks
Returns the list of cast sinks (Cast devices) available to the Chrome media router.- Returns:
- array of ID / Name pairs of available cast sink targets
-
selectCastSink
Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).- Parameters:
deviceName
- name of the target device.
-
startDesktopMirroring
Initiates desktop mirroring for the current browser tab on the specified device.- Parameters:
deviceName
- name of the target device.
-
startTabMirroring
Initiates tab mirroring for the current browser tab on the specified device.- Parameters:
deviceName
- name of the target device.
-
getCastIssueMessage
String getCastIssueMessage()- Returns:
- an error message if there is any issue in a Cast session.
-
stopCasting
Stops casting from media router to the specified device, if connected.- Parameters:
deviceName
- name of the target device.
-