|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.webdrone.Page
org.alfresco.webdrone.share.SharePage
public abstract class SharePage
Abstract of an Alfresco Share HTML page.
| Field Summary | |
|---|---|
protected boolean |
dojoSupport
|
protected static int |
WAIT_TIME_3000
|
| Fields inherited from class org.alfresco.webdrone.Page |
|---|
drone, maxPageLoadingTime, version |
| Constructor Summary | |
|---|---|
protected |
SharePage(WebDrone drone)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.alfresco.webdrone.Page |
|---|
close, getDrone, getScreenShot, getTitle, isBrowserTitle, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.alfresco.webdrone.Render |
|---|
render, render, render |
| Field Detail |
|---|
protected static final int WAIT_TIME_3000
protected final boolean dojoSupport
| Constructor Detail |
|---|
protected SharePage(WebDrone drone)
| Method Detail |
|---|
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 element
public LoginPage getLogin()
LoginPage
public Navigation getNav()
Navigation
public SearchBox getSearch()
Exception - if error
public 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 milliseconds
protected boolean canResume()
protected void elementRender(RenderTime renderTime,
org.openqa.selenium.By... locators)
TimeoutException. If operation to find all elements
times out a PageRenderTimeException is thrown
renderTime - render timerlocators - collection of By locator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||