This project uses dagger as dependency injection and to inject the steps in tests and to inject pages in steps.
Philosophy here is: "Keep it simple, stupid".
Java 8, Maven
mvn clean test.
For each test class update
BaseComponent
class withvoid inject(FlightTest flightTest);
For each steps class update
StepsModule
class with
@Singleton
@Provides
FlightStatusSteps provideFlightStatusSteps(FlightStatusPage flightStatusPage) {
return new FlightStatusSteps(flightStatusPage);
}
For each page class update
PageModule
class with
@Singleton
@Provides
FlightStatusPage provideFlightStatusPage(WebDriver driver) {
return new FlightStatusPage(driver);
}