diff --git a/src/main/java/org/nexial/core/plugins/base/AwtUtils.java b/src/main/java/org/nexial/core/plugins/base/AwtUtils.java index 8284dfc1e..5b185e3d9 100755 --- a/src/main/java/org/nexial/core/plugins/base/AwtUtils.java +++ b/src/main/java/org/nexial/core/plugins/base/AwtUtils.java @@ -78,8 +78,13 @@ public static Dimension getScreenDimension(int monitorIndex) { @Nullable public static GraphicsDevice[] getAvailableScreens() { - GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); - return ge == null ? null : ge.getScreenDevices(); + try { + GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); + return ge == null ? null : ge.getScreenDevices(); + } catch (Throwable e) { + ConsoleUtils.error("Error when determining available screen(s): " + e.getMessage()); + return null; + } } diff --git a/src/main/java/org/nexial/core/plugins/web/WebCommand.java b/src/main/java/org/nexial/core/plugins/web/WebCommand.java index 9e12358f0..80cc24bfa 100644 --- a/src/main/java/org/nexial/core/plugins/web/WebCommand.java +++ b/src/main/java/org/nexial/core/plugins/web/WebCommand.java @@ -3044,11 +3044,8 @@ protected StepResult doubleClickInternal(String locator) { boolean useJS = context.getBooleanConfig(getTarget(), getProfile(), FORCE_JS_DBLCLICK); if (useJS) { - if (BooleanUtils.toBoolean(Objects.toString(jsExecutor.executeScript(JsLib.doubleClick(), element)))) { - return StepResult.success("successfully JS double-clicked on web element '" + locator + "'"); - } else { - return StepResult.success("FAILED to JS double-clicked on web element '" + locator + "'"); - } + jsExecutor.executeScript(JsLib.doubleClick(), element); + return StepResult.success("successfully JS double-clicked on web element '" + locator + "'"); } else { new Actions(driver).moveToElement(element).doubleClick(element).build().perform(); return StepResult.success("double-clicked on web element '" + locator + "'"); diff --git a/src/main/kotlin/org/nexial/core/plugins/web/CloudWebTestingPlatform.kt b/src/main/kotlin/org/nexial/core/plugins/web/CloudWebTestingPlatform.kt index 4d03a5b60..68a7c7aa4 100644 --- a/src/main/kotlin/org/nexial/core/plugins/web/CloudWebTestingPlatform.kt +++ b/src/main/kotlin/org/nexial/core/plugins/web/CloudWebTestingPlatform.kt @@ -135,7 +135,7 @@ abstract class CloudWebTestingPlatform protected constructor(protected var conte // } @JvmStatic - protected fun formatStatusDescription(summary: ExecutionSummary): String { + fun formatStatusDescription(summary: ExecutionSummary): String { return "total: ${summary.totalSteps}, " + "pass: ${summary.passCount}, " + "fail: ${summary.failCount}, " +