From c43386f484c94e6f1cd0be681b6e7f881c365c1a Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:11:00 +0300 Subject: [PATCH] [dotnet] Adjust exception message when bidi is not enabled --- dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs b/dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs index 199f12cc4a401..d9d46fe7d2b28 100644 --- a/dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs +++ b/dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs @@ -9,7 +9,7 @@ public static async Task AsBidirectionalAsync(this IWebDriver webDriver) { var webSocketUrl = ((IHasCapabilities)webDriver).Capabilities.GetCapability("webSocketUrl"); - if (webSocketUrl is null) throw new System.Exception("The driver is not compatible with bidirectional protocol."); + if (webSocketUrl is null) throw new System.Exception("The driver is not compatible with bidirectional protocol or it is not enabled in driver options."); var bidi = await BiDi.ConnectAsync(webSocketUrl.ToString()!).ConfigureAwait(false);