@Test
 @UseUnstablePageLoadStrategy
 public void signUpWithFacebook() {
   new RemoveFacebookPageObject(driver)
       .removeWikiaApps(user.getEmail(), user.getPassword())
       .logOutFB();
   WikiBasePageObject base = new WikiBasePageObject(driver);
   base.openWikiPage(wikiURL);
   FacebookMainPageObject fbLogin = base.openFacebookMainPage();
   FacebookUserPageObject userFB;
   userFB = fbLogin.login(user.getEmail(), user.getPassword());
   userFB.verifyPageLogo();
   SignUpPageObject signUp = userFB.navigateToSpecialSignUpPage(wikiURL);
   FacebookSignupModalComponentObject fbModal = signUp.clickFacebookSignUp();
   fbModal.acceptWikiaAppPolicy();
   String userName = "******" + DateTime.now().getMillis();
   String password = "******" + DateTime.now().getMillis();
   fbModal.typeUserName(userName);
   fbModal.typePassword(password);
   fbModal.createAccount();
   base.openWikiPage(wikiURL);
   base.appendToUrl("noads=1");
   base.verifyUserLoggedIn(userName);
   base.logOut(wikiURL);
 }
  @Test
  @UseUnstablePageLoadStrategy
  public void connectUsingUserPreferences() {
    new RemoveFacebookPageObject(driver)
        .removeWikiaApps(user.getEmail(), user.getPassword())
        .logOutFB();

    PreferencesPageObject prefsPage = new PreferencesPageObject(driver).open();
    prefsPage.loginAs(User.USER);
    prefsPage.selectTab(PreferencesPageObject.tabNames.FACEBOOK);
    prefsPage.connectFacebook(user.getEmail(), user.getPassword());
    prefsPage.verifyFBButtonVisible();
    prefsPage.logOut(wikiURL);
    SignUpPageObject signUp = new SignUpPageObject(driver).open();
    signUp.clickFacebookSignUp();
    prefsPage.verifyUserLoggedIn(credentials.userName);
  }
  /**
   *
   *
   * <ol>
   *   <li>Log in to facebook
   *   <li>Click facebook login on signup page
   *   <li>Deny permission to user's facebook email address
   *   <li>>manually enter email address and create account
   *   <li>confirm account and login
   *   <li>Verify user can login via facebook
   * </ol>
   */
  @Test
  @UseUnstablePageLoadStrategy
  public void linkWithNewAccountNoEmailPermission() {
    new RemoveFacebookPageObject(driver).removeWikiaApps(user.getEmail(), user.getPassword());

    SignUpPageObject signUp = new SignUpPageObject(driver).open();
    FacebookSignupModalComponentObject fbModal = signUp.clickFacebookSignUp();

    String userName = "******" + signUp.getTimeStamp();
    String password = "******" + signUp.getTimeStamp();
    String email = credentials.emailQaart2;
    String emailPassword = credentials.emailPasswordQaart2;
    fbModal.createAccountNoEmail(email, emailPassword, userName, password);

    AlmostTherePageObject almostThere = new AlmostTherePageObject(driver);
    almostThere.confirmAccountAndLogin(email, emailPassword, userName, password, wikiURL);
  }
 @Test(groups = {"FBButton_002", "FacebookButton"})
 public void FBButton_002_SignUpButton_Visible() {
   WikiBasePageObject base = new WikiBasePageObject(driver);
   SignUpPageObject signUpPage = base.openSpecialSignUpPage(wikiURL);
   signUpPage.verifyFBButtonVisible();
 }