public class UpdateFilePage extends SharePage
| Modifier and Type | Field and Description |
|---|---|
protected String |
cancelButton |
protected String |
documentVersion |
protected String |
majorVersionRadioButton |
protected String |
minorVersionRadioButton |
protected String |
submitButton |
protected String |
textAreaCssLocation |
dojoSupport, PROMPT_PANEL_ID, WAIT_TIME_3000drone, elementWaitInSeconds, maxPageLoadingTime, popupRendertime, version| Constructor and Description |
|---|
UpdateFilePage(WebDrone drone,
String documentVersion,
boolean editOffline)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UpdateFilePage |
render()
Page renderer verifies the page has rendered
by checking java script page loaded status is complete.
|
UpdateFilePage |
render(long time)
Page renderer verifies the page has rendered
by checking all elements are visible and loaded by the
max limit time set.
|
UpdateFilePage |
render(RenderTime timer)
Page renderer verifies the page has rendered
by checking all elements are visible and loaded.
|
void |
selectCancel()
Clicks on the submit upload button.
|
void |
selectMajorVersionChange()
Select the major version tick box.
|
void |
selectMinorVersionChange()
Select the minor version tick box.
|
void |
setComment(String comment)
Sets the comment in the comments field
|
HtmlPage |
submit()
Clicks on the submit upload button.
|
void |
uploadFile(String filePath)
Uploads a file by entering the file location into the input field and
submitting the form.
|
basicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getElementText, getLogin, getNav, getPageTitle, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists, submit, waitForFile, waitForFile, waitForFileclose, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringprotected String textAreaCssLocation
protected String minorVersionRadioButton
protected String majorVersionRadioButton
protected String submitButton
protected String cancelButton
protected final String documentVersion
public UpdateFilePage render(RenderTime timer)
RenderRenderTime.timer - RenderTime time to waitHtmlPage page object responsepublic UpdateFilePage render()
RenderHtmlPage object responsepublic UpdateFilePage render(long time)
Rendertime - waiting timeHtmlPage page object responsepublic void selectMinorVersionChange()
public void selectMajorVersionChange()
public HtmlPage submit()
public void uploadFile(String filePath)
filePath - String file location to uploadpublic void setComment(String comment)
comment - String of user comment.public void selectCancel()
Copyright © 2014. All rights reserved.