public abstract class SharePage extends Page
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version| Modifier | Constructor and Description |
|---|---|
protected |
SharePage(WebDrone drone) |
| Modifier and Type | Method and Description |
|---|---|
void |
basicRender(RenderTime timer)
Basic render that checks if the page has rendered.
|
void |
disbaleFileUploadFlash()
Helper method to disable flash on file upload component, as flash is not
supported by
WebDriver. |
org.openqa.selenium.WebElement |
findButton(String button,
List<org.openqa.selenium.WebElement> elements)
Helper to resolve the delete button from the collection of buttons.
|
String |
getCopyRight()
Get copy right text from alfresco footer.
|
LoginPage |
getLogin()
Gets the
LoginPage |
Navigation |
getNav()
Get the
Navigation |
String |
getPageTitle()
Alfresco share based layout and style page title label element.
|
Search |
getSearch()
Perform inputing a search term in to the search box on the main
navigation.
|
boolean |
isLoggedIn()
Verifies if a user is currently logged in
|
boolean |
isLogoPresent()
Verify if the Alfresco logo is present on the page.
|
boolean |
isTitlePresent(String title)
Verify share page title is present and matches the page
|
boolean |
panelExists(String panelName)
Verifies if the element is visible on the page.
|
close, getDrone, getScreenShot, getTitle, isBrowserTitleprotected SharePage(WebDrone drone)
public void basicRender(RenderTime timer) throws PageException
timer - RenderTimePageException - if errorpublic boolean isLogoPresent()
public String getPageTitle() throws org.openqa.selenium.NoSuchElementException
org.openqa.selenium.NoSuchElementException - if title not foundpublic boolean isTitlePresent(String title)
public boolean panelExists(String panelName)
panelName - the css location of the elementpublic Navigation getNav()
Navigationpublic Search getSearch() throws PageException
Exception - if errorPageExceptionpublic org.openqa.selenium.WebElement findButton(String button, List<org.openqa.selenium.WebElement> elements) throws org.openqa.selenium.NoSuchElementException
button - String button name value to findelements - ListWebElement delete buttonorg.openqa.selenium.NoSuchElementException - if not foundpublic void disbaleFileUploadFlash()
WebDriver.public boolean isLoggedIn()
public String getCopyRight()
Copyright © 2012. All Rights Reserved.