Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waiting strategies #56

Open
MarcelWilson opened this issue Sep 12, 2024 · 0 comments
Open

waiting strategies #56

MarcelWilson opened this issue Sep 12, 2024 · 0 comments

Comments

@MarcelWilson
Copy link
Contributor

MarcelWilson commented Sep 12, 2024

I have been reviewing the serenity BDD repos again and looking at their implementation of Targets; specifically how wait strategies are incorporated.

I'm pondering if we want to attempt incorporating a similar strategy in screenpy whereby Target actions have the ability to control waiting strategies which include expected conditions. They also allow actions to control waiting strategies as well.

Thier example:

dina.attemptsTo(Click.on(INVISIBLE_BUTTON.waitingForNoMoreThan(Duration.ofSeconds(3))));

dina.attemptsTo(Click.on("#some-button").afterWaitingUntilPresent());

I can envision being able to do the following.

actor.will(Click(INVISIBLE_BUTTON.after_enabled()).waiting_for(5).seconds())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant