Skip to content

[🐛 Bug]: Documentation still refers to getBase64EncodedScreenshot, although removed #16685

Description

@clnative

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-gridEverything grid and server relatedC-javaJava BindingsI-defectSomething is not working as intended

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions