Comments (2)
Shakespeare's Task interface is generally not limited to anything. You can group interactions (e.g. Selenium) into one Task implementation and they will be performed.
I'd define these Tasks as reusable implementations of Task, but you could also pass as Lambda.
var user = new Actor();
user.does((actor) -> {
var webDriver = actor.uses(BrowseTheWeb.class).getWebDriver();
// … one or multiple interactions
});
It is also possible to do other Tasks within a Task.
var user = new Actor();
user.does(new ComposedTask());
Generally you could also put assertions into a Task/Question.
Not sure if this is what you are looking for.
from shakespeare.
Yes, I guess that’s fine. Just saw that serenity uses marker interfaces. If there was an advantage to that approach. I will just use nested tasks. Thanx
from shakespeare.
Related Issues (20)
- Selenium HTML snapshot reporting
- Add Ability to run CLI commands
- Support multi-lined reports
- Run tests in parallel
- Add Checkstyle configuration
- Get rid of deprecated Opera in Selenium
- Automatically open a base URL in BrowseTheWeb if provided
- Shorten filenames in FileReporter
- Base URL is opened whenever getWebDriver is called
- Slf4jReporter does not clear its root report causing duplicate reports
- Slf4jReporter prints sub-reports in wrong order
- Add Cucumber support
- Add Playwrite module
- Add JSON reporter
- Build pages using GitHub Actions
- DockerWebDriverSupplier fails with SessionNotCreatedException
- Switch to Kotlin Gradle syntax
- Add retry limit HOT 2
- Document timeout and interval for Retryables HOT 1
- Allow to set scope in Oauth2Api
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shakespeare.