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

Description
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:
- If the wait action specifies a time, use that
- If the actor specifies a time via their ability, use that
- 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.