Created
January 17, 2016 10:11
-
-
Save slawekradzyminski/32ac46878e56776d8ead 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
package org.fluentlenium.sample.pages; | |
import org.fluentlenium.core.FluentPage; | |
/** | |
* Created by s.radzyminski on 10/01/16. | |
*/ | |
public class GroupApprovePage extends FluentPage { | |
private static final String APPROVE_ALL_BUTTON = "[rel=async-post]"; | |
private static final String CONFIRM_APPROVAL_BUTTON = ".layerConfirm"; | |
@Override | |
public String getUrl() { | |
return "https://www.facebook.com/groups/booksIT/requests/?notif_t=group_r2j"; | |
} | |
@Override | |
public void isAt() { | |
await().until(APPROVE_ALL_BUTTON).isPresent(); | |
} | |
public void approveAll() { | |
find(APPROVE_ALL_BUTTON).first().click(); | |
} | |
public void confirm() { | |
await().until(CONFIRM_APPROVAL_BUTTON).isPresent(); | |
findFirst(CONFIRM_APPROVAL_BUTTON).click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment