From 18a2546a1f48106ff43f33698f635743ca80fec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boni=20Garc=C3=ADa?= Date: Thu, 14 Jan 2021 16:46:40 +0100 Subject: [PATCH] Update doc for version 4.3.0 --- CHANGELOG.md | 13 ++++++++++++- README.md | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54784c381..31e8df20a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,22 @@ # Changelog +## [4.3.0] - 2021-01-14 +### Added +- Detect Edge version also in Linux +- Read LATEST_RELEASE_version_OS (where OS=WINDOWS|LINUX|MACOS) for msedgedriver + +### Fixed +- Make more robust browser distro detection (issue #586) + +### Changed +- Make more robust browser major version detection from POSIX output (issue #576) + + ## [4.2.2] - 2020-09-21 ### Fixed - Actual fixed for issue #554 (Windows Edge driver download fails with 404) - ## [4.2.1] - 2020-09-21 ### Added - Include syntactic sugar methods for operating systems in the API: win(), linux(), and mac() diff --git a/README.md b/README.md index 26fe15055..ee96a86e6 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ To use WebDriverManager from tests in a Maven project, you need to add the follo io.github.bonigarcia webdrivermanager - 4.2.2 + 4.3.0 test ``` @@ -74,7 +74,7 @@ To use WebDriverManager from tests in a Maven project, you need to add the follo ``` dependencies { - testImplementation("io.github.bonigarcia:webdrivermanager:4.2.2") + testImplementation("io.github.bonigarcia:webdrivermanager:4.3.0") } ``` @@ -354,7 +354,7 @@ As of version 2.2.0, WebDriverManager can used interactively from the Command Li [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ -[INFO] Building WebDriverManager 4.2.2 +[INFO] Building WebDriverManager 4.3.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ webdrivermanager --- @@ -375,10 +375,10 @@ As of version 2.2.0, WebDriverManager can used interactively from the Command Li [INFO] ------------------------------------------------------------------------ ``` -* Using WebDriverManager as a *fat-jar* (i.e. WebDriverManager with all its dependencies in a single executable JAR file). This JAR file can downloaded from [here](https://github.com/bonigarcia/webdrivermanager/releases/download/webdrivermanager-4.2.2/webdrivermanager-4.2.2-fat.jar) and also it can be created using the command ``mvn compile assembly:single`` from the source code. Once you get the *fat-jar*, you simply need to use the command ``java -jar webdrivermanager-4.2.2-fat.jar browserName``, for instance: +* Using WebDriverManager as a *fat-jar* (i.e. WebDriverManager with all its dependencies in a single executable JAR file). This JAR file can downloaded from [here](https://github.com/bonigarcia/webdrivermanager/releases/download/webdrivermanager-4.3.0/webdrivermanager-4.3.0-fat.jar) and also it can be created using the command ``mvn compile assembly:single`` from the source code. Once you get the *fat-jar*, you simply need to use the command ``java -jar webdrivermanager-4.3.0-fat.jar browserName``, for instance: ``` -> java -jar webdrivermanager-4.2.2-fat.jar chrome +> java -jar webdrivermanager-4.3.0-fat.jar chrome [INFO] Using WebDriverManager to resolve chrome [DEBUG] Running command on the shell: [google-chrome, --version] [DEBUG] Result: Google Chrome 81.0.4044.138 @@ -402,7 +402,7 @@ $ mvn exec:java -Dexec.args="server" [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ -[INFO] Building WebDriverManager 4.2.2 +[INFO] Building WebDriverManager 4.3.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ webdrivermanager --- @@ -412,7 +412,7 @@ $ mvn exec:java -Dexec.args="server" * Using WebDriverManager as a [fat-jar]. For instance: ``` -> java -jar webdrivermanager-4.2.2-fat.jar server +> java -jar webdrivermanager-4.3.0-fat.jar server [INFO] WebDriverManager server listening on port 4041 ``` @@ -544,26 +544,26 @@ Starting ChromeDriver 81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-re As of version 4.0.0, WebDriverManager can be used as a [Docker container] to execute the Server and CLI modes. To execute WebDriverManager Server in Docker, you simply need to run the following command: ``` -docker run -p 4041:4041 bonigarcia/webdrivermanager:4.2.2 +docker run -p 4041:4041 bonigarcia/webdrivermanager:4.3.0 ``` To execute WebDriverManager CLI in Docker, you need to specify the type of browser to be resolved as environmental variable (`BROWSER`). The rest of WebDriverManager configuration parameters can be passed to the Docker container using env variables using the usual `-e` option in Docker. For example, in Linux: ``` -docker run --rm -e BROWSER=chrome -e WDM_CHROMEVERSION=84 -e WDM_OS=LINUX -v ${PWD}:/wdm bonigarcia/webdrivermanager:4.2.2 +docker run --rm -e BROWSER=chrome -e WDM_CHROMEVERSION=84 -e WDM_OS=LINUX -v ${PWD}:/wdm bonigarcia/webdrivermanager:4.3.0 ``` ... or Mac: ``` -docker run --rm -e BROWSER=chrome -e WDM_CHROMEVERSION=84 -e WDM_OS=MAC -v ${PWD}:/wdm bonigarcia/webdrivermanager:4.2.2 +docker run --rm -e BROWSER=chrome -e WDM_CHROMEVERSION=84 -e WDM_OS=MAC -v ${PWD}:/wdm bonigarcia/webdrivermanager:4.3.0 ``` ... or Windows (if WSL2 is installed in Windows, you can use `${PWD}` instead of `%cd%` for the volume setup): ``` -docker run --rm -e BROWSER=chrome -e WDM_CHROMEVERSION=84 -e WDM_OS=WIN -v %cd%:/wdm bonigarcia/webdrivermanager:4.2.2 +docker run --rm -e BROWSER=chrome -e WDM_CHROMEVERSION=84 -e WDM_OS=WIN -v %cd%:/wdm bonigarcia/webdrivermanager:4.3.0 ``` ## Known issues @@ -670,7 +670,7 @@ WebDriverManager (Copyright © 2015-2020) is a project created and maintaine [versions.properties]: https://github.com/bonigarcia/webdrivermanager/blob/master/src/main/resources/versions.properties [WebDriverManager Examples]: https://github.com/bonigarcia/webdrivermanager-examples [WebDriverManager issues]: https://github.com/bonigarcia/webdrivermanager/issues -[fat-jar]: https://github.com/bonigarcia/webdrivermanager/releases/download/webdrivermanager-4.2.2/webdrivermanager-4.2.2-fat.jar +[fat-jar]: https://github.com/bonigarcia/webdrivermanager/releases/download/webdrivermanager-4.3.0/webdrivermanager-4.3.0-fat.jar [survey]: http://tiny.cc/wdm-survey [Docker container]: https://hub.docker.com/repository/docker/bonigarcia/webdrivermanager [chromedriver-latest]: https://chromedriver.storage.googleapis.com/LATEST_RELEASE