Package org.openqa.selenium.edge
Class EdgeDriverInfo
java.lang.Object
org.openqa.selenium.chromium.ChromiumDriverInfo
org.openqa.selenium.edge.EdgeDriverInfo
- All Implemented Interfaces:
- WebDriverInfo
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateDriver(Capabilities capabilities) Creates a new instance of theWebDriverimplementation.Describes the smallest set ofCapabilitiesthat could be used to create an instance of thisWebDriverimplementation.booleanOften, aWebDriverinstance needs one or more supporting files or executables to be present (such as a vendor-provided executable which speaks the WebDriver Protocol).booleanChecks whether the browser driver is already present on the host machine.booleanisSupporting(Capabilities capabilities) booleanbooleanMethods inherited from class org.openqa.selenium.chromium.ChromiumDriverInfogetMaximumSimultaneousSessions
- 
Constructor Details- 
EdgeDriverInfopublic EdgeDriverInfo()
 
- 
- 
Method Details- 
getDisplayName- Returns:
- A human-readable name that describes the browser.
 
- 
getCanonicalCapabilitiesDescription copied from interface:WebDriverInfoDescribes the smallest set ofCapabilitiesthat could be used to create an instance of thisWebDriverimplementation.Note, this set does not need to be exhaustive: the only requirement is that if WebDriverInfo.isAvailable()returnstrue, the returnedCapabilitiescan be passed toWebDriverInfo.createDriver(Capabilities)and a session will be created.- Returns:
- The smallest set of Capabilitiesrequired to create an instance of thisWebDriverimplementation.
 
- 
isSupporting- Returns:
- Whether a call to WebDriverInfo.createDriver(Capabilities)would succeed if givencapabilities.
 
- 
isSupportingCdppublic boolean isSupportingCdp()- Returns:
- Whether the driver has enabled the CDP interface.
 
- 
isSupportingBiDipublic boolean isSupportingBiDi()- Returns:
- Whether the driver has enabled the BiDi interface.
 
- 
isAvailablepublic boolean isAvailable()Description copied from interface:WebDriverInfoOften, aWebDriverinstance 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 WebDriverare present.
 
- 
isPresentpublic boolean isPresent()Description copied from interface:WebDriverInfoChecks whether the browser driver is already present on the host machine. Different fromWebDriverInfo.isAvailable()which uses Selenium Manager to obtain the driver when not present.- Returns:
- Whether the browser driver is present on the host machine.
 
- 
createDriverpublic Optional<WebDriver> createDriver(Capabilities capabilities) throws SessionNotCreatedException Description copied from interface:WebDriverInfoCreates a new instance of theWebDriverimplementation. The instance must be killed by sending the "quit" command. If the instance cannot be created becauseWebDriverInfo.isAvailable()isfalse, thenOptional.empty()is returned. Otherwise, an attempt to start the session is made and the result returned.- Throws:
- SessionNotCreatedException
 
 
-