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

Commit bddcfa3

Browse files
authored
Merge pull request #3 from Hi-Fi/release/2.48.2.0
Release/2.48.2.0
2 parents d81c556 + 2afeada commit bddcfa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+598
-458
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: java
2+
jdk:
3+
- oraclejdk8
4+
install:
5+
- mvn --settings .travis/settings.xml install -Dgpg.skip -B -V
6+
before_install:
7+
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
8+
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
9+
deploy:
10+
-
11+
provider: script
12+
script: .travis/deploy.sh
13+
skip_cleanup: true
14+
on:
15+
repo: Hi-Fi/robotframework-seleniumlibrary-java
16+
branch: master
17+
jdk: oraclejdk8
18+
-
19+
provider: script
20+
script: .travis/deploy.sh
21+
skip_cleanup: true
22+
on:
23+
repo: Hi-Fi/robotframework-seleniumlibrary-java
24+
tags: true
25+
jdk: oraclejdk8

.travis/deploy.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [ -z "$SONATYPE_USERNAME" ]
4+
then
5+
echo "error: please set SONATYPE_USERNAME and SONATYPE_PASSWORD environment variable"
6+
exit 1
7+
fi
8+
9+
if [ -z "$SONATYPE_PASSWORD" ]
10+
then
11+
echo "error: please set SONATYPE_PASSWORD environment variable"
12+
exit 1
13+
fi
14+
15+
mvn clean deploy --settings .travis/settings.xml -DskipTests=true -B -U -Prelease

.travis/settings.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
<servers>
6+
<server>
7+
<!-- Maven Central Deployment -->
8+
<id>ossrh</id>
9+
<username>${env.SONATYPE_USERNAME}</username>
10+
<password>${env.SONATYPE_PASSWORD}</password>
11+
</server>
12+
</servers>
13+
<profiles>
14+
<profile>
15+
<id>ossrh</id>
16+
<activation>
17+
<activeByDefault>true</activeByDefault>
18+
</activation>
19+
<properties>
20+
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
21+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
22+
</properties>
23+
</profile>
24+
</profiles>
25+
</settings>

DEPENDENCIES.md

8.03 KB
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building Robot Framework :: SeleniumLibrary 2.48.2.0-SNAPSHOT
[INFO] Building Robot Framework :: Selenium2Library 1.4.0.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ robotframework-seleniumlibrary ---
[INFO] com.github.hi-fi:robotframework-seleniumlibrary:jar:2.48.2.0-SNAPSHOT
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ robotframework-selenium2library-java ---
[INFO] com.github.markusbernhardt:robotframework-selenium2library-java:jar:1.4.0.8-SNAPSHOT
[INFO] +- org.robotframework:javalib-core:jar:1.2.1:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2:compile
[INFO] |  \- com.thoughtworks.paranamer:paranamer:jar:1.1.2:compile
[INFO] +- com.github.markusbernhardt:xml-doclet:jar:1.0.5:compile
[INFO] |  +- com.sun:tools:jar:1.7:system
[INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.12:compile
[INFO] +- org.seleniumhq.selenium:selenium-server:jar:2.48.2:compile
[INFO] |  +- com.beust:jcommander:jar:1.48:compile
[INFO] |  +- org.bouncycastle:bcprov-jdk15on:jar:1.48:compile
[INFO] |  +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:compile
[INFO] |  +- mx4j:mx4j-tools:jar:3.0.1:compile
[INFO] |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
[INFO] |  +- org.seleniumhq.selenium:jetty-repacked:jar:9.2.13.v20150730:compile
[INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] |  +- org.seleniumhq.selenium:jetty-rc-repacked:jar:5:compile
[INFO] |  +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.48.2:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.48.2:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-edge-driver:jar:2.48.2:compile
[INFO] |  |  |  \- commons-io:commons-io:jar:2.4:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.48.2:compile
[INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit:jar:2.18:compile
[INFO] |  |  |     +- xalan:xalan:jar:2.7.2:compile
[INFO] |  |  |     |  \- xalan:serializer:jar:2.7.2:compile
[INFO] |  |  |     +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] |  |  |     +- org.apache.httpcomponents:httpmime:jar:4.5:compile
[INFO] |  |  |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.17:compile
[INFO] |  |  |     +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] |  |  |     |  \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] |  |  |     +- net.sourceforge.nekohtml:nekohtml:jar:1.9.22:compile
[INFO] |  |  |     +- net.sourceforge.cssparser:cssparser:jar:0.9.16:compile
[INFO] |  |  |     |  \- org.w3c.css:sac:jar:1.3:compile
[INFO] |  |  |     \- org.eclipse.jetty.websocket:websocket-client:jar:9.2.12.v20150709:compile
[INFO] |  |  |        +- org.eclipse.jetty:jetty-util:jar:9.2.12.v20150709:compile
[INFO] |  |  |        +- org.eclipse.jetty:jetty-io:jar:9.2.12.v20150709:compile
[INFO] |  |  |        \- org.eclipse.jetty.websocket:websocket-common:jar:9.2.12.v20150709:compile
[INFO] |  |  |           \- org.eclipse.jetty.websocket:websocket-api:jar:9.2.12.v20150709:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.48.2:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.48.2:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.48.2:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-support:jar:2.48.2:compile
[INFO] |  |  +- org.webbitserver:webbit:jar:0.4.14:compile
[INFO] |  |  |  \- io.netty:netty:jar:3.5.2.Final:compile
[INFO] |  |  \- org.seleniumhq.selenium:selenium-leg-rc:jar:2.48.2:compile
[INFO] |  +- org.yaml:snakeyaml:jar:1.8:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- com.opera:operadriver:jar:1.5:compile
[INFO] |  +- com.opera:operalaunchers:jar:1.1:compile
[INFO] |  +- com.google.protobuf:protobuf-java:jar:2.4.1:compile
[INFO] |  +- com.google.guava:guava:jar:14.0:compile
[INFO] |  +- commons-jxpath:commons-jxpath:jar:1.3:compile
[INFO] |  \- org.ini4j:ini4j:jar:0.5.2:compile
[INFO] +- com.codeborne:phantomjsdriver:jar:1.4.3:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-api:jar:3.4.0:compile
[INFO] |  \- org.seleniumhq.selenium:selenium-remote-driver:jar:3.4.0:compile
[INFO] |     +- commons-logging:commons-logging:jar:1.2:compile
[INFO] |     +- org.apache.httpcomponents:httpcore:jar:4.4.6:compile
[INFO] |     +- net.java.dev.jna:jna:jar:4.1.0:compile
[INFO] |     \- net.java.dev.jna:jna-platform:jar:4.1.0:compile
[INFO] +- org.robotframework:robotframework:jar:3.0.2:compile
[INFO] +- com.github.detro.ghostdriver:phantomjsdriver:jar:1.1.0:compile
[INFO] +- org.robotframework:robotframework:jar:2.9.2:compile
[INFO] +- org.aspectj:aspectjrt:jar:1.8.7:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] |  \- junit:junit:jar:4.10:compile
[INFO] |     \- org.hamcrest:hamcrest-core:jar:1.1:compile
[INFO] +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.48.2:compile
[INFO] |  +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] |  +- com.google.code.gson:gson:jar:2.3.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-api:jar:2.48.2:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.1:compile
[INFO] |  |  +- org.apache.httpcomponents:httpcore:jar:4.4.3:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] |  +- net.java.dev.jna:jna:jar:4.1.0:compile
[INFO] |  \- net.java.dev.jna:jna-platform:jar:4.1.0:compile
[INFO] +- io.selendroid:selendroid-client:jar:0.17.0:compile
[INFO] |  +- io.selendroid:selendroid-common:jar:0.17.0:compile
[INFO] |  |  \- org.json:json:jar:20090211:compile
[INFO] |  \- io.selendroid:selendroid-server-common:jar:0.17.0:compile
[INFO] |     \- io.netty:netty-all:jar:4.0.21.Final:compile
[INFO] +- io.appium:java-client:jar:4.1.2:compile
[INFO] |  +- com.google.code.gson:gson:jar:2.7:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] |  +- commons-validator:commons-validator:jar:1.5.1:compile
[INFO] |  |  +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] |  |  \- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] |  +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] |  +- cglib:cglib-nodep:jar:3.2.4:compile
[INFO] |  +- org.springframework:spring-context:jar:4.3.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-core:jar:4.3.2.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile
[INFO] |  \- org.aspectj:aspectjweaver:jar:1.8.9:compile
[INFO] +- org.apache.commons:commons-exec:jar:1.3:compile
[INFO] \- com.machinepublishers:jbrowserdriver:jar:0.17.9:compile
[INFO]    +- org.apache.httpcomponents:httpclient-cache:jar:4.5.2:compile
[INFO]    +- org.zeroturnaround:zt-process:jar:1.3:compile
[INFO]    |  +- org.zeroturnaround:zt-exec:jar:1.7:compile
[INFO]    |  +- com.sun.jna:jna:jar:3.0.9:compile
[INFO]    |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO]    |  \- commons-io:commons-io:jar:2.2:compile
[INFO]    \- io.github.lukehutch:fast-classpath-scanner:jar:2.0.16:compile
[INFO] +- io.appium:java-client:jar:3.2.0:compile
[INFO] |  +- cglib:cglib:jar:3.1:compile
[INFO] |  |  \- org.ow2.asm:asm:jar:4.2:compile
[INFO] |  \- commons-validator:commons-validator:jar:1.4.1:compile
[INFO] |     +- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] |     \- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] \- org.apache.commons:commons-exec:jar:1.3:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.026 s
[INFO] Finished at: 2017-09-18T20:37:57+03:00
[INFO] Final Memory: 14M/491M
[INFO] Total time: 1.000 s
[INFO] Finished at: 2015-10-27T10:31:41+01:00
[INFO] Final Memory: 19M/309M
[INFO] ------------------------------------------------------------------------

README.md

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,49 @@
1-
Java port of the Selenium 2 (WebDriver) Python library for Robot Framework
1+
Java port of the Python based SeleniumLibrary for Robot Framework
22
==========================================================================
33

44
Introduction
55
------------
66

7-
Selenium2Library is a web testing library for Robot Framework that leverages
8-
the [Selenium 2 (WebDriver)](http://docs.seleniumhq.org/docs/03_webdriver.jsp)
9-
libraries from the [Selenium](http://docs.seleniumhq.org) project.
10-
It is modeled after (and forked from) the Robot Framework
11-
[SeleniumLibrary](http://code.google.com/p/robotframework-seleniumlibrary/)
12-
library, but re-implemented to use Selenium 2 and WebDriver technologies.
7+
SeleniumLibrary is a web testing library for Robot Framework that leverages
8+
the Selenium libraries from the [Selenium](http://docs.seleniumhq.org) project.
9+
10+
Version number follows Selenium's version numbers (first 3 numbers), and 4th number is reserved for e.g. issue fixes.
1311
* More information about this library can be found in the
14-
[Keyword Documentation](http://search.maven.org/remotecontent?filepath=com/github/markusbernhardt/robotframework-selenium2library-java/1.4.0.8/robotframework-selenium2library-java-1.4.0.8-libdoc.html).
12+
[Keyword Documentation](http://search.maven.org/remotecontent?filepath=com/github/hi_fi/robotframework-seleniumlibrary-java/2.48.2.0/robotframework-seleniumlibrary-java-2.48.2.0-libdoc.html).
1513
* For keyword completion in RIDE you can download this
16-
[Library Specs](http://search.maven.org/remotecontent?filepath=com/github/markusbernhardt/robotframework-selenium2library-java/1.4.0.8/robotframework-selenium2library-java-1.4.0.8-libdoc.xml)
14+
[Library Specs](http://search.maven.org/remotecontent?filepath=com/github/hi_fi/robotframework-seleniumlibrary-java/2.48.2.0/robotframework-seleniumlibrary-java-2.48.2.0-libdoc.xml)
1715
and place it in your PYTHONPATH.
1816

19-
This Java port of the existing Selenium2Library was created to enable
20-
the usage of a Selenium 2 library with Jython.
21-
* Python Selenium2Library needs Python 2.6 upwards
22-
* The latests stable release of Jython is 2.5.3
23-
* Jython 2.7b2 is a beta version
24-
* There seems to be only slow development of a stable Jython 2.7
17+
This Java version of SeleniumLibrary exists because of easier dependency management when Robot Framework is used in Java-projects.
2518

2619
Usage
2720
-----
2821

29-
This library is a direct replacement to the Python Selenium2Library.
30-
There are almost no changes necesssary to the existing code. You
31-
can execute the same testcases and keywords with Python and Jython.
22+
This library is a quite direct alternative to the Python SeleniumLibrary.
3223

3324
If you are using the robotframework-maven-plugin you can
3425
use this library by adding the following dependency to
3526
your pom.xml:
3627

3728
<dependency>
38-
<groupId>com.github.markusbernhardt</groupId>
39-
<artifactId>robotframework-selenium2library-java</artifactId>
40-
<version>1.4.0.8</version>
29+
<groupId>com.github.hi_fi</groupId>
30+
<artifactId>robotframework-seleniumlibrary-java</artifactId>
31+
<version>2.48.2.0</version>
4132
<scope>test</scope>
4233
</dependency>
4334

4435
If you cannot use the robotframework-maven-plugin you can use the
45-
[jar-with-dependencies](http://search.maven.org/remotecontent?filepath=com/github/markusbernhardt/robotframework-selenium2library-java/1.4.0.8/robotframework-selenium2library-java-1.4.0.8-jar-with-dependencies.jar),
36+
[jar-with-dependencies](http://search.maven.org/remotecontent?filepath=com/github/hi_fi/robotframework-seleniumlibrary-java/2.48.2.0/robotframework-seleniumlibrary-java-2.48.2.0-jar-with-dependencies.jar),
4637
which contains all required libraries.
4738

4839
If you want more control and feel adventurous you could you use this
49-
[jar](http://search.maven.org/remotecontent?filepath=com/github/markusbernhardt/robotframework-selenium2library-java/1.4.0.8/robotframework-selenium2library-java-1.4.0.8.jar)
40+
[jar](http://search.maven.org/remotecontent?filepath=com/github/hi_fi/robotframework-seleniumlibrary-java/2.48.2.0/robotframework-seleniumlibrary-java-2.48.2.0.jar)
5041
and provide all required libraries from this [list](DEPENDENCIES.md) on your own.
5142

5243
Differences
5344
-----------
5445

55-
* Selenium Speed not implemented
56-
57-
Setting the Selenium Speed is deprecated several years and not
58-
implemented in WebDriver. The Python Selenium2Library tries to
59-
emulate the old behavior. I have not implemented this emulation
60-
for the following reasons.
61-
62-
* As far as I understand the emulation is broken and only works
63-
with RemoteWebDriver
64-
* I do not know how to implement that in a correct way with Java
65-
* There is a reason, why this is not implemented in WebDriver.
66-
It's a bad idea.
46+
* Some keyword differences between this and [Python version](https://github.com/robotframework/SeleniumLibrary) exists. (Same) keywords should be aligned in upcoming versions.
6747

6848
Demo
6949
----
@@ -79,5 +59,5 @@ Getting Help
7959
The [user group for Robot Framework](https://groups.google.com/forum/#!forum/robotframework-users)
8060
is the best place to get help. Consider including in the post:
8161
* Full description of what you are trying to do and expected outcome
82-
* Version number of Selenium2Library, Robot Framework, and Selenium
62+
* Version number of SeleniumLibrary, Robot Framework, and Selenium
8363
* StackTraces or other debug output containing error information

0 commit comments

Comments
 (0)