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

Release/3.141.59.265 #77

Merged
merged 3 commits into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.settings
.classpath
target
webdriver
webdriver
/libspecs/
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,26 @@ your pom.xml:
<dependency>
<groupId>com.github.hi-fi</groupId>
<artifactId>robotframework-seleniumlibrary</artifactId>
<version>3.141.59.26</version>
<version>3.141.59.265</version>
<scope>test</scope>
</dependency>

If you cannot use the robotframework-maven-plugin you can use the
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26/robotframework-seleniumlibrary-3.141.59.26-jar-with-dependencies.jar),
which contains all required libraries. Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-3.141.59.26-jar-with-dependencies.jar <test location>`.
[jar-with-dependencies](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.265/robotframework-seleniumlibrary-3.141.59.265-jar-with-dependencies.jar),
which contains all required libraries. Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-3.141.59.265-jar-with-dependencies.jar <test location>`.

* More information about this library can be found in the
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26/robotframework-seleniumlibrary-3.141.59.26.html).
[Keyword Documentation](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.265/robotframework-seleniumlibrary-3.141.59.265.html).
* For keyword completion in RIDE you can download this
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.26/robotframework-seleniumlibrary-3.141.59.26.xml)
[Library Specs](http://central.maven.org/maven2/com/github/hi-fi/robotframework-seleniumlibrary/3.141.59.265/robotframework-seleniumlibrary-3.141.59.265.xml)
and place it in your PYTHONPATH.

Differences
-----------

* Some keyword differences between this and [Python version](https://github.com/robotframework/SeleniumLibrary) exists. (Same) keywords should be aligned in upcoming versions.
* Older version of the library was imported as `Library Selenium2Library` (both Java and Python versions). Since 2.53.1.1 (and all 3.x versions) import is done as `Library SeleniumLibrary`
* Older version of the library was imported as `Library Selenium2Library` (both Java and Python versions).
Since 2.53.1.1 (and later major versions) import is done as `Library SeleniumLibrary`


Browser drivers
Expand All @@ -86,6 +87,8 @@ to know when to update drivers you use.

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

With At 3.141.59.265 [https://github.com/bonigarcia/webdrivermanager|WebdriverManager] is taken to use, so handling of drivers can also be done with standalone JAR from tests itself.

__ https://seleniumhq.github.io/selenium/docs/api/py/index.html#drivers
__ https://en.wikipedia.org/wiki/PATH_(variable)

Expand All @@ -96,7 +99,8 @@ This is a maven project. You can execute the integration tests (using [jBrowser]

mvn integration-test

Other browsers are behind profiles (require browser installation with Firefox and Google Chrome, but not driver):
Other browsers are behind profiles
(require browser installation with Firefox and Google Chrome, but not driver. Driver downloaded directly from Internet, so runner needs to have access to it.):

* Firefox: mvn integration-test -Pfirefox
* Google Chrome: mvn integration-test -Pgooglechrome
Expand Down
105 changes: 7 additions & 98 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.hi-fi</groupId>
<artifactId>robotframework-seleniumlibrary</artifactId>
<version>3.141.59.265-SNAPSHOT</version>
<version>3.141.59.2653-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Robot Framework :: SeleniumLibrary</name>
Expand Down Expand Up @@ -74,6 +74,7 @@
<selenium.version>3.141.59</selenium.version>
<keywords.class>SeleniumLibrary</keywords.class>
<browser>jbrowser</browser>
<downloadWebDriver>False</downloadWebDriver>
</properties>

<dependencies>
Expand Down Expand Up @@ -203,27 +204,6 @@
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
<version>1.0.16</version>
<configuration>
<!-- root directory that downloaded driver binaries will be stored
in -->
<rootStandaloneServerDirectory>webdriver/binaries</rootStandaloneServerDirectory>
<!-- Where you want to store downloaded zip files -->
<downloadedZipFileDirectory>webdriver/zips</downloadedZipFileDirectory>
<!-- Location of a custom repository map -->
<customRepositoryMap>src/test/resources/RepositoryMap.xml</customRepositoryMap>
</configuration>
<executions>
<execution>
<goals>
<goal>selenium</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Integration-Test, build documentation -->
<groupId>org.robotframework</groupId>
Expand All @@ -241,6 +221,7 @@
<testCasesDirectory>${project.basedir}/src/test/robotframework/testsuites</testCasesDirectory>
<variables>
<variable>browser:${browser}</variable>
<variable>downloadWebDriver:${downloadWebDriver}</variable>
</variables>
<report>target/robotframework-reports/${browser}_report.html</report>
<log>target/robotframework-reports/${browser}_log.html</log>
Expand Down Expand Up @@ -384,101 +365,29 @@
<id>firefox</id>
<properties>
<browser>firefox</browser>
<downloadWebDriver>True</downloadWebDriver>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<configuration>
<externalRunner>
<jvmArgs>
<jvmArg>-Dwebdriver.gecko.driver=${webdriver.gecko.driver}</jvmArg>
</jvmArgs>
</externalRunner>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>firefoxheadless</id>
<properties>
<browser>firefoxheadless</browser>
<downloadWebDriver>True</downloadWebDriver>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<configuration>
<externalRunner>
<jvmArgs>
<jvmArg>-Dwebdriver.gecko.driver=${webdriver.gecko.driver}</jvmArg>
</jvmArgs>
</externalRunner>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>googlechrome</id>
<properties>
<browser>googlechrome</browser>
<downloadWebDriver>True</downloadWebDriver>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<configuration>
<externalRunner>
<jvmArgs>
<jvmArg>-Dwebdriver.chrome.driver=${webdriver.chrome.driver}</jvmArg>
</jvmArgs>
</externalRunner>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>googlechromeheadless</id>
<properties>
<browser>googlechromeheadless</browser>
<downloadWebDriver>True</downloadWebDriver>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<configuration>
<externalRunner>
<jvmArgs>
<jvmArg>-Dwebdriver.chrome.driver=${webdriver.chrome.driver}</jvmArg>
</jvmArgs>
</externalRunner>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
Expand Down
1 change: 1 addition & 0 deletions src/test/robotframework/settings/Settings.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Library SeleniumLibrary
*** Variables ***
${Profile} Local
${browser} jbrowser
${downloadWebDriver} ${False}
${Selenium.Browser.Name} ${browser}
${Selenium.Browser.Version} 17
${Selenium.Timeout} 30.0
Expand Down
7 changes: 7 additions & 0 deletions src/test/robotframework/testsuites/UnitTests/__init__.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*** Settings ***
Resource ../../settings/Settings.robot
Suite Setup Handle WebDriver

*** Keywords ***
Handle WebDriver
Run Keyword If ${downloadWebDriver} WebDriver Manager Setup ${browser}