Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatov committed Jun 27, 2022
1 parent 00fce38 commit 014e2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/JavaScriptEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public JavaScriptEngine(IWebDriver driver)
this.session = new Lazy<DevToolsSession>(() =>
{
IDevTools devToolsDriver = driver as IDevTools;
if (session == null)
if (devToolsDriver == null)
{
throw new WebDriverException("Driver must implement IDevTools to use these features");
}
Expand Down

0 comments on commit 014e2ff

Please sign in to comment.