Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 3c1e46e

Browse files
committed
Replaced Maven plugin for webdriver download with WebdriverManager (thanks to @YauheniPo)
Suite setup to handle download in a way that tests doesn't need to be changed
1 parent 4d69595 commit 3c1e46e

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,30 @@ which contains all required libraries. Running of tests with this can be done wi
5959
[Library Specs](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26535/robotframework-seleniumlibrary-3.141.59.26535.xml)
6060
and place it in your PYTHONPATH.
6161

62+
Usage, Selenium 4 (WIP)
63+
-----------------
64+
65+
If you are using the robotframework-maven-plugin you can
66+
use this library by adding the following dependency to
67+
your pom.xml:
68+
69+
<dependency>
70+
<groupId>com.github.hi-fi</groupId>
71+
<artifactId>robotframework-seleniumlibrary</artifactId>
72+
<version>4.0.0-alpha-1.0</version>
73+
<scope>test</scope>
74+
</dependency>
75+
76+
If you cannot use the robotframework-maven-plugin you can use the
77+
[jar-with-dependencies](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-1.0/robotframework-seleniumlibrary-4.0.0-alpha-1.0-jar-with-dependencies.jar),
78+
which contains all required libraries. Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-4.0.0-alpha-1.0-jar-with-dependencies.jar <test location>`.
79+
80+
* More information about this library can be found in the
81+
[Keyword Documentation](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-1.0/robotframework-seleniumlibrary-4.0.0-alpha-1.0.html).
82+
* For keyword completion in RIDE you can download this
83+
[Library Specs](https://repo1.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-1.0/robotframework-seleniumlibrary-4.0.0-alpha-1.0.xml)
84+
and place it in your PYTHONPATH.
85+
6286
Differences
6387
-----------
6488

@@ -74,11 +98,11 @@ After installing the library, you still need to install browser and
7498
operating system specific browser drivers for all those browsers you
7599
want to use in tests. These are the exact same drivers you need to use with
76100
Selenium also when not using SeleniumLibrary. More information about
77-
drivers can be found from `Selenium documentation`__.
101+
drivers can be found from [Selenium documentation](https://seleniumhq.github.io/selenium/docs/api/py/index.html#drivers).
78102

79103
The general approach to install a browser driver is downloading a right
80104
driver, such as ``chromedriver`` for Chrome, and placing it into
81-
a directory that is in PATH__. Drivers for different browsers
105+
a directory that is in [PATH](https://en.wikipedia.org/wiki/PATH_(variable)). Drivers for different browsers
82106
can be found via Selenium documentation or by using your favorite
83107
search engine with a search term like ``selenium chrome browser driver``.
84108
New browser driver versions are released to support features in
@@ -87,7 +111,7 @@ to know when to update drivers you use.
87111

88112
Drivers can also be fetched with [Selenium Driver Binary Downloader plugin](https://github.com/Ardesco/selenium-standalone-server-plugin).
89113

90-
With At 3.141.59.265 [WebdriverManager](https://github.com/bonigarcia/webdrivermanager) is taken to use, so handling of drivers can also be done with standalone JAR from tests itself.
114+
After version 3.141.59.265 [WebdriverManager](https://github.com/bonigarcia/webdrivermanager) is taken to use, so handling of drivers can also be done with standalone JAR from tests itself.
91115

92116
Demo
93117
----

0 commit comments

Comments
 (0)