Skip to content

Commit c43386f

Browse files
committed
[dotnet] Adjust exception message when bidi is not enabled
1 parent 0666cb4 commit c43386f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static async Task<BiDi> AsBidirectionalAsync(this IWebDriver webDriver)
99
{
1010
var webSocketUrl = ((IHasCapabilities)webDriver).Capabilities.GetCapability("webSocketUrl");
1111

12-
if (webSocketUrl is null) throw new System.Exception("The driver is not compatible with bidirectional protocol.");
12+
if (webSocketUrl is null) throw new System.Exception("The driver is not compatible with bidirectional protocol or it is not enabled in driver options.");
1313

1414
var bidi = await BiDi.ConnectAsync(webSocketUrl.ToString()!).ConfigureAwait(false);
1515

0 commit comments

Comments
 (0)