|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||
Base interface for the test session.
| Field Summary |
| Fields inherited from interface com.actimind.actiwate.testing.html.UserDialogExpect |
PRESS_CANCEL, PRESS_OK |
| Method Summary | |
void |
addAuthCredentials(java.lang.String hostname,
java.lang.String realm,
java.lang.String username,
java.lang.String password)
Adds credentials to a session for the given authentication realm on the given host. |
void |
disableJavaScript(boolean deferred)
Disables JavaScript support in this session for all the session windows and frames. |
void |
enableJavaScript()
Enables JavaScript support for all the session windows and frames. |
AsyncEvents |
getAsyncEvents()
Returns AsyncEvents class containing all sheduled but not executed async events.
|
boolean |
getAutoExecMetaRefreshes()
Returns value specified in setAutoExecMetaRefreshes(boolean) method. |
java.lang.String |
getBaseURL()
Returns base URL for this session. |
boolean |
getExecAsyncEventsAutomatically()
Returns value specified in setExecAsyncEventsAutomatically(boolean). |
long |
getExecAsyncEventsOffset()
Returns value specified in setExecAsyncEventsOffset(long). |
java.lang.String |
getURL(java.lang.String relURL)
Returns URL for specified relative URL. |
XmlHttpRequestConfig |
getXmlHttpRequestConfig()
Returns configuration for XmlHttpRequest async events. |
boolean |
isJavaScriptAutoRunningEnabled()
Returns value indicating whether or not JavaScript support is enabled. |
Window |
newWindow()
Creates new window. |
Page |
page()
Returns current page. |
Screen |
screen()
Returns the Screen interface containing parameters of the screen within
this session. |
void |
setAutoExecMetaRefreshes(boolean enabled)
Specifies one of two modes of processing of Meta Refreshes: parameter enabled=true -
Browser will process Meta-refreshes automatically
(without necessity of calling shiftTime(long) method).
|
void |
setBaseURL(java.lang.String URL)
Sets base URL for this session. |
void |
setConnectTimeout(int seconds)
Sets the timeout until HTTP connection with a server is established. |
void |
setDataTimeout(int seconds)
Sets the time which actiWATE waits for data server after connection is established. |
void |
setExecAsyncEventsAutomatically(boolean auto)
Specifies one of two modes of processing of async events: parameter auto=true -
Browser will execute async events automatically.
|
void |
setExecAsyncEventsOffset(long offsetMillis)
Sets offset for automatic async events execution. |
void |
setXmlHttpRequestConfig(XmlHttpRequestConfig xmlHttpRequestConfig)
Sets configuration for XmlHttpRequest async events. |
void |
shiftTime(long milliseconds)
Deprecated. replaced with getAsyncEvents().AsyncEvents.executeByTimeOffset(long) |
void |
switchTo(Page page)
Switches context to the specified page. |
Window |
window()
Returns window containing current context. |
Window |
window(int index)
Returns window by creation index. |
Window |
window(java.lang.String name)
Returns window by its name. |
Window |
windowWithTitle(java.lang.String windowTitle)
Returns first window with specified title substring. |
| Methods inherited from interface com.actimind.actiwate.testing.html.Action |
back, chooseFile, click, click, click, executeJavaScript, executeJavaScript, forward, goTo, goTo, reload, runPageScripts, selectOption, setFile, setFileName, setFileName, setText, setText, setText, toggleOption |
| Methods inherited from interface com.actimind.actiwate.testing.html.PageObjectLookup |
button, button, button, buttonByText, checkbox, checkbox, checkboxes, fileField, fileField, fileFields, image, imageByAlt, imageByURL, imageMap, imageMap, imageMaps, images, link, linkById, linkByText, linkByTitle, links, multiSelect, passwordField, radioButton, radioButton, radioButtons, singleSelect, table, tableById, tableByText, textarea, textField, textField, textFields |
| Methods inherited from interface com.actimind.actiwate.testing.html.PageAssert |
assertImageWithURLNotPresent, assertImageWithURLPresent, assertLinkWithTextNotPresent, assertLinkWithTextPresent, assertTextNotPresent, assertTextPresent, assertTitleEquals |
| Methods inherited from interface com.actimind.actiwate.testing.html.UserDialogExpect |
expectAlert, expectAlert, expectAnyAlert, expectAnyConfirm, expectAnyPrompt, expectConfirm, expectConfirm, expectPrompt, expectPromptWithText, expectPromptWithTextAndValue, verifyUserDialogs |
| Method Detail |
public void setBaseURL(java.lang.String URL)
URL - absolute URL, can be nullpublic java.lang.String getBaseURL()
public java.lang.String getURL(java.lang.String relURL)
relURL - relative URL
public Window window(int index)
throws WindowNotFoundException
index - creation index, starting from zero
WindowNotFoundException - if window with specified creation index does not exist.
public Window window(java.lang.String name)
throws WindowNotFoundException
name - name of the window to search for
WindowNotFoundException - if window with specified name does not exist.
public Window windowWithTitle(java.lang.String windowTitle)
throws WindowNotFoundException
windowTitle - title substring searched window must have
WindowNotFoundException - if window with specified title does not exist.public Window newWindow()
public Window window()
public Page page()
public void switchTo(Page page)
page - Page the context should be switched topublic void disableJavaScript(boolean deferred)
deferred - if false then JavaScript will be disabled immediately.
If true then JavaScript support will be disabled only after loading of a new HTML page
in this session, no matter in which window or frame.enableJavaScript(),
isJavaScriptAutoRunningEnabled(),
Action.executeJavaScript(java.lang.String),
Action.executeJavaScript(java.lang.String, org.w3c.dom.html.HTMLElement),
Action.executeJavaScript(java.lang.String),
Action.executeJavaScript(java.lang.String, org.w3c.dom.html.HTMLElement)public void enableJavaScript()
disableJavaScript(boolean),
isJavaScriptAutoRunningEnabled()public boolean isJavaScriptAutoRunningEnabled()
enableJavaScript(),
disableJavaScript(boolean)public void shiftTime(long milliseconds)
getAsyncEvents().AsyncEvents.executeByTimeOffset(long)
milliseconds - time to shift current time for (in milliseconds)
public void addAuthCredentials(java.lang.String hostname,
java.lang.String realm,
java.lang.String username,
java.lang.String password)
hostname - the host the credentials belongs torealm - the authentication realmusername - usernamepassword - passwordpublic Screen screen()
Screen interface containing parameters of the screen within
this session.
public void setAutoExecMetaRefreshes(boolean enabled)
enabled=true -
Browser will process Meta-refreshes automatically
(without necessity of calling shiftTime(long) method).
In this case Meta's timeout specified on a page doesn't make sence -
a refresh is executed immediately.
enabled=false -
Browser won't process Meta-refreshes until shiftTime(long) method
is called.
enabled - see abovepublic boolean getAutoExecMetaRefreshes()
setAutoExecMetaRefreshes(boolean) method.
setAutoExecMetaRefreshes(boolean) method.public void setConnectTimeout(int seconds)
seconds - Timeout value in secondspublic void setDataTimeout(int seconds)
seconds - Timeout value in secondspublic AsyncEvents getAsyncEvents()
AsyncEvents class containing all sheduled but not executed async events.
AsyncEvent.
AsyncEvents class containing all sheduled but not executed async events.public boolean getExecAsyncEventsAutomatically()
setExecAsyncEventsAutomatically(boolean).
setExecAsyncEventsAutomatically(boolean).public void setExecAsyncEventsAutomatically(boolean auto)
auto=true -
Browser will execute async events automatically.
After each user action browser will execute all async tasks with offset less or equal to the value
specified in setExecAsyncEventsOffset(long).
auto=false -
Browser won't execute async events until one of
AsyncEvents.executeNextEvent(),
AsyncEvents.executeByTimeOffset(long),
AsyncEvents.executeAllUntilEmpty(),
AsyncEvents.executeTillLatestEventOffset()
methods is called.
auto - see abovepublic long getExecAsyncEventsOffset()
setExecAsyncEventsOffset(long).
setExecAsyncEventsOffset(long).public void setExecAsyncEventsOffset(long offsetMillis)
offsetMillis - offset for automatic async events execution.setExecAsyncEventsAutomatically(boolean)public XmlHttpRequestConfig getXmlHttpRequestConfig()
public void setXmlHttpRequestConfig(XmlHttpRequestConfig xmlHttpRequestConfig)
xmlHttpRequestConfig - configuration for XmlHttpRequest async events.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||