/** simulate page injection before init */ @Before public void before() { page = new InjectedPageAccueil(); page.testVariable = "test"; reference = page; initFluent(driver); initTest(); }
@Test public void checkGoToOnInjectedPage() { page.go(); Assertions.assertThat(title()).contains("Selenium"); }