public abstract class ListItem extends Object
| Constructor and Description |
|---|
ListItem() |
| Modifier and Type | Method and Description |
|---|---|
Renderable |
clickOnAction(String actionName)
Click on action
|
<T extends Renderable> |
clickOnAction(String actionName,
T renderable)
Click on dialog action
|
<T extends Renderable> |
clickOnActionFromDetailsPage(String actionName,
T renderable)
Click on action from Details Page
|
Renderable |
clickOnLink()
Click on link
|
<T extends Renderable> |
clickOnLink(T renderable)
Click on link
|
<T extends Renderable> |
clickOnLinkAndWaitForPreview(T renderable)
Click on link and wait for preview
|
String |
getBannerText(ContentBanner banner)
Get the text on a banner.
|
String[] |
getClickableActions() |
String[] |
getIndicators()
Build a list of the item's indicator icons.
|
protected ru.yandex.qatools.htmlelements.element.Link |
getLink()
Helper method to get link
|
String |
getName() |
protected org.openqa.selenium.WebElement |
getRow() |
String |
getTitle() |
List<String> |
getUnclickableActions(String... actionNames)
Helper method to check whether the specified actions are clickable
|
boolean |
hasBanner(ContentBanner banner)
Check if a given banner is present.
|
boolean |
hasIndicator(String indicator)
Does the current row have the requested indicator?
|
boolean |
isActionClickable(String actionName)
Is action clickable
|
boolean |
isSearchResultActionClickable(String actionName,
org.openqa.selenium.WebElement searchResultsRow)
Helper method to check whether the specified Search results action is clickable
Leaves the Actions drop down expanded
|
boolean |
isSearchResultActionDisplayed(String actionName,
org.openqa.selenium.WebElement searchResultsRow)
Helper method to check whether the specified Search results action is displayed
Leaves the Actions drop down expanded
|
void |
setRow(org.openqa.selenium.WebElement row) |
public void setRow(org.openqa.selenium.WebElement row)
row - row elementprotected org.openqa.selenium.WebElement getRow()
protected ru.yandex.qatools.htmlelements.element.Link getLink()
public String getName()
public String getTitle()
public Renderable clickOnLink()
public <T extends Renderable> T clickOnLink(T renderable)
public <T extends Renderable> T clickOnLinkAndWaitForPreview(T renderable)
public List<String> getUnclickableActions(String... actionNames)
actionNames - action namespublic boolean isSearchResultActionClickable(String actionName, org.openqa.selenium.WebElement searchResultsRow)
actionName - searchResultsRow - public boolean isSearchResultActionDisplayed(String actionName, org.openqa.selenium.WebElement searchResultsRow)
actionName - searchResultsRow - searchActionsExpanded - if the Actions container is expanded and the actions are already visiblepublic String[] getClickableActions()
public boolean isActionClickable(String actionName)
public <T extends Renderable> T clickOnActionFromDetailsPage(String actionName, T renderable)
public Renderable clickOnAction(String actionName)
public <T extends Renderable> T clickOnAction(String actionName, T renderable)
public String[] getIndicators()
public boolean hasIndicator(String indicator)
indicator - {String}public String getBannerText(ContentBanner banner) throws org.openqa.selenium.NoSuchElementException
The - type of banner to look for.org.openqa.selenium.NoSuchElementException - If no such banner can be found.public boolean hasBanner(ContentBanner banner)
The - type of banner to look for.Copyright © 2005–2016 Alfresco Software. All rights reserved.