Skip to content

Commit e77777c

Browse files
committed
[dotnet] Fix devtools check in NetworkManager
1 parent d922168 commit e77777c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/NetworkManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public NetworkManager(IWebDriver driver)
4545
this.session = new Lazy<DevToolsSession>(() =>
4646
{
4747
IDevTools devToolsDriver = driver as IDevTools;
48-
if (session == null)
48+
if (devToolsDriver == null)
4949
{
5050
throw new WebDriverException("Driver must implement IDevTools to use these features");
5151
}

0 commit comments

Comments
 (0)