diff --git a/README.md b/README.md
index 5a557a4..ce7103b 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ maven
com.redhat.darcy
darcy-webdriver
- 0.3.3-SNAPSHOT
+ 0.4.0-SNAPSHOT
```
diff --git a/pom.xml b/pom.xml
index 892805a..5257b08 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
com.redhat.darcy
darcy-webdriver
- 0.3.3-SNAPSHOT
+ 0.4.0-SNAPSHOT
jar
${project.groupId}:${project.artifactId}
@@ -13,7 +13,7 @@
0.1.2-SNAPSHOT
0.3.0-SNAPSHOT
- 2.53.1
+ 3.4.0
1.5
4.0-beta5
3.3.1
diff --git a/src/main/java/com/redhat/darcy/webdriver/WebDriverBrowser.java b/src/main/java/com/redhat/darcy/webdriver/WebDriverBrowser.java
index fbb68d2..3f2dc56 100644
--- a/src/main/java/com/redhat/darcy/webdriver/WebDriverBrowser.java
+++ b/src/main/java/com/redhat/darcy/webdriver/WebDriverBrowser.java
@@ -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;
@@ -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);
}
}
@@ -377,7 +377,7 @@ private void attempt(Runnable action) {
private T attemptAndGet(Supplier action) {
try {
return action.get();
- } catch (NoSuchFrameException | NoSuchWindowException | SessionNotFoundException e) {
+ } catch (NoSuchFrameException | NoSuchWindowException | NoSuchSessionException e) {
throw new FindableNotPresentException(this, e);
}
}
diff --git a/src/test/java/com/redhat/darcy/webdriver/FirefoxBrowserFactoryTest.java b/src/test/java/com/redhat/darcy/webdriver/FirefoxBrowserFactoryTest.java
index 7e780e5..25c722e 100644
--- a/src/test/java/com/redhat/darcy/webdriver/FirefoxBrowserFactoryTest.java
+++ b/src/test/java/com/redhat/darcy/webdriver/FirefoxBrowserFactoryTest.java
@@ -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;
@@ -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