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

Commit 562d59f

Browse files
committed
Added SeleniumLibraryNonFatalException to catch block in the CustomRobotDriverElement constr.
1 parent d7c69cc commit 562d59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/markusbernhardt/seleniumlibrary/CustomRobotDriverElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public CustomRobotDriverElement() throws NoSuchFieldException, IllegalAccessExce
2222
try {
2323
CustomRobotDriverElement.s = getLibraryInstance();
2424
} catch (javax.script.ScriptException e) {
25-
e.printStackTrace();
25+
throw new SeleniumLibraryNonFatalException("Cannot create SeleniumLibrary instance: " + e.getMessage());
2626
}
2727
Field bmField = SeleniumLibrary.class.getDeclaredField("bm");
2828
bmField.setAccessible(true);

0 commit comments

Comments
 (0)