Skip to content

Commit

Permalink
Merge pull request #73 from jvervaec/use-selenium-3.4.0
Browse files Browse the repository at this point in the history
Use selenium 3.4.0
  • Loading branch information
alechenninger committed Aug 23, 2017
2 parents 56ca37c + 61dd915 commit 6adec38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ maven
<dependency>
<groupId>com.redhat.darcy</groupId>
<artifactId>darcy-webdriver</artifactId>
<version>0.3.3-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.redhat.darcy</groupId>
<artifactId>darcy-webdriver</artifactId>
<version>0.3.3-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand All @@ -13,7 +13,7 @@
<properties>
<version.synq>0.1.2-SNAPSHOT</version.synq>
<version.darcy-web>0.3.0-SNAPSHOT</version.darcy-web>
<version.selenium>2.53.1</version.selenium>
<version.selenium>3.4.0</version.selenium>
<version.operadriver>1.5</version.operadriver>
<version.guice>4.0-beta5</version.guice>
<version.guiceberry>3.3.1</version.guiceberry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@

import org.hamcrest.Matcher;
import org.openqa.selenium.NoSuchFrameException;
import org.openqa.selenium.NoSuchSessionException;
import org.openqa.selenium.NoSuchWindowException;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.remote.SessionNotFoundException;

import java.io.IOException;
import java.io.OutputStream;
Expand Down Expand Up @@ -365,7 +365,7 @@ public TargetedWebDriver getWrappedDriver() {
private void attempt(Runnable action) {
try {
action.run();
} catch (NoSuchFrameException | NoSuchWindowException | SessionNotFoundException e) {
} catch (NoSuchFrameException | NoSuchWindowException | NoSuchSessionException e) {
throw new FindableNotPresentException(this, e);
}
}
Expand All @@ -377,7 +377,7 @@ private void attempt(Runnable action) {
private <T> T attemptAndGet(Supplier<T> action) {
try {
return action.get();
} catch (NoSuchFrameException | NoSuchWindowException | SessionNotFoundException e) {
} catch (NoSuchFrameException | NoSuchWindowException | NoSuchSessionException e) {
throw new FindableNotPresentException(this, e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import static org.hamcrest.Matchers.instanceOf;
import static org.junit.Assert.assertThat;
import static org.junit.Assume.assumeNotNull;
import static org.junit.Assume.assumeTrue;

import com.redhat.darcy.webdriver.internal.CachingTargetLocator;
Expand All @@ -37,6 +38,7 @@ public class FirefoxBrowserFactoryTest {
@Before
public void checkForDriver() {
assumeTrue(System.getProperty("java.class.path").contains("firefox-driver"));
assumeNotNull(System.getProperty("webdriver.gecko.driver"));
}

@After
Expand Down

0 comments on commit 6adec38

Please sign in to comment.