correctly checks the driver supports DevTools
fixes
@@ -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");
}
