Пример #1
0
        internal static IDriverService StartService(WebDriver wd) {
            ExtendCapabilities(wd, false);

            var svc = new DriverService();
            svc.AddArgument("--port=" + svc.IPEndPoint.Port.ToString());
            svc.AddArgument("--silent");
            svc.Start("chromedriver.exe");
            return svc;
        }
Пример #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;
        }
Пример #3
0
        internal static IDriverService StartService(WebDriver wd) {
            ExtendCapabilities(wd, false);

            var svc = new DriverService(IPAddress.Loopback);
            svc.AddArgument("/host=" + svc.IPEndPoint.Address.ToString());
            svc.AddArgument("/port=" + svc.IPEndPoint.Port.ToString());
            svc.AddArgument("/log-level=ERROR");
            svc.AddArgument("/silent");
            svc.Start("iedriver.exe", true);
            return svc;
        }
Пример #4
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;
        }
Пример #5
0
 public FirefoxService()
 {
     _this_assembly_dir = IOExt.GetAssemblyDirectory();
     _working_dir       = DriverService.GetTempFolder();
     _profil_cache_path = Path.Combine(_working_dir, PROFILE_CACHE_FILENAME);
 }