You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -e ARGS="runInDocker chrome" bonigarcia/webdrivermanager:{project-version}
376
374
----
377
375
378
376
WARNING: There is an https://bugs.chromium.org/p/chromedriver/issues/detail?id=3857[open issue] with Chrome 92+ and Docker at the time of this writing. For this reason, the previous Docker container command uses Chrome 91. For further information, see <<known-issues, known issues>>.
@@ -411,6 +409,8 @@ The WebDriverManager Server is based on HTTP and offers two types of services. F
411
409
* http://localhost:4444/operadriver[http://localhost:4444/operadriver]: To resolve geckodriver.
412
410
* http://localhost:4444/iedriver[http://localhost:4444/iedriver]: To resolve geckodriver.
413
411
412
+
NOTE: You can parametrize these URLs using all the configuration keys available in WebDriverManager (see the <<advanced-configuration,advanced configuration>> section) as parameters, but removing the `wdm.` preffix. For instance, the URL for requesting the resolution of chromedriver for Chrome 100 would be http://localhost:4444/chromedriver?chromeVersion=100[http://localhost:4444/chromedriver?chromeVersion=100].
413
+
414
414
Second, the WebDriverManager Server acts as a regular Selenium Server (i.e., a _hub_ in the classical Selenium Grid architecture). This feature can create remote `WebDriver` instances using the WebDriverManager Server (even for different language bindings than Java). The following example shows a Node.js test using Selenium WebDriver and WebDriverManager Server (notice that by default, the WebDriverManager Server URL does not require any path, i.e., http://localhost:4444/[http://localhost:4444/]):
415
415
416
416
[source,javascript]
@@ -421,7 +421,7 @@ async function wdmServerTest() {
01:31:52.806 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
537
+
01:31:52.810 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
538
+
01:31:53.344 INFO [NodeOptions.getSessionFactories] - Detected 16 available processors
539
+
01:31:53.359 INFO [NodeOptions.discoverDrivers] - Discovered 1 driver(s)
540
+
01:31:53.382 INFO [NodeOptions.report] - Adding Chrome for {"browserName": "chrome"} 16 times
541
+
01:31:53.417 INFO [Node.<init>] - Binding additional locator mechanisms: id, relative, name
542
+
01:31:53.436 INFO [GridModel.setAvailability] - Switching Node 3804a261-5889-44c5-8cb1-d56162cf39ef (uri: http://172.18.0.1:4444) from DOWN to UP
543
+
01:31:53.436 INFO [LocalDistributor.add] - Added node 3804a261-5889-44c5-8cb1-d56162cf39ef at http://172.18.0.1:4444. Health check every 120s
544
+
01:31:53.554 INFO [Standalone.execute] - Started Selenium Standalone 4.3.0 (revision a4995e2c09*): http://172.18.0.1:4444
546
545
----
547
546
548
547
=== Appium
@@ -620,7 +619,7 @@ The remainder of this section describes all the possible Java methods in the Web
620
619
|`cachePath(String)`|`wdm.cachePath`|`~/.cache/selenium`|Folder to store drivers locally
621
620
|`resolutionCachePath(String)`|`wdm.resolutionCachePath`|`~/.cache/selenium`|Folder to store the resolution cache
622
621
|`driverVersion(String)`|`wdm.chromeDriverVersion`, `wdm.operaDriverVersion`, `wdm.iExplorerDriverVersion`, `wdm.edgeDriverVersion`, `wdm.geckoDriverVersion`, `wdm.chromiumDriverVersion`|`""` (automatic driver version discovery through the <<resolution-algorithm,resolution algorithm>>)|Custom driver version
623
-
|`browserVersion(String)`|`wdm.chromeVersion`, `wdm.operaVersion`, `wdm.edgeVersion`, `wdm.firefoxVersion`, `wdm.chromiumVersion`|`""` (automatic browser version detection using the https://github.com/bonigarcia/webdrivermanager/blob/master/src/main/resources/commands.properties[commands database])|Custom browser version (major)
622
+
|`browserVersion(String)`|`wdm.chromeVersion`, `wdm.operaVersion`, `wdm.edgeVersion`, `wdm.firefoxVersion`, `wdm.chromiumVersion`, `wdm.safariVersion`|`""` (automatic browser version detection using the https://github.com/bonigarcia/webdrivermanager/blob/master/src/main/resources/commands.properties[commands database])|Custom browser version (major)
624
623
|`forceDownload()`|`wdm.forceDownload=true`|`false` (drivers in cache are reused if available)|Force downloading driver (even if it is already in the cache)
625
624
|`useBetaVersions()`|`wdm.useBetaVersions=true`|`false` (driver versions are skipped)|Allow the use beta versions (if possible)
626
625
|`architecture(Architecture)`|`wdm.architecture`|`""` (automatic architecture discovery)|Force a given architecture for a driver
@@ -748,7 +747,6 @@ There are two ways to try to get community support related to WebDriverManager.
748
747
https://opencollective.com/webdrivermanager[WebDriverManager] is part of https://opencollective.com/bonigarcia[OpenCollective], an online funding platform for open and transparent communities. You can support the project by contributing as a backer (i.e., a personal https://opencollective.com/webdrivermanager/donate[donation] or https://opencollective.com/webdrivermanager/contribute/backer-8132/checkout[recurring contribution]) or as a https://opencollective.com/webdrivermanager/contribute/sponsor-8133/checkout[sponsor] (i.e., a recurring contribution by a company).
749
748
750
749
ifndef::backend-pdf[]
751
-
ifndef::backend-epub3[]
752
750
[discrete]
753
751
=== Backers
754
752
++++
@@ -761,7 +759,6 @@ include::backers.html[]
761
759
include::sponsors.html[]
762
760
++++
763
761
endif::[]
764
-
endif::[]
765
762
766
763
== Further Documentation
767
764
There are other resources related to Selenium-Jupiter and automated testing you can find helpful. For instance, the following books:
@@ -780,4 +777,4 @@ Or the following journal papers:
780
777
* García, Boni, and Juan Carlos Dueñas. "https://www.rintonpress.com/journals/jweonline.html#v14n56[Web browsing automation for applications quality control]." _Journal of web engineering_ (2015): 474-502.
0 commit comments