public void ThenIConfirmAlertAppearsWithText(string dialogText) { IAlert a = webDriver.SwitchTo().Alert(); a.Should().NotBeNull(); a.Text.Should().Be(dialogText); }