-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserAccountPage.java
More file actions
19 lines (15 loc) · 807 Bytes
/
Copy pathUserAccountPage.java
File metadata and controls
19 lines (15 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.mitigram.web.pages;
import com.mitigram.web.framework.LocatorObject;
import com.mitigram.web.framework.browser.BrowserActions;
// Assuming on successful login, user is re-directed to 'user account' page
public class UserAccountPage {
private final BrowserActions browserActions;
private static final String USER_ACCOUNT_PAGE = "User account page ";
private static final LocatorObject USER_ACCOUNT_DIV = new LocatorObject("div#useraccount", LocatorObject.CSS, USER_ACCOUNT_PAGE + "> User account div");
public UserAccountPage(com.mitigram.web.framework.browser.BrowserActions browserActions) {
this.browserActions = browserActions;
}
public boolean isUserAccountPageDisplayed() {
return browserActions.isElementVisibleOnPage(USER_ACCOUNT_DIV);
}
}