Esempio n. 1
0
        internal static IDriverService StartService(WebDriver wd)
        {
            ExtendCapabilities(wd, false);

            var svc = new DriverService();

            svc.AddArgument("--host=localhost");
            svc.AddArgument("--port=" + svc.IPEndPoint.Port.ToString());
            svc.Start("edgedriver.exe", true);
            return(svc);
        }
Esempio n. 2
0
        internal static IDriverService StartService(WebDriver wd)
        {
            ExtendCapabilities(wd, false);

            var svc = new DriverService();

            svc.AddArgument("--webdriver=" + svc.IPEndPoint.ToString());
            svc.AddArgument("--webdriver-loglevel=ERROR");
            svc.AddArgument("--ignore-ssl-errors=true");
            svc.Start("phantomjs.exe");
            return(svc);
        }
Esempio n. 3
0
        internal static IDriverService StartService(WebDriver wd)
        {
            ExtendCapabilities(wd, false);

            var svc = new DriverService();

            svc.AddArgument("/host=" + svc.IPEndPoint.Address.ToString());
            svc.AddArgument("/port=" + svc.IPEndPoint.Port.ToString());
            svc.AddArgument("/log-level=ERROR");
            svc.AddArgument("/silent");

            string serverName;

            if (wd.Capabilities.TryGetValue("ie.serverBinary", out serverName))
            {
                wd.Capabilities.Remove("ie.serverBinary");
            }
            else
            {
                serverName = "iedriver.exe";
            }
            svc.Start(serverName, true);
            return(svc);
        }