Class EdgeDriverInfo

java.lang.Object
org.openqa.selenium.chromium.ChromiumDriverInfo
org.openqa.selenium.edge.EdgeDriverInfo
All Implemented Interfaces:
WebDriverInfo

@AutoService(WebDriverInfo.class) public class EdgeDriverInfo extends ChromiumDriverInfo
  • Constructor Details

    • EdgeDriverInfo

      public EdgeDriverInfo()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Returns:
      A human-readable name that describes the browser.
    • getCanonicalCapabilities

      public Capabilities getCanonicalCapabilities()
      Description copied from interface: WebDriverInfo
      Describes the smallest set of Capabilities that could be used to create an instance of this WebDriver implementation.

      Note, this set does not need to be exhaustive: the only requirement is that if WebDriverInfo.isAvailable() returns true, the returned Capabilities can be passed to WebDriverInfo.createDriver(Capabilities) and a session will be created.

      Returns:
      The smallest set of Capabilities required to create an instance of this WebDriver implementation.
    • isSupporting

      public boolean isSupporting(Capabilities capabilities)
      Returns:
      Whether a call to WebDriverInfo.createDriver(Capabilities) would succeed if given capabilities.
    • isSupportingCdp

      public boolean isSupportingCdp()
      Returns:
      Whether the driver has enabled the CDP interface.
    • isSupportingBiDi

      public boolean isSupportingBiDi()
      Returns:
      Whether the driver has enabled the BiDi interface.
    • isAvailable

      public boolean isAvailable()
      Description copied from interface: WebDriverInfo
      Often, a WebDriver instance needs one or more supporting files or executables to be present (such as a vendor-provided executable which speaks the WebDriver Protocol). This means that even though the driver classes might be present in Java, it would make no sense to attempt to instantiate the driver itself.
      Returns:
      Whether the prerequisites required for this WebDriver are present.
    • isPresent

      public boolean isPresent()
      Description copied from interface: WebDriverInfo
      Checks whether the browser driver is already present on the host machine. Different from WebDriverInfo.isAvailable() which uses Selenium Manager to obtain the driver when not present.
      Returns:
      Whether the browser driver is present on the host machine.
    • createDriver

      public Optional<WebDriver> createDriver(Capabilities capabilities) throws SessionNotCreatedException
      Description copied from interface: WebDriverInfo
      Creates a new instance of the WebDriver implementation. The instance must be killed by sending the "quit" command. If the instance cannot be created because WebDriverInfo.isAvailable() is false, then Optional.empty() is returned. Otherwise, an attempt to start the session is made and the result returned.
      Throws:
      SessionNotCreatedException