private static IWebDriver SetupWebDriver(IConfigurationRoot configuration) { var options = TestSettingsReader.DesiredBrowser(configuration); options.PlatformName = TestSettingsReader.DesiredOperatingSystem(configuration); var hub = TestSettingsReader.SeleniumHubLocation(configuration); return(new RemoteWebDriver(hub, options.ToCapabilities())); }
private static string MakePath(IConfigurationRoot configuration) { var date = DateTime.Now.ToString("yyyy-MM-dd"); return(TestSettingsReader.ScreenshotFolderLocation(configuration) + $"{date}\\"); }