public void doLogin(String username, String password) { // accessing tag name as workaround for permission denied to access property 'nr@context' issue PageElementUtils.permissionDeniedWorkAround(usernameOrEmailInput); usernameOrEmailInput.clear().type(username); passwordInput.clear().type(password); loginButton.click(); }
public void doLogout() { // accessing tag name as workaround for permission denied to access property 'nr@context' issue PageElementUtils.permissionDeniedWorkAround(usernameOrEmailInput); if (userDropdownTriggerLink.isPresent()) { // only do the logout if the user drop down is present, i.e., if the user is logged in. userDropdownTriggerLink.click(); logoutLink.click(); } }