Screenshot Capture Utility (impl/Screenshot.java)

selenide · src/main/java/com/codeborne/selenide/impl/Screenshot.java · java · MIT
testing, scraping, lang:java, tag:screenshots

Represents screenshot data including image file, URL, and page source for test reporting. Reuse in automated testing frameworks for visual test artifacts.

// Source: https://github.com/selenide/selenide | License: MIT | Copyright [2011-2025] [Andrei Solntsev & Selenide committers]
// Provided via justclaw.it.com; keep this notice with the code.
package com.codeborne.selenide.impl;

import org.jspecify.annotations.Nullable;

import java.io.File;

public class Screenshot {
  @Nullable
  private final File imageFile;
  @Nullable
  private final String image;
  @Nullable
  private final String source;

  public Screenshot(@Nullable File imageFile, @Nullable String imageUrl, @Nullable String source) {
    this.imageFile = imageFile;
    this.image = imageUrl;
    this.source = source;
  }

  @Nullable
  File getImageFile() {
    return imageFile;
  }

  @Nullable
  public String getImage() {
    return image;
  }

  @Nullable
  public String getS

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key