From d71d8302e67004bb6583a95263bd68abb3604b3f Mon Sep 17 00:00:00 2001 From: "dmitry.bogatko" Date: Thu, 19 Sep 2024 18:57:19 +0300 Subject: [PATCH] [#262] made CreateWebDriverInstance static --- .../src/Aquality.Selenium/Browsers/LocalBrowserFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquality.Selenium/src/Aquality.Selenium/Browsers/LocalBrowserFactory.cs b/Aquality.Selenium/src/Aquality.Selenium/Browsers/LocalBrowserFactory.cs index fe29db1..801b3ea 100644 --- a/Aquality.Selenium/src/Aquality.Selenium/Browsers/LocalBrowserFactory.cs +++ b/Aquality.Selenium/src/Aquality.Selenium/Browsers/LocalBrowserFactory.cs @@ -107,7 +107,7 @@ private DriverContext GetDriverContext(Func driverServiceProvi } } - private DriverContext CreateWebDriverInstance(Func driverServiceProvider, DriverOptions driverOptions, TimeSpan commandTimeout) where T : WebDriver + private static DriverContext CreateWebDriverInstance(Func driverServiceProvider, DriverOptions driverOptions, TimeSpan commandTimeout) where T : WebDriver { var driverService = driverServiceProvider.Invoke(); var driver = (T)Activator.CreateInstance(typeof(T), driverService, driverOptions, commandTimeout);