public class LikeButton extends BaseElement
Constructor and Description |
---|
LikeButton() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeClicked() |
void |
clickToLike()
Click on the Like button and wait for a Like success message.
|
void |
clickToUnlike()
Click on the Like button and wait for the unlike success message.
|
int |
getLikeNumber() |
boolean |
isDisplayed() |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public boolean isDisplayed()
true
if the Like button is displayed.public boolean canBeClicked()
true
if the button is not disabled.public int getLikeNumber()
public void clickToLike()
public void clickToUnlike()
Copyright © 2004–2021 XWiki. All rights reserved.