Skip to content

Add waitCondition closure to a content definition #342

@geb-bot

Description

@geb-bot

Originally created by Chris Prior.

Add the ability to specify a waitCondition closure when defining a content item, to define what should be waited for before access the item.

Such as:

static content = {
    modal(wait: true, waitCondition: { it.displayed }) { $("#modal") } 
}

The wait property will be defaulted to "true" if waitCondition is supplied without wait.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions