@Override public void setup() { super.setup(); try { subnavigation = Page.subNavigation(); String dropdownMoreOption = "Team"; team = (Team) subnavigation.selectDropdownMoreOption(dropdownMoreOption); expectedTeamData = testCaseData.get("More->TeamPageData"); expectedTeamData.put("url", team.teamPageUrl()); AutomationLog.info("Redirection to Team page sucessfull"); } catch (Exception e) { AutomationLog.error("Redirection to Team page failed"); } }
@Override public void setup() { super.setup(); homePage = Homepage.homePage(); try { header = Header.header(); headerLoginForm = header.openHeaderLoginForm(); HashMap<String, String> loginData = testCaseData.get("validCredential"); String UserName = loginData.get("username"); String Password = loginData.get("password"); homePage = headerLoginForm.doSuccessfulLogin(UserName, Password); WaitFor.presenceOfTheElement(Page.driver, homePage.getHomepageGreetingsLocator()); subnavigation = Page.subNavigation(); dashboard = subnavigation.clickLinkMyDashboard(); overviewTab = dashboard.editProfile(); } catch (Exception e) { AutomationLog.error("Overview tab not found"); } }