Description
#15712 removed getBase64EncodedScreenshot from java/src/org/openqa/selenium/remote/ScreenshotException.java.
https://github.com/SeleniumHQ/selenium/wiki/RemoteWebDriver still mentions it as a "good practice".
Either this never worked, then the wiki documentation should be changed, or it has worked in the past, then an alternative to substitute it with should be provided.
Reproducible Code
public String extractScreenShot(WebDriverException e) {
Throwable cause = e.getCause();
if (cause instanceof ScreenshotException) {
return ((ScreenshotException) cause).getBase64EncodedScreenshot();
}
return null;
}
does not compile.
ℹ️ Last known working version: 4.30.0
Description
#15712 removed
getBase64EncodedScreenshotfromjava/src/org/openqa/selenium/remote/ScreenshotException.java.https://github.com/SeleniumHQ/selenium/wiki/RemoteWebDriver still mentions it as a "good practice".
Either this never worked, then the wiki documentation should be changed, or it has worked in the past, then an alternative to substitute it with should be provided.
Reproducible Code
public String extractScreenShot(WebDriverException e) { Throwable cause = e.getCause(); if (cause instanceof ScreenshotException) { return ((ScreenshotException) cause).getBase64EncodedScreenshot(); } return null; } does not compile.ℹ️ Last known working version:
4.30.0