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
BaseComponentclass withvoid inject(FlightTest flightTest);
For each steps class update
StepsModuleclass with
@Singleton
@Provides
FlightStatusSteps provideFlightStatusSteps(FlightStatusPage flightStatusPage) {
return new FlightStatusSteps(flightStatusPage);
}
For each page class update
PageModuleclass with
@Singleton
@Provides
FlightStatusPage provideFlightStatusPage(WebDriver driver) {
return new FlightStatusPage(driver);
}