Skip to content

Instantly share code, notes, and snippets.

@slawekradzyminski
Created January 17, 2016 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slawekradzyminski/b0183715bc23fde4526a to your computer and use it in GitHub Desktop.
Save slawekradzyminski/b0183715bc23fde4526a to your computer and use it in GitHub Desktop.
package org.fluentlenium.sample.tests;
import org.fluentlenium.adapter.FluentTestNg;
import org.fluentlenium.sample.pages.FacebookLoggedOutPage;
import org.fluentlenium.sample.pages.GroupApprovePage;
import org.fluentlenium.sample.support.LoadProperties;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class FacebookTests extends FluentTestNg {
private FacebookLoggedOutPage fbLogOutPage;
private GroupApprovePage groupApprovePage;
private static final String EMAIL = LoadProperties.user.getProperty("email");
private static final String PASSWORD = LoadProperties.user.getProperty("password");
@BeforeMethod
public void authenticate() {
fbLogOutPage = createPage(FacebookLoggedOutPage.class);
fbLogOutPage.go();
fbLogOutPage.login(EMAIL, PASSWORD);
fbLogOutPage.verifySuccessfulLogin();
}
@Test
public void acceptAllPokemons() {
groupApprovePage = createPage(GroupApprovePage.class);
groupApprovePage.go();
groupApprovePage.isAt();
groupApprovePage.approveAll();
groupApprovePage.confirm();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment