Create chainable actions so that each given, instead of directly running a selenium step, creates an action to be executed in the when statement. This enables a way to ensure context is correct before any action takes place in a browser.
Like the stream API of java8, each given would be a lazy action, such as each of the actions in the stream API that return a stream. The when would be like the collector, an eager action, which will execute all planned actions in order.
Create chainable actions so that each given, instead of directly running a selenium step, creates an action to be executed in the when statement. This enables a way to ensure context is correct before any action takes place in a browser.
Like the stream API of java8, each given would be a lazy action, such as each of the actions in the stream API that return a stream. The when would be like the collector, an eager action, which will execute all planned actions in order.