From 7df4b26133de9bad6ecaa7b8a64bc7b54075a1b6 Mon Sep 17 00:00:00 2001 From: DerekJLeggett Date: Fri, 24 Mar 2023 20:03:41 -0700 Subject: [PATCH] Updated remote grid configuration --- .../java/jp/vmi/selenium/webdriver/RemoteWebDriverFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/jp/vmi/selenium/webdriver/RemoteWebDriverFactory.java b/src/main/java/jp/vmi/selenium/webdriver/RemoteWebDriverFactory.java index a8f76d2c..d9e9ccd8 100644 --- a/src/main/java/jp/vmi/selenium/webdriver/RemoteWebDriverFactory.java +++ b/src/main/java/jp/vmi/selenium/webdriver/RemoteWebDriverFactory.java @@ -31,7 +31,8 @@ public String getBrowserName() { @Override public WebDriver newInstance(DriverOptions driverOptions) { - DesiredCapabilities caps = new DesiredCapabilities(getBrowserName(), "", Platform.ANY); + DesiredCapabilities caps = new DesiredCapabilities(); + caps.setBrowserName(getBrowserName()); setupProxy(caps, driverOptions); caps.merge(driverOptions.getCapabilities()); if (driverOptions.has(REMOTE_BROWSER)) {