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

Commit eda57a7

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 b1d9615 commit eda57a7

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

README.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,32 +45,42 @@ your pom.xml:
4545
<dependency>
4646
<groupId>com.github.hi-fi</groupId>
4747
<artifactId>robotframework-seleniumlibrary</artifactId>
48-
<<<<<<< HEAD
49-
<version>3.141.59.2653</version>
50-
=======
5148
<version>3.141.59.26535</version>
52-
>>>>>>> 3.141.59.26535
5349
<scope>test</scope>
5450
</dependency>
5551

5652
If you cannot use the robotframework-maven-plugin you can use the
57-
<<<<<<< HEAD
58-
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653-jar-with-dependencies.jar),
59-
which contains all required libraries. Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-3.141.59.2653-jar-with-dependencies.jar <test location>`.
60-
61-
* More information about this library can be found in the
62-
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653.html).
63-
* For keyword completion in RIDE you can download this
64-
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.2653/robotframework-seleniumlibrary-3.141.59.2653.xml)
65-
=======
6653
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26535/robotframework-seleniumlibrary-3.141.59.26535-jar-with-dependencies.jar),
6754
which contains all required libraries. Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-3.141.59.26535-jar-with-dependencies.jar <test location>`.
6855

6956
* More information about this library can be found in the
7057
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26535/robotframework-seleniumlibrary-3.141.59.26535.html).
7158
* For keyword completion in RIDE you can download this
7259
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26535/robotframework-seleniumlibrary-3.141.59.26535.xml)
73-
>>>>>>> 3.141.59.26535
60+
and place it in your PYTHONPATH.
61+
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](http://central.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](http://central.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](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/4.0.0-alpha-1.0/robotframework-seleniumlibrary-4.0.0-alpha-1.0.xml)
7484
and place it in your PYTHONPATH.
7585

7686
Differences
@@ -88,11 +98,11 @@ After installing the library, you still need to install browser and
8898
operating system specific browser drivers for all those browsers you
8999
want to use in tests. These are the exact same drivers you need to use with
90100
Selenium also when not using SeleniumLibrary. More information about
91-
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).
92102

93103
The general approach to install a browser driver is downloading a right
94104
driver, such as ``chromedriver`` for Chrome, and placing it into
95-
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
96106
can be found via Selenium documentation or by using your favorite
97107
search engine with a search term like ``selenium chrome browser driver``.
98108
New browser driver versions are released to support features in
@@ -101,7 +111,7 @@ to know when to update drivers you use.
101111

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

104-
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.
105115

106116
Demo
107117
----

0 commit comments

Comments
 (0)