public static IWebDriver GetLocalChromeHeadless() { ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.AddArguments("--headless"); chromeOptions.AddArgument("no-sandbox"); return(new ChromeDriver(GeneralHelpers.GetProjectBinDebugPath(), chromeOptions)); }
public static IWebDriver GetLocalChrome() { ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.AddArgument("start-maximized"); chromeOptions.AddArgument("enable-automation"); chromeOptions.AddArgument("--no-sandbox"); chromeOptions.AddArgument("--disable-infobars"); chromeOptions.AddArgument("--disable-dev-shm-usage"); chromeOptions.AddArgument("--disable-browser-side-navigation"); chromeOptions.AddArgument("--disable-gpu"); chromeOptions.AddArgument("--disable-notifications"); chromeOptions.PageLoadStrategy = PageLoadStrategy.Normal; return(new ChromeDriver(GeneralHelpers.GetProjectBinDebugPath(), chromeOptions)); }
public static IWebDriver GetLocalInternetExplorer() { return(new InternetExplorerDriver(GeneralHelpers.GetProjectBinDebugPath())); }
public static IWebDriver GetLocalFirefox() { return(new FirefoxDriver(GeneralHelpers.GetProjectBinDebugPath())); }
public static IWebDriver GetLocalEdge() { return(new EdgeDriver(GeneralHelpers.GetProjectBinDebugPath())); }