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

Commit 6b3b3ec

Browse files
committed
Corrected by review comments - updated constructor issues of CustomRobotDriverElement class
1 parent 47c60db commit 6b3b3ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.github.markusbernhardt.seleniumlibrary.keywords.BrowserManagement;
44
import com.github.markusbernhardt.seleniumlibrary.keywords.Robot;
5-
import org.apache.commons.lang3.exception.ExceptionUtils;
65
import org.openqa.selenium.WebDriver;
76

87
import javax.script.ScriptEngine;
@@ -23,8 +22,7 @@ public CustomRobotDriverElement() throws NoSuchFieldException, IllegalAccessExce
2322
try {
2423
CustomRobotDriverElement.s = getLibraryInstance();
2524
} catch (ScriptException e) {
26-
throw new SeleniumLibraryNonFatalException("Cannot create SeleniumLibrary instance: \n"
27-
+ ExceptionUtils.getStackTrace(e));
25+
throw new SeleniumLibraryNonFatalException("Cannot create SeleniumLibrary instance.", e);
2826
}
2927
Field bmField = SeleniumLibrary.class.getDeclaredField("bm");
3028
bmField.setAccessible(true);

0 commit comments

Comments
 (0)