From 9fa9e964ec836237e3eb13e01229cb70ca936db5 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:21:55 +0300 Subject: [PATCH] [dotnet] Fix WSS scheme determination for DevTools connection (#13131) Fix WSS scheme determination for DevTools connection --- dotnet/src/webdriver/DevTools/DevToolsSession.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/webdriver/DevTools/DevToolsSession.cs b/dotnet/src/webdriver/DevTools/DevToolsSession.cs index 2e2eb94b72b5c..47ca940da8470 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsSession.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsSession.cs @@ -68,7 +68,7 @@ public DevToolsSession(string endpointAddress) this.CommandTimeout = TimeSpan.FromSeconds(30); this.debuggerEndpoint = endpointAddress; - if (endpointAddress.StartsWith("ws:")) + if (endpointAddress.StartsWith("ws", StringComparison.InvariantCultureIgnoreCase)) { this.websocketAddress = endpointAddress; }