diff --git a/CHANGELOG.md b/CHANGELOG.md index 61884046b..9cba10f67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [5.6.0] - 2023-10-27 + +### Added +- Enable CDP support in browsers in Docker using host as Docker network + +### Fixed +- Use same number of exposed ports when using host as Docker network +- Unable to use chromeDownloadUrlPattern (#1141) + +### Changed +- Avoid fallback to old chromedriver repo if CfT fails (#1137) + + ## [5.5.3] - 2023-09-01 ### Fixed diff --git a/docs/index.html b/docs/index.html index eb916b452..1c6a06f99 100644 --- a/docs/index.html +++ b/docs/index.html @@ -775,7 +775,7 @@

WebDriverManager

Boni GarcĂ­a
-Version 5.5.3 +Version 5.6.0
Table of Contents
@@ -1002,7 +1002,7 @@

2. Setup

<dependency>
     <groupId>io.github.bonigarcia</groupId>
     <artifactId>webdrivermanager</artifactId>
-    <version>5.5.3</version>
+    <version>5.6.0</version>
     <scope>test</scope>
 </dependency>
@@ -1013,7 +1013,7 @@

2. Setup

dependencies {
-    testImplementation("io.github.bonigarcia:webdrivermanager:5.5.3")
+    testImplementation("io.github.bonigarcia:webdrivermanager:5.6.0")
 }
@@ -1389,13 +1389,13 @@

3.3. WebDriverManager.chromedriver().setup(); // Start Selenium Grid in standalone mode - Main.main(new String[] { "standalone", "--port", "4444" }); + Main.main(new String[] { "standalone", "--port", "4445" }); } @BeforeEach void setupTest() { driver = WebDriverManager.chromedriver() - .remoteAddress("http://localhost:4444/wd/hub").create(); + .remoteAddress("http://localhost:4445/wd/hub").create(); } @AfterEach @@ -2055,10 +2055,10 @@

  1. -

    Using the WebDriverManager fat-JAR (i.e., WebDriverManager with all its dependencies in a single executable JAR file). This JAR file is generated from the source using the Maven command mvn compile assembly:single, and it is released on GitHub with every new version of WebDriverManager. You can download the latest of this fat-JAR from here. Once you get this file, you need to use the following command in the shell (where <args> are the accepted arguments, explained below):

    +

    Using the WebDriverManager fat-JAR (i.e., WebDriverManager with all its dependencies in a single executable JAR file). This JAR file is generated from the source using the Maven command mvn compile assembly:single, and it is released on GitHub with every new version of WebDriverManager. You can download the latest of this fat-JAR from here. Once you get this file, you need to use the following command in the shell (where <args> are the accepted arguments, explained below):

    -
    java -jar webdrivermanager-5.5.3-fat.jar <args>
    +
    java -jar webdrivermanager-5.6.0-fat.jar <args>
  2. @@ -2074,7 +2074,7 @@

    Using the WebDriverManager Docker container. Each new release of WebDriverManager is pushed to Docker Hub as a container based on OpenJDK plus the WebDriverManager fat-JAR. The default command to run the WebDriverManager Docker container is described below.

    -
    docker run --rm -e ARGS="<args>" bonigarcia/webdrivermanager:5.5.3
    +
    docker run --rm -e ARGS="<args>" bonigarcia/webdrivermanager:5.6.0
    @@ -2112,7 +2112,7 @@

    Option 1: Driver Resolver

    -
    java -jar webdrivermanager-5.5.3-fat.jar resolveDriverFor chrome
    +
    java -jar webdrivermanager-5.6.0-fat.jar resolveDriverFor chrome
    @@ -2136,7 +2136,7 @@

    Option 1: Driver Resolver

    -
    docker run --rm -v ${PWD}:/wdm -e ARGS="resolveDriverFor chrome" bonigarcia/webdrivermanager:5.5.3
    +
    docker run --rm -v ${PWD}:/wdm -e ARGS="resolveDriverFor chrome" bonigarcia/webdrivermanager:5.6.0

    Option 2: Browsers in Docker

    @@ -2152,7 +2152,7 @@

    Option 2: Browsers in Dock

    -
    java -jar webdrivermanager-5.5.3-fat.jar runInDocker chrome
    +
    java -jar webdrivermanager-5.6.0-fat.jar runInDocker chrome
    @@ -2176,7 +2176,7 @@

    Option 2: Browsers in Dock

    -
    docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -e ARGS="runInDocker chrome" bonigarcia/webdrivermanager:5.5.3
    +
    docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -e ARGS="runInDocker chrome" bonigarcia/webdrivermanager:5.6.0
    @@ -2204,7 +2204,7 @@

    Option 3: Server

    -
    java -jar webdrivermanager-5.5.3-fat.jar server
    +
    java -jar webdrivermanager-5.6.0-fat.jar server
    @@ -2228,7 +2228,7 @@

    Option 3: Server

    -
    docker run --rm -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock bonigarcia/webdrivermanager:5.5.3
    +
    docker run --rm -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock bonigarcia/webdrivermanager:5.6.0
    @@ -2345,7 +2345,7 @@

    -

    To configure the WebDriverManager Agent, we need to specify the path of the WebDriverManager fat-JAR using the JVM flag -javaagent:/path/to/webdrivermanager-5.5.3-fat.jar. Alternatively, it can be done using Maven (see a complete project example here).

    +

    To configure the WebDriverManager Agent, we need to specify the path of the WebDriverManager fat-JAR using the JVM flag -javaagent:/path/to/webdrivermanager-5.6.0-fat.jar. Alternatively, it can be done using Maven (see a complete project example here).

    @@ -2389,7 +2389,7 @@

    4.5. Selenium

    -
    boni@ubuntu:~$ java -jar webdrivermanager-5.5.3-fat.jar resolveDriverFor chrome
    +
    boni@ubuntu:~$ java -jar webdrivermanager-5.6.0-fat.jar resolveDriverFor chrome
     [INFO] Using WebDriverManager to resolve chrome
     [DEBUG] Detecting chrome version using online commands.properties
     [DEBUG] Running command on the shell: [google-chrome, --version]
    @@ -2514,7 +2514,7 @@ 

    -
    docker run --rm -v ${PWD}:/wdm -e ARGS="resolveDriverFor chrome" -e WDM_CHROMEVERSION=84 bonigarcia/webdrivermanager:5.5.3
    +
    docker run --rm -v ${PWD}:/wdm -e ARGS="resolveDriverFor chrome" -e WDM_CHROMEVERSION=84 bonigarcia/webdrivermanager:5.6.0
    diff --git a/docs/webdrivermanager.pdf b/docs/webdrivermanager.pdf index bf25ce18c..888f0069d 100644 Binary files a/docs/webdrivermanager.pdf and b/docs/webdrivermanager.pdf differ