Skip to content

Commit

Permalink
[dotnet] Adjust test to utilize correct exception when authenticator …
Browse files Browse the repository at this point in the history
…was removed
  • Loading branch information
nvborisenko committed Jan 31, 2025
1 parent 0c704ac commit ee836a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void ShouldBeAbleToRemoveAuthenticator()
((WebDriver)driver).RemoveVirtualAuthenticator(virtualAuthenticatorId);

// Since the authenticator was removed, any operation using it will throw an error
Assert.ThrowsException<WebDriverArgumentException>(() => ((WebDriver)driver).GetCredentials());
Assert.ThrowsException<InvalidOperationException>(() => ((WebDriver)driver).GetCredentials());
}

[TestMethod]
Expand Down

0 comments on commit ee836a5

Please sign in to comment.