Skip to main content

Target class

This class provides methods that are used to

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

Import statement

@import EyesXCUI

element method​

Syntax​

Call syntax​

[eyes checkWithTag:@'Check element' andSettings:[Target element:element]]

Declaration​

(XCUICheckSettings *)element:(XCUIElement *)element

Parameters​

element

Type: XCUIElement*

The element for which region should be visually checked.

Return value​

Type: XCUICheckSettings*

region method​

Syntax​

Call syntax​

XCUICheckSettings* target =  [ Target region  : region   ]
;

Declaration​

(XCUICheckSettings *)region:(Region *)region

Parameters​

region

Type: Region*

The region to be checked.

Return value​

Type: XCUICheckSettings*

window method​

Syntax​

Call syntax​

XCUICheckSettings* target =  [ Target window    ]
;

Declaration​

(XCUICheckSettings *)window

Parameters​

This method does not take any parameters.

Return value​

Type: XCUICheckSettings*