public abstract class SharePage extends Page
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dojoSupport |
protected static int |
WAIT_TIME_3000 |
drone, maxPageLoadingTime, 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.
|
protected boolean |
canResume()
Default wait for site pop up message to disappear, this
is currently set to 3 seconds.
|
protected boolean |
canResume(long waitTime)
Waits for site pop up message to disappear to allow the drone to resume
operations on the page.
|
void |
disbaleFileUploadFlash()
Helper method to disable flash on file upload component, as flash is not
supported by WebDriver.
|
protected void |
elementRender(RenderTime renderTime,
org.openqa.selenium.By... locators)
Waits for visibility of all elements when rendering a page.
|
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.
|
SearchBox |
getSearch()
Perform inputing a search term in to the search box on the main
navigation.
|
protected boolean |
isJSMessageDisplayed()
Check if javascript message is displayed.
|
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, isBrowserTitle, toStringprotected static final int WAIT_TIME_3000
protected final boolean dojoSupport
protected SharePage(WebDrone drone)
protected boolean isJSMessageDisplayed()
public void basicRender(RenderTime timer)
timer - RenderTimepublic boolean isLogoPresent()
public String getPageTitle()
public boolean isTitlePresent(String title)
public boolean panelExists(String panelName)
panelName - the css location of the elementpublic Navigation getNav()
Navigationpublic SearchBox getSearch()
Exception - if errorpublic org.openqa.selenium.WebElement findButton(String button, List<org.openqa.selenium.WebElement> elements)
button - String button name value to findelements - ListWebElement delete buttonpublic void disbaleFileUploadFlash()
public boolean isLoggedIn()
public String getCopyRight()
protected boolean canResume(long waitTime)
waitTime - timer in millisecondsprotected boolean canResume()
protected void elementRender(RenderTime renderTime, org.openqa.selenium.By... locators)
TimeoutException. If operation to find all elements
times out a PageRenderTimeException is thrownrenderTime - render timerlocators - collection of By locatorCopyright © 2013. All Rights Reserved.