Interface HasAuthentication

All Known Implementing Classes:
ChromeDriver, ChromiumDriver, EdgeDriver

public interface HasAuthentication
Indicates that a driver supports authenticating to a website in some way.
See Also:
  • Method Details

    • register

      void register(Predicate<URI> whenThisMatches, Supplier<Credentials> useTheseCredentials)
      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.
    • register

      default void register(Supplier<Credentials> alwaysUseTheseCredentials)
      As register(Predicate, Supplier) but attempts to apply the credentials for any request for authorization.