-
Notifications
You must be signed in to change notification settings - Fork 3
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
Investigate whether we can have Always
and Never
Actions.
#59
Comments
I started to write a note about how "Technically speaking it should read 'Always click on the target, WHEN IT APPEARS'" but that got me asking the question, does a distinction exist? Is it possible to "Always click on target" without the clarification of 'when exists'? or does that qualifier accompany the idea of "Always" in all circumstances? |
When i wrote this spike, my thought was that I think that reading makes more sense, actually. I've been thinking about this problem on-and-off, and i think we might need to pair it with some kind of Question to ask at the end of the test. I think if we have To summarize that in some pseudocode: the_actor.attempts_to(
Always(Click.on_the(BIG_COOKIE),
Never(See.the(Element(GRANDMA_APOCALYPSE_BANNER), IsVisible()),
Pause.for(300).seconds_because("we want to click for 300 seconds.") # Always and Never will still perform, here
)
...
the_actor.should(
See.the(RepetitiveActions(), WereSuccessful()) # ???
) In that last bit, we'd ask the Anyway, what do you think about all of this? |
These two actions would take in a performable to be repeatedly performed, maybe on a configurable interval, for the duration of the test. Some example use-cases:
Some things we need to consider:
Never
orAlways
have failed at some point?The text was updated successfully, but these errors were encountered: