Guest User

Untitled

a guest
Jun 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. browser.Visit(uriContext.Uri.ToString());
  2. var deadline = DateTime.UtcNow.Add(WebAppWarmUpTimeout);
  3. while (DateTime.UtcNow < deadline)
  4. {
  5. if (browser.HasContent("404 - File or directory not found.", SmallTimeoutOptions))
  6. {
  7. Assert.Fail("404");
  8. }
  9. else if (browser.FindCss("body nav a", "Job Search", SmallTimeoutOptions).Exists())
  10. {
  11. break;
  12. }
  13. }
Add Comment
Please, Sign In to add comment