Class ChromiumDriver

    • Constructor Detail

      • ChromiumDriver

        protected ChromiumDriver​(CommandExecutor commandExecutor,
                                 Capabilities capabilities,
                                 java.lang.String capabilityKey)
    • Method Detail

      • register

        public void register​(java.util.function.Predicate<> whenThisMatches,
                             java.util.function.Supplier<Credentials> useTheseCredentials)
        Description copied from interface: HasAuthentication
        Registers a check for whether a set of Credentials should be used for a particular site, identified by its URI. If called multiple times, the credentials will be checked in the order they've been added and the first one to match will be used.
        Specified by:
        register in interface HasAuthentication
      • location

        public Location location()
        Description copied from interface: LocationContext
        Gets the physical location of the browser.
        Specified by:
        location in interface LocationContext
        A Location containing the location information. Returns null if the location is not available
      • launchApp

        public void launchApp​(java.lang.String id)
        Launches Chrome app specified by id.
        id - Chrome app id.
      • executeCdpCommand

        public java.util.Map<java.lang.String,​java.lang.Object> executeCdpCommand​(java.lang.String commandName,
                                                                                        java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Execute a Chrome Devtools Protocol command and get returned result. The command and command args should follow chrome devtools protocol domains/commands.
      • getCastSinks

        public java.lang.String getCastSinks()
      • getCastIssueMessage

        public java.lang.String getCastIssueMessage()
      • selectCastSink

        public void selectCastSink​(java.lang.String deviceName)
      • startTabMirroring

        public void startTabMirroring​(java.lang.String deviceName)
      • stopCasting

        public void stopCasting​(java.lang.String deviceName)
      • setPermission

        public void setPermission​(java.lang.String name,
                                  java.lang.String value)
      • quit

        public void quit()
        Description copied from interface: WebDriver
        Quits this driver, closing every associated window.
        Specified by:
        quit in interface WebDriver
        quit in class RemoteWebDriver