public void Closing_SelenoHost_should_close_child_browser(string driverName) { Process.GetProcessesByName(driverName).ForEach(StopProcess); var selenoHost = new SelenoHost(); Func<RemoteWebDriver> driver = GetBrowserFactory(driverName); selenoHost.Run("TestStack.Seleno.AcceptanceTests.Web", 12346, c => c.WithRemoteWebDriver(driver)); Process.GetProcessesByName(driverName).Length.Should().Be(1); selenoHost.Dispose(); Process.GetProcessesByName(driverName).Should().BeEmpty(); }
public void Closing_SelenoHost_should_close_Iis_Express() { PatientlyStopProcess(IisExpress); Process.GetProcessesByName("chromedriver").ForEach(StopProcess); var selenoHost = new SelenoHost(); selenoHost.Run("TestStack.Seleno.AcceptanceTests.Web", 12346, c => c.WithRemoteWebDriver(BrowserFactory.Chrome)); Process.GetProcessesByName(IisExpress).Length.Should().Be(1); selenoHost.Dispose(); Process.GetProcessesByName("chromedriver").Should().BeEmpty(); Process.GetProcessesByName(IisExpress).Should().BeEmpty(); }
public void FixtureTearDown() { _host.Dispose(); }