Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

So actors can choose their own wait-durations, create an ability which sets a default wait-time #58

@craigfowler

Description

@craigfowler

Currently, the explicit waits in Screenplay Selenium all default to a hard-coded 4 seconds. I'd like to improve this though so that it's more configurable centrally.

It's already possible to specify wait-times explicitly on individual wait actions, but I'd like actors to be able to specify their own 'default time to wait' as an ability. The order of precedence would then be:

  1. If the wait action specifies a time, use that
  2. If the actor specifies a time via their ability, use that
  3. Otherwise fall back to a hard-coded default

I'd like to use this ability as something like:

var chooseHowLongToWait = new ChooseADefaultWaitDuration(TimeSpan.FromSeconds(10));
joe.IsAbleTo(chooseHowLongToWait);

From that point on, any waits that Joe executes will - by default - use ten seconds instead of the hard-coded default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions