-
Notifications
You must be signed in to change notification settings - Fork 62
Supports Selenium 2.45, TAB, BACKSPACE, Selenium Grid File Upload #144
base: master
Are you sure you want to change the base?
Changes from all commits
e24e2b6
38b26c1
0de55c5
570dbbc
63a4e27
ccd2af6
eb8929a
0546c6a
301b5a2
fc6f326
e97fabe
400f88a
88c2000
150e607
b27278f
37a22f1
9aac378
3608ef8
341a88f
626e69d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| <modelVersion>4.0.0</modelVersion> | ||
| <artifactId>xebium</artifactId> | ||
| <groupId>com.xebia.incubator</groupId> | ||
| <version>0.13-SNAPSHOT</version> | ||
| <version>0.15-SNAPSHOT-mqm</version> | ||
| <name>Xebium</name> | ||
| <packaging>jar</packaging> | ||
|
|
||
|
|
@@ -29,20 +29,21 @@ | |
| </licenses> | ||
|
|
||
| <properties> | ||
| <selenium.version>2.42.0</selenium.version> | ||
| <fitnesse.version>20130530</fitnesse.version> | ||
| <selenium.version>2.45.0</selenium.version> | ||
| <fitnesse.version>20150424</fitnesse.version> | ||
| <fitnesse.port>8000</fitnesse.port> | ||
| <fitnesse.expiration>0</fitnesse.expiration> | ||
| <orgjson.version>20140107</orgjson.version> | ||
| <maven-classpath-plugin.version>1.7</maven-classpath-plugin.version> | ||
| <slf4j.version>1.6.4</slf4j.version> | ||
| <slf4j.version>1.6.6</slf4j.version> | ||
| <operadriver.version>1.1</operadriver.version> | ||
| <phantomjsdriver.version>1.0.3</phantomjsdriver.version> | ||
| <phantomjsdriver.version>1.2.1</phantomjsdriver.version> | ||
| <commons-lang.version>2.6</commons-lang.version> | ||
| </properties> | ||
|
|
||
| <scm> | ||
| <connection>scm:git:git://github.com/xebia/Xebium.git</connection> | ||
| <developerConnection>scm:git:[email protected]:xebia/Xebium.git</developerConnection> | ||
| <connection>scm:git:git://github.com/sglebs/Xebium.git</connection> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. idem |
||
| <developerConnection>scm:git:[email protected]:sglebs/Xebium.git</developerConnection> | ||
| <url>scm:git:http://github.com/xebia/Xebium</url> | ||
| </scm> | ||
|
|
||
|
|
@@ -78,7 +79,7 @@ | |
| <version>${operadriver.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.github.detro.ghostdriver</groupId> | ||
| <groupId>com.codeborne</groupId> | ||
| <artifactId>phantomjsdriver</artifactId> | ||
| <version>${phantomjsdriver.version}</version> | ||
| </dependency> | ||
|
|
@@ -87,6 +88,11 @@ | |
| <artifactId>commons-lang</artifactId> | ||
| <version>${commons-lang.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.json</groupId> | ||
| <artifactId>json</artifactId> | ||
| <version>${orgjson.version}</version> | ||
| </dependency> | ||
| <!-- for some reason FitNesse appears to conflict with guava 15 from selenium --> | ||
| <dependency> | ||
| <groupId>com.google.guava</groupId> | ||
|
|
@@ -131,7 +137,7 @@ | |
| <dependency> | ||
| <groupId>org.hamcrest</groupId> | ||
| <artifactId>hamcrest-all</artifactId> | ||
| <version>1.1</version> | ||
| <version>1.3</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
|
|
@@ -274,7 +280,7 @@ | |
| <profile> | ||
| <id>fitnesse-integration</id> | ||
| <activation> | ||
| <activeByDefault>true</activeByDefault> | ||
| <activeByDefault>false</activeByDefault> | ||
|
||
| </activation> | ||
| <build> | ||
| <plugins> | ||
|
|
@@ -325,7 +331,7 @@ | |
| <name>Xebia B.V.</name> | ||
| <url>http://xebia.com</url> | ||
| </organization> | ||
|
|
||
| <developers> | ||
| <developer> | ||
| <id>sgrijpink</id> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,6 +126,10 @@ public void setBrowser(String browser) { | |
| this.browser = browser; | ||
| } | ||
|
|
||
| public String getBrowser() { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use tabs for indentations (though I realize we're being inconsistent about that, #147) |
||
| return this.browser; | ||
| } | ||
|
|
||
| public void setCustomProfilePreferencesFile( | ||
| File customProfilePreferencesFile) { | ||
| this.customProfilePreferencesFile = customProfilePreferencesFile; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,7 +99,9 @@ public Capabilities getCapabilities() { | |
| * @throws RuntimeException in case of any error | ||
| */ | ||
| public WebDriver get() { | ||
| return new Augmenter().augment(new RemoteWebDriver(getRemote(), getCapabilities())); | ||
| RemoteWebDriver remoteWebDriver = new RemoteWebDriver(getRemote(), getCapabilities()) ; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. spurious spaces |
||
| remoteWebDriver.setFileDetector(new org.openqa.selenium.remote.LocalFileDetector()); // https://saucelabs.com/resources/selenium-file-upload | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks neat, can we add a test for this? |
||
| return new Augmenter().augment(remoteWebDriver); | ||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be in the PR