Last active
August 27, 2022 18:13
-
-
Save vanangelov/83ab133ca86ea1262c0437569990d0d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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