Skip to main content

Target class

This class provides methods that are used to define the top level target (the entire window, region, element, frame, etc.) for the check method.

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

Import statement

import com.applitools.eyes.appium.Target;

region method

Syntax

eyes.check(Target.region(region))
eyes.check(Target.region(by))
eyes.check(Target.region(webElement))

Note: This method is a static method.

Parameters

region

Type: Region

The region to be checked.

by

Type: By

An element selector which is chosen using the Selenium By class.

webElement

Type: WebElement

An object which defines a region.

Return value

Type: AppiumCheckSettings

window method

Syntax

eyes.check(Target.window())

Note: This method is a static method.

Parameters

This method does not take any parameters.

Return value

Type: AppiumCheckSettings