Class Cast


  • @Beta
    public class Cast
    extends java.lang.Object
    A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.
    • Constructor Summary

      Constructors 
      Constructor Description
      Cast()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
      Stops observing for sinks and issues.
      static org.openqa.selenium.devtools.Command<java.lang.Void> enable​(java.util.Optional<java.lang.String> presentationUrl)
      Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well.
      static org.openqa.selenium.devtools.Event<java.lang.String> issueUpdated()  
      static org.openqa.selenium.devtools.Command<java.lang.Void> setSinkToUse​(java.lang.String sinkName)
      Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.
      static org.openqa.selenium.devtools.Event<java.util.List<Sink>> sinksUpdated()  
      static org.openqa.selenium.devtools.Command<java.lang.Void> startDesktopMirroring​(java.lang.String sinkName)
      Starts mirroring the desktop to the sink.
      static org.openqa.selenium.devtools.Command<java.lang.Void> startTabMirroring​(java.lang.String sinkName)
      Starts mirroring the tab to the sink.
      static org.openqa.selenium.devtools.Command<java.lang.Void> stopCasting​(java.lang.String sinkName)
      Stops the active Cast session on the sink.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cast

        public Cast()
    • Method Detail

      • enable

        public static org.openqa.selenium.devtools.Command<java.lang.Void> enable​(java.util.Optional<java.lang.String> presentationUrl)
        Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.
      • disable

        public static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
        Stops observing for sinks and issues.
      • setSinkToUse

        public static org.openqa.selenium.devtools.Command<java.lang.Void> setSinkToUse​(java.lang.String sinkName)
        Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.
      • startDesktopMirroring

        public static org.openqa.selenium.devtools.Command<java.lang.Void> startDesktopMirroring​(java.lang.String sinkName)
        Starts mirroring the desktop to the sink.
      • startTabMirroring

        public static org.openqa.selenium.devtools.Command<java.lang.Void> startTabMirroring​(java.lang.String sinkName)
        Starts mirroring the tab to the sink.
      • stopCasting

        public static org.openqa.selenium.devtools.Command<java.lang.Void> stopCasting​(java.lang.String sinkName)
        Stops the active Cast session on the sink.
      • sinksUpdated

        public static org.openqa.selenium.devtools.Event<java.util.List<Sink>> sinksUpdated()
      • issueUpdated

        public static org.openqa.selenium.devtools.Event<java.lang.String> issueUpdated()