public WebAppFixture()
        {
            var key          = Environment.Is64BitOperatingSystem ? "programfiles(x86)" : "programfiles";
            var programfiles = Environment.GetEnvironmentVariable(key);

            var iisExpressStartInfo = new ProcessStartInfo
            {
                WindowStyle     = ProcessWindowStyle.Normal,
                ErrorDialog     = true,
                LoadUserProfile = true,
                CreateNoWindow  = false,
                UseShellExecute = false,
                Arguments       = String.Format("/path:\"{0}\" /port:{1}", ProjectDirectories.GetWebAppDirectory(), WebAppPort),
                FileName        = string.Format("{0}\\IIS Express\\iisexpress.exe", programfiles)
            };

            _webHostProcess = Process.Start(iisExpressStartInfo);
        }
Example #2
0
 public ChromeDriverFixture()
 {
     Driver = new ChromeDriver(ProjectDirectories.GetDriversDirectory());
 }