Example #1
0
        public static IWebDriver GetLocalChromeHeadless()
        {
            ChromeOptions chromeOptions = new ChromeOptions();

            chromeOptions.AddArguments("--headless");
            chromeOptions.AddArgument("no-sandbox");

            return(new ChromeDriver(GeneralHelpers.GetProjectBinDebugPath(), chromeOptions));
        }
Example #2
0
        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));
        }
Example #3
0
 public static IWebDriver GetLocalInternetExplorer()
 {
     return(new InternetExplorerDriver(GeneralHelpers.GetProjectBinDebugPath()));
 }
Example #4
0
 public static IWebDriver GetLocalFirefox()
 {
     return(new FirefoxDriver(GeneralHelpers.GetProjectBinDebugPath()));
 }
Example #5
0
 public static IWebDriver GetLocalEdge()
 {
     return(new EdgeDriver(GeneralHelpers.GetProjectBinDebugPath()));
 }