Package org.zanata.page.googleaccount

Examples of org.zanata.page.googleaccount.GoogleAccountPage


                        googlePassword1);

        assumeFalse("Google contains localhost permissions",
                googleManagePermissionsPage.pageContainsPermission("localhost"));

        GoogleAccountPage googleAccountPage =
                new GoogleWorkFlow().forceLogout();

        assumeTrue(googleAccountPage.getUrl().contains("/ServiceLogin"));
    }
View Full Code Here


    }

    public GoogleAccountPage selectGoogleOpenID() {
        log.info("Click 'Google'");
        waitForWebElement(googleButton).click();
        return new GoogleAccountPage(getDriver());
    }
View Full Code Here

    private static String forceLogoutLink =
            "https://accounts.google.com/Logout?service=lso";

    public GoogleManagePermissionsPage resetGooglePermissions(
            String googleUsername, String password) {
        GoogleAccountPage googleAccountPage =
                new BasicWorkFlow().goToUrl(permissionsPageLink,
                    GoogleAccountPage.class);

        return googleAccountPage.enterGoogleEmail(googleUsername)
                .enterGooglePassword(password).clickPermissionsSignIn()
                .removePermission("localhost");
    }
View Full Code Here

*/
public class RegisterWorkFlow extends AbstractWebWorkFlow {

    public HomePage registerGoogleOpenID(String name, String username,
            String password, String email) {
        GoogleAccountPage googleAccountPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .selectGoogleOpenID();
        /*
            There is the chance that Google presents the old page. It seems
            to be random. Just enter the email in this case.
            Otherwise, If Google has remembered us, skip entering the email.
            If Google has remembered someone else, change the user.
        */
        if (googleAccountPage.isTheOldGoogleSite()) {
            googleAccountPage = googleAccountPage.enterGoogleEmail(email);
        } else if (googleAccountPage.hasRememberedAuthentication()) {
            if (!googleAccountPage.rememberedUser().equals(email)) {
                googleAccountPage = googleAccountPage.removeSavedAuthentication();
            }
        } else {
            googleAccountPage = googleAccountPage.enterGoogleEmail(email);
        }

        EditProfilePage editProfilePage = googleAccountPage
                .enterGooglePassword(password)
                .clickSignIn()
                .acceptPermissions();

        return editProfilePage.enterName(name).enterUserName(username)
View Full Code Here

TOP

Related Classes of org.zanata.page.googleaccount.GoogleAccountPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.