Package org.openqa.selenium.ie
Class InternetExplorerDriverInfo
java.lang.Object
org.openqa.selenium.ie.InternetExplorerDriverInfo
- All Implemented Interfaces:
WebDriverInfo
@AutoService(WebDriverInfo.class)
public class InternetExplorerDriverInfo
extends Object
implements WebDriverInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDriver(Capabilities capabilities) Creates a new instance of theWebDriverimplementation.Describes the smallest set ofCapabilitiesthat could be used to create an instance of thisWebDriverimplementation.intSome browsers require all the resources of the current system in order to run (for example, Safari on iOS) and so do not support multiple simultaneous sessions on the same system.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) booleanboolean
-
Constructor Details
-
InternetExplorerDriverInfo
public InternetExplorerDriverInfo()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceWebDriverInfo- Returns:
- A human-readable name that describes the browser.
-
getCanonicalCapabilities
Description 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.- Specified by:
getCanonicalCapabilitiesin interfaceWebDriverInfo- Returns:
- The smallest set of
Capabilitiesrequired to create an instance of thisWebDriverimplementation.
-
isSupporting
- Specified by:
isSupportingin interfaceWebDriverInfo- Returns:
- Whether a call to
WebDriverInfo.createDriver(Capabilities)would succeed if givencapabilities.
-
isSupportingCdp
public boolean isSupportingCdp()- Specified by:
isSupportingCdpin interfaceWebDriverInfo- Returns:
- Whether the driver has enabled the CDP interface.
-
isSupportingBiDi
public boolean isSupportingBiDi()- Specified by:
isSupportingBiDiin interfaceWebDriverInfo- Returns:
- Whether the driver has enabled the BiDi interface.
-
isAvailable
public 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.- Specified by:
isAvailablein interfaceWebDriverInfo- Returns:
- Whether the prerequisites required for this
WebDriverare present.
-
isPresent
public 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.- Specified by:
isPresentin interfaceWebDriverInfo- Returns:
- Whether the browser driver is present on the host machine.
-
getMaximumSimultaneousSessions
public int getMaximumSimultaneousSessions()Description copied from interface:WebDriverInfoSome browsers require all the resources of the current system in order to run (for example, Safari on iOS) and so do not support multiple simultaneous sessions on the same system. Other browsers can create isolated state for each newWebDriverinstance.The count of simultaneous sessions is typically 1, some multiple of the available number of cores, or
Integer.MAX_VALUEif the number is unbounded or no-one cares.- Specified by:
getMaximumSimultaneousSessionsin interfaceWebDriverInfo
-
createDriver
public 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.- Specified by:
createDriverin interfaceWebDriverInfo- Throws:
SessionNotCreatedException
-