Skip to content

Commit

Permalink
Add debug output when web navigation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sensslen committed May 21, 2024
1 parent 99d23b5 commit 4135998
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValu
await Verify(driver.FindElement(By.TagName("body")).Text).HashParameters().UseStringComparer(CompareLicense);
return;
}
catch (Exception)
catch (WebDriverException e)
{
if (retryCount >= 3)
{
throw;
}
retryCount++;
TestContext.Out.WriteLine($"Failed to check license for the {retryCount} time - retrying");
TestContext.Out.WriteLine(e);
}
finally
{
Expand Down

0 comments on commit 4135998

Please sign in to comment.