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);