Skip to content

Commit 81707fb

Browse files
committed
WDBS: Including original WebDriver exception into SeleniumException
1 parent d5b8a91 commit 81707fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/com/thoughtworks/selenium/webdriven/ElementFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public WebElement findElement(WebDriver driver, String locator) {
7979

8080
return toReturn;
8181
} catch (WebDriverException e) {
82-
throw new SeleniumException("Element " + locator + " not found");
82+
throw new SeleniumException("Element " + locator + " not found", e);
8383
}
8484
}
8585

0 commit comments

Comments
 (0)