Skip to navigation

Check file (detailed)

Referenced In

Fields

Validation applies the defaults shown here.

FieldTypeDescriptionDefault
pathstringOptional. Glob for the file to wait for. A relative path resolves against the spec file. When several files match, the newest finished one counts.

Minimum length: 1
—
downloadstringOptional. Glob for a file name in the context’s download folder. Each checkFile returns the oldest finished download that no earlier checkFile in the context returned. Needs a desktop Chrome or Firefox context opened by an earlier step. In other contexts, the step is skipped.

Minimum length: 1
—
contentstringOptional. Text the file must contain, read as UTF-8. A value that starts and ends with / is a regular expression.—
timeoutintegerOptional. Maximum time in milliseconds to wait for a finished match.

Minimum: 1
30000

Examples

{
"path": "example",
"content": "example",
"timeout": 30000
}