timeoutInSeconds method

Class: XCUICheckSettingsPlatform: XCUILanguage: Objective-C SDK:

Defines the timeout to use when acquiring and comparing screenshots for this target.

Syntax

Call syntax

id<CheckSettingsProtocol> target =  [ obj timeoutInSeconds  : timeoutInSeconds   ]
;

Declaration

(id<CheckSettingsProtocol>)timeoutInSeconds:(NSUInteger)timeoutInSeconds

Parameters

timeoutInSeconds
Type:NSUInteger
The timeout to use in second units.

Return value

Type: id<CheckSettingsProtocol>
The value returned is the object that called the method. You can use it to call other methods supported by the object class.

Remarks

You may only call this method once in a given chain. The timeout value provided here overrides the default value or the value set by matchTimeout for the current target. Passing this method a value of zero disables the timeout mechanism.