- All Implemented Interfaces:
Method SummaryModifier and TypeMethodDescriptionCreates a new instance of the
WebDriverinstance 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.
Methods inherited from class org.openqa.selenium.chromium.ChromiumDriverInfo
getDisplayNamepublic String getDisplayName()
- A human-readable name that describes the browser.
getCanonicalCapabilitiespublic Capabilities getCanonicalCapabilities()Describes the smallest set of
Capabilitiesthat could be used to create an instance of this
Note, this set does not need to be exhaustive: the only requirement is that if
true, the returned
Capabilitiescan be passed to
WebDriverInfo.createDriver(Capabilities)and a session will be created.
isSupportingpublic boolean isSupporting
- Whether a call to
WebDriverInfo.createDriver(Capabilities)would succeed if given
isSupportingCdppublic boolean isSupportingCdp()
- Whether the driver has enabled the CDP interface.
isSupportingBiDipublic boolean isSupportingBiDi()
- Whether the driver has enabled the BiDi interface.
isAvailablepublic boolean isAvailable()Often, a
WebDriverinstance 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.
- Whether the prerequisites required for this
isPresentpublic boolean isPresent()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.
- Whether the browser driver is present on the host machine.
createDriverpublic Optional<WebDriver> createDriver
(Capabilities capabilities) throws SessionNotCreatedExceptionCreates a new instance of the
WebDriverimplementation. The instance must be killed by sending the "quit" command. If the instance cannot be created because
Optional.empty()is returned. Otherwise, an attempt to start the session is made and the result returned.