Skip to content

Instantly share code, notes, and snippets.

@vanangelov
Last active August 27, 2022 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vanangelov/83ab133ca86ea1262c0437569990d0d2 to your computer and use it in GitHub Desktop.
Save vanangelov/83ab133ca86ea1262c0437569990d0d2 to your computer and use it in GitHub Desktop.
import org.junit.Test;
public class PageFragmentsExampleTest extends TestBase {
@Test
public void shareSecondPost() {
FacebookSportPostsPage facebookPage = FacebookSportPostsPage.open();
FacebookPostFragment secondPost = facebookPage.getPostByIndex(2);
secondPost.share();
}
@Test
public void sharePostFromDate() {
FacebookSportPostsPage.open().getPostByText("April 16 at 7:35am").share();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment