Self-Logging Selenium WebDriver Tests

Photo by Markus Spiske on Unsplash

One of the characteristics of a good Selenium test automation project is the ability of troubleshooting quickly potential problems.

This means finding fast

  • the method (or assertion) that caused the issue
  • what happened before the code execution stopped
  • what is the last visited web page