waiting strategies

Open
#56 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
testing-qa

Research direction

The issue names no repository files or tests. Start with the linked Serenity BDD waiting-strategy documentation and compare its Target and action examples with ScreenPy's proposed Target and Click API. Define the supported waiting strategies, expected conditions, and acceptance criteria before implementation.

Written by the indexing model from the issue text.

Description

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())
Dominant language
Python
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ScreenPyHQ/screenpy_selenium

All issues in ScreenPyHQ/screenpy_selenium

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.