Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created December 3, 2017 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/7e743e8a41766e6be19cf5c2053095cd to your computer and use it in GitHub Desktop.
Save angelovstanton/7e743e8a41766e6be19cf5c2053095cd to your computer and use it in GitHub Desktop.
[Test]
public void NoErrorCodes_When_NavigateToHomePage()
{
_driver.Navigate().GoToUrl("https://automatetheplanet.com/");
AssertNoErrorCodes();
}
private void AssertNoErrorCodes()
{
bool areThereErrorCodes = _responsesHistory.Values.Any(r => r.StatusCode > 400 && r.StatusCode < 599);
Assert.IsFalse(areThereErrorCodes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment