I am using ChromeDriver to create automated browser tests. This stopped working today, taking a look at the screenshots that are saved in the database, they are all blank pixels.
Why?
ChromeDriver 2.29.0
foreach (var testStep in testSteps.ToList())
{
var testStepRun = new TestStepRun();
repo.createTestStepRun(testStepRun);
/* I omit this function in my posting but will include it if needed */
RunTestStep(testStep);
try
{
testStepRun.ScreenshotPNG = driver.GetScreenshot().AsByteArray;
}
catch(UnhandledAlertException)
{
}
repo.SaveChanges();
}
It's related to your Chrome browser. Downgrade to version 58: https://www.slimjet.com/chrome/google-chrome-old-version.php