Skip to content

Commit

Permalink
[dotnet] Adjust exception message when bidi is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Sep 12, 2024
1 parent 0666cb4 commit c43386f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/BiDi/WebDriver.Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static async Task<BiDi> 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);

Expand Down

0 comments on commit c43386f

Please sign in to comment.