public abstract class SharePage
extends org.alfresco.webdrone.Page
| Modifier and Type | Field and Description |
|---|---|
protected AlfrescoVersion |
alfrescoVersion |
protected boolean |
dojoSupport |
protected long |
elementWaitInSeconds |
protected long |
popupRendertime |
protected static org.openqa.selenium.By |
PROMPT_PANEL_ID |
protected static int |
WAIT_TIME_3000 |
| Modifier | Constructor and Description |
|---|---|
protected |
SharePage(org.alfresco.webdrone.WebDrone drone) |
| Modifier and Type | Method and Description |
|---|---|
void |
basicRender(org.alfresco.webdrone.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.
|
void |
elementRender(org.alfresco.webdrone.RenderTime renderTime,
org.alfresco.webdrone.RenderElement... elements)
Waits for given
ElementState of all render 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.
|
String |
getElementText(org.openqa.selenium.By locator)
Method to get element text for given locator.
|
LoginPage |
getLogin()
Gets the
LoginPage |
Navigation |
getNav()
Get the
Navigation |
String |
getPageTitle()
Alfresco share based layout and style page title label element.
|
long |
getPopupRendertime() |
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.
|
void |
setAlfrescoVersion(AlfrescoVersion alfrescoVersion) |
void |
setElementWaitInSeconds(long elementWaitInSeconds) |
void |
setPopupRendertime(long popupRendertime) |
protected org.alfresco.webdrone.HtmlPage |
submit(org.openqa.selenium.By locator,
org.alfresco.webdrone.ElementState elementState)
Click the element which passed and wait for given ElementState on the same element.
If the Element State not changed, then render the
ShareErrorPopup Page, if it is rendered the return ShareErrorPopup page. |
void |
waitForFile(long time,
String pathname)
Wait for file to be present given path for maximum page loading time.
|
protected void |
waitForFile(org.alfresco.webdrone.RenderTime renderTime,
String pathname)
Wait for file to be present given path.
|
void |
waitForFile(String pathname)
Wait for file to be present given path for maximum page loading time.
|
close, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringprotected static final int WAIT_TIME_3000
protected boolean dojoSupport
protected static final org.openqa.selenium.By PROMPT_PANEL_ID
protected AlfrescoVersion alfrescoVersion
protected long popupRendertime
protected long elementWaitInSeconds
protected boolean isJSMessageDisplayed()
public void basicRender(org.alfresco.webdrone.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()
public void elementRender(org.alfresco.webdrone.RenderTime renderTime,
org.alfresco.webdrone.RenderElement... elements)
ElementState of all render elements when rendering a page.
If the given element not reach element state, it will time out and throw
TimeoutException. If operation to find all elements
times out a PageRenderTimeException is thrownrenderTime - render timerRenderElement - collection of RenderElementpublic void waitForFile(long time,
String pathname)
pathname - Absolute Path Name with File Name.public void waitForFile(String pathname)
pathname - Absolute Path Name with File Name.protected void waitForFile(org.alfresco.webdrone.RenderTime renderTime,
String pathname)
renderTime - Render Timepathname - Absolute Path Name with File Name.protected org.alfresco.webdrone.HtmlPage submit(org.openqa.selenium.By locator,
org.alfresco.webdrone.ElementState elementState)
ShareErrorPopup Page, if it is rendered the return ShareErrorPopup page.locator - elementState - HtmlPagepublic String getElementText(org.openqa.selenium.By locator)
locator - public void setAlfrescoVersion(AlfrescoVersion alfrescoVersion)
public long getPopupRendertime()
public void setPopupRendertime(long popupRendertime)
public void setElementWaitInSeconds(long elementWaitInSeconds)
Copyright © 2013. All Rights Reserved.