From 804c5146fda841d70f222f691847a61493815a95 Mon Sep 17 00:00:00 2001 From: thc202 Date: Thu, 25 Jan 2018 23:31:23 +0000 Subject: [PATCH] Ignore empty URL when launching the browser Change ZestClientLaunch to ignore the URL if also empty (preventing an error thrown by the browser, e.g. Chrome, Firefox). --- src/main/java/org/mozilla/zest/core/v1/ZestClientLaunch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mozilla/zest/core/v1/ZestClientLaunch.java b/src/main/java/org/mozilla/zest/core/v1/ZestClientLaunch.java index c2d63002..bae8a7c3 100644 --- a/src/main/java/org/mozilla/zest/core/v1/ZestClientLaunch.java +++ b/src/main/java/org/mozilla/zest/core/v1/ZestClientLaunch.java @@ -212,7 +212,7 @@ public String invoke(ZestRuntime runtime) throws ZestClientFailException { runtime.addWebDriver(getWindowHandle(), driver); - if (this.url != null) { + if (this.url != null && !this.url.isEmpty()) { driver.get(runtime.replaceVariablesInString(this.url, true)); }