From 87e4ce010d41010b93d5e2b2fa25a461d86a87ef Mon Sep 17 00:00:00 2001 From: Krishna Suravarapu <36037520+KrishnaSuravarapu@users.noreply.github.com> Date: Thu, 24 Aug 2023 23:41:14 +0530 Subject: [PATCH] Chore: Fix Proxy Breaking in RemoteWebDriver --- java/src/org/openqa/selenium/manager/SeleniumManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/openqa/selenium/manager/SeleniumManager.java b/java/src/org/openqa/selenium/manager/SeleniumManager.java index e2a37fe8e8864..b3608892921de 100644 --- a/java/src/org/openqa/selenium/manager/SeleniumManager.java +++ b/java/src/org/openqa/selenium/manager/SeleniumManager.java @@ -275,7 +275,7 @@ public Result getDriverPath(Capabilities options, boolean offline) { arguments.add("--offline"); } - Proxy proxy = (Proxy) options.getCapability("proxy"); + Proxy proxy = Proxy.extractFrom(options); if (proxy != null) { if (proxy.getSslProxy() != null) { arguments.add("--proxy");