Skip to main content

Target class

This class provides methods that are used to define and configure the checkpoint target for the check method.

Once you create a ImagesCheckSettings object using one of the factory methods defined by this class, you can configure the checkpoint by calling other methods from the ImagesCheckSettings class, chaining them one after the other using the '.' operator.

Import statement

import com.applitools.eyes.images.Target;

image method

Syntax

eyes.check(Target.image(image))
eyes.check(Target.image(path))

Note: This method is a static method.

Parameters

image

Type: BufferedImage

The checkpoint image as an object in PNG format.

path

Type: String

A string with the file system path to the checkpoint image file. The image must be in PNG format.

Return value

Type: ICheckSettings