public class SiteAdminGrid extends Object
| Constructor and Description |
|---|
SiteAdminGrid() |
| Modifier and Type | Method and Description |
|---|---|
SiteAdminGrid |
activatePage(String title)
Activates the page by clicking 'Activate' button in the Action Bar.
|
SiteAdminGrid |
deactivatePage(String title)
Deactivates the page by clicking 'Deactivate' button in the Action Bar confirming deactivation
on confirmation window.
|
SiteAdminActionBar |
getActionBar() |
ActivateReferencesWindow |
getActivateReferencesWindow() |
SiteAdminGridRow |
getRowByName(String name)
Iterates through list of rows and returns the last row with matching name or
null
if not found |
SiteAdminConfirmationWindow |
getSiteAdminConfirmationWindow()
Getter for SiteAdminConfirmationWindow
|
boolean |
isPageOnTheList(String title)
Checks if a page with provided title is present in the grid.
|
boolean |
isTemplateOnList(String title,
String template)
Checks if a specified template with provided title is present in the grid.
|
void |
openPageByTitle(String title)
Opens the page with provided title by double-clicking on its row.
|
org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
pageActivationStatusIs(ActivationStatus status,
SiteAdminPage page,
String pageTitle)
Custom
ExpectedCondition that checks
ActivationStatus of page by provided SiteAdminPage and page title |
org.openqa.selenium.support.ui.ExpectedCondition<Object> |
pageStatusIs(PageStatus status,
SiteAdminPage page,
String pageTitle)
|
SiteAdminGridRow |
selectPageByTitle(String title)
Selects a row by clicking on the one with matching title.
|
SiteAdminGrid |
waitForLoaderNotPresent()
Waits for loader (mask that covers the grid after some actions) to disappear.
|
public org.openqa.selenium.support.ui.ExpectedCondition<Boolean> pageActivationStatusIs(ActivationStatus status, SiteAdminPage page, String pageTitle)
ExpectedCondition that checks
ActivationStatus of page by provided SiteAdminPage and page titlestatus - expected statuspage - SiteadminPage to be checkedpageTitle - page title to be checkedpublic org.openqa.selenium.support.ui.ExpectedCondition<Object> pageStatusIs(PageStatus status, SiteAdminPage page, String pageTitle)
status - expected statuspage - SiteadminPage to be checkedpageTitle - page title to be checkedpublic ActivateReferencesWindow getActivateReferencesWindow()
public SiteAdminGridRow selectPageByTitle(String title)
title - title of the pagepublic void openPageByTitle(String title)
title - title of the pagepublic boolean isPageOnTheList(String title)
title - title of the pagepublic boolean isTemplateOnList(String title, String template)
title - title of the templatetemplate - name of the templatepublic SiteAdminGrid activatePage(String title)
title - title of the page to be activatedpublic SiteAdminGrid deactivatePage(String title)
title - title of the page to be activatedpublic SiteAdminGrid waitForLoaderNotPresent()
public SiteAdminActionBar getActionBar()
public SiteAdminConfirmationWindow getSiteAdminConfirmationWindow()
SiteAdminConfirmationWindowpublic SiteAdminGridRow getRowByName(String name)
null
if not foundname - of the pageSiteAdminGridRow matching the specified nameCopyright © 2016–2018 Cognifide Ltd.. All rights reserved.