Class Driver
java.lang.Object
com.microsoft.playwright.impl.driver.Driver
- Direct Known Subclasses:
Driver.PreinstalledDriver, DriverJar
This class provides access to playwright-cli. It can be either preinstalled
in the host system and its path is passed as a system property or it can be
loaded from the driver-bundle module if that module is in the classpath.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DrivercreateAndInstall(Map<String, String> env, Boolean installBrowsers) protected abstract Pathstatic DriverensureDriverInstalled(Map<String, String> env, Boolean installBrowsers) private static Stringprotected abstract voidinitialize(Boolean installBrowsers) private voidinitialize(Map<String, String> env, Boolean installBrowsers) protected static voidlogMessage(String message) private static Driver
-
Field Details
-
env
-
instance
-
-
Constructor Details
-
Driver
public Driver()
-
-
Method Details
-
ensureDriverInstalled
-
initialize
-
initialize
-
driverPath
-
createProcessBuilder
-
getMajorJavaVersion
-
createAndInstall
-
newInstance
-
driverDir
-
logMessage
-