Skip to content

Commit

Permalink
[#262] made CreateWebDriverInstance static
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry.bogatko committed Sep 19, 2024
1 parent 369cfad commit d71d830
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private DriverContext GetDriverContext<T>(Func<DriverService> driverServiceProvi
}
}

private DriverContext CreateWebDriverInstance<T>(Func<DriverService> driverServiceProvider, DriverOptions driverOptions, TimeSpan commandTimeout) where T : WebDriver
private static DriverContext CreateWebDriverInstance<T>(Func<DriverService> driverServiceProvider, DriverOptions driverOptions, TimeSpan commandTimeout) where T : WebDriver
{
var driverService = driverServiceProvider.Invoke();
var driver = (T)Activator.CreateInstance(typeof(T), driverService, driverOptions, commandTimeout);
Expand Down

0 comments on commit d71d830

Please sign in to comment.