Class DriverJar


  • public class DriverJar
    extends Driver
    • Field Detail

      • PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD

        private static final java.lang.String PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
        See Also:
        Constant Field Values
      • SELENIUM_REMOTE_URL

        private static final java.lang.String SELENIUM_REMOTE_URL
        See Also:
        Constant Field Values
      • PLAYWRIGHT_NODEJS_PATH

        static final java.lang.String PLAYWRIGHT_NODEJS_PATH
        See Also:
        Constant Field Values
      • driverTempDir

        private final java.nio.file.Path driverTempDir
      • preinstalledNodePath

        private java.nio.file.Path preinstalledNodePath
    • Constructor Detail

      • DriverJar

        public DriverJar()
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • initialize

        protected void initialize​(java.lang.Boolean installBrowsers)
                           throws java.lang.Exception
        Specified by:
        initialize in class Driver
        Throws:
        java.lang.Exception
      • installBrowsers

        private void installBrowsers​(java.util.Map<java.lang.String,​java.lang.String> env)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • isExecutable

        private static boolean isExecutable​(java.nio.file.Path filePath)
      • initFileSystem

        private java.nio.file.FileSystem initFileSystem​(java.net.URI uri)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getDriverResourceURI

        public static java.net.URI getDriverResourceURI()
                                                 throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • extractDriverToTempDir

        void extractDriverToTempDir()
                             throws java.net.URISyntaxException,
                                    java.io.IOException
        Throws:
        java.net.URISyntaxException
        java.io.IOException
      • maybeExtractNestedJar

        private java.net.URI maybeExtractNestedJar​(java.net.URI uri)
                                            throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • platformDir

        private static java.lang.String platformDir()
      • driverDir

        protected java.nio.file.Path driverDir()
        Specified by:
        driverDir in class Driver