Skip to content

Commit

Permalink
[dotnet] Fix devtools check in NetworkManager (#14638)
Browse files Browse the repository at this point in the history
[dotnet] Fix devtools check in NetworkManager
  • Loading branch information
RenderMichael authored Oct 24, 2024
1 parent 833efa9 commit a149d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public NetworkManager(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 a149d9e

Please sign in to comment.