We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed99506 commit 7902e1dCopy full SHA for 7902e1d
dotnet/src/webdriver/BiDi/Modules/Script/EvaluateCommand.cs
@@ -49,7 +49,7 @@ public RemoteValue AsSuccessResult()
49
return success.Result;
50
}
51
52
- throw new BiDiException(ToString());
+ throw new InvalidCastException($"Expected the result to be {nameof(EvaluateResultSuccess)}, but received {this}");
53
54
55
0 commit comments