Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Start()
- {
- this.driverServiceProcess = new Process();
- if (this.user != null)
- {
- this.driverServiceProcess.StartInfo.UserName = user.Name;
- this.driverServiceProcess.StartInfo.Password = user.Password;
- this.driverServiceProcess.StartInfo.Domain = user.Domain;
- }
- this.driverServiceProcess.StartInfo.FileName = Path.Combine(this.driverServicePath, this.driverServiceExecutableName);
- this.driverServiceProcess.StartInfo.Arguments = this.CommandLineArguments;
- this.driverServiceProcess.StartInfo.UseShellExecute = false;
- this.driverServiceProcess.StartInfo.CreateNoWindow = this.hideCommandPromptWindow;
- this.driverServiceProcess.Start();
- bool serviceAvailable = this.WaitForServiceInitialization();
- if (!serviceAvailable)
- {
- string msg = "Cannot start the driver service on " + this.ServiceUrl;
- throw new WebDriverException(msg);
- }
- }
- new ChromeDriver(userName, password, domain);
- new InternetExplorerDriver(ieOptions, userName, password, domain);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement