@BeforeClass public static void Setup() throws IOException, InterruptedException { Roles_VacanciesPageObjects RolesAndVacanciesPage = PageFactory.initElements(driver, Roles_VacanciesPageObjects.class); CurrentPath = BaseClass.createDateFolder(path); ResultReport = CurrentPath + "Screenshot.html"; BaseClass.SOHTMLGENERAL(ResultReport); driver = RolesAndVacanciesPage.DFATPageChrome(driver); }
@Test public void A_NavigateToIntelligenceOfficerApplicationTest() throws InterruptedException { Roles_Vacancies_IntelligenceOfficePageObjects IORolesPage = PageFactory.initElements(driver, Roles_Vacancies_IntelligenceOfficePageObjects.class); Roles_VacanciesPageObjects RolesAndVacanciesPage = PageFactory.initElements(driver, Roles_VacanciesPageObjects.class); TcaseName.add(name.getMethodName()); Results.add(RolesAndVacanciesPage.ClickViewAndApplyIOfficerButton()); Results.add(IORolesPage.ClickApplyNowButton()); }