-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCareersPage.java
33 lines (26 loc) · 1.53 KB
/
CareersPage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.mitigram.web.pages;
import com.mitigram.web.framework.LocatorObject;
import com.mitigram.web.framework.browser.BrowserActions;
public class CareersPage {
private final BrowserActions browserActions;
private static final String CAREERS_PAGE = "Careers page ";
private static final String CAREERS_PAGE_URL = "https://mitigram.com/careers";
private static final LocatorObject CAREERS_PAGE_HEADING = new LocatorObject("h2.headline", LocatorObject.CSS, CAREERS_PAGE + "> Careers page heading level 2");
private static final LocatorObject OPEN_POSITIONS_DIV = new LocatorObject("div.positions", LocatorObject.CSS, CAREERS_PAGE + "> Open positions div");
private static final LocatorObject PRIVACY_INFORMATION_IN_INTRODUCE_YOURSELF_SECTION = new LocatorObject("p.recaptcha", LocatorObject.CSS, CAREERS_PAGE + "> Introduce yourself section > privacy information");
public CareersPage(BrowserActions browserActions) {
this.browserActions = browserActions;
}
public void goToMitigramCareersPageByURL() {
browserActions.openURL(CAREERS_PAGE_URL);
}
public boolean isCareersPageDisplayed() {
return browserActions.isElementVisibleOnPage(CAREERS_PAGE_HEADING);
}
public boolean isOpenPositionsDivDisplayed() {
return browserActions.isElementVisibleOnPage(OPEN_POSITIONS_DIV);
}
public boolean isPrivacyPolicyInformationInIntroduceYourselfSectionDisplayed() {
return browserActions.isElementVisibleOnPage(PRIVACY_INFORMATION_IN_INTRODUCE_YOURSELF_SECTION);
}
}