version 1.0

com.actimind.actiwate.testing.html
Interface Page

All Superinterfaces:
Action, PageAssert, PageObjectLookup
All Known Subinterfaces:
Frame, IFrame, Window

public interface Page
extends Action, PageObjectLookup, PageAssert

The context in which object lookup and assertion performed.


Method Summary
 org.w3c.dom.html.HTMLDocument document()
          Returns HTMLDocument corresponding to this context.
 Frame frame(int index)
          Searches for frame by specified index.
 Frame frame(java.lang.String name)
          Searches for frame with specified name.
 Frame[] frames()
          Returns all frames of this page.
 IFrame iframe(int index)
          Searches for inline frame by specified index.
 IFrame iframe(java.lang.String name)
          Searches for iframe with specified name within this page.
 IFrame[] iframes()
          Returns all inline frames of this page.
 java.lang.String location()
          Returns this page location URL.
 java.lang.String pageTitle()
          Returns title of the page corresponding to this context.
 com.actimind.actiwate.Response response()
          Returns HttpResponseImpl object corresponding to this page.
 Window top()
          Returns top window for this page.
 
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
 

Method Detail

document

public org.w3c.dom.html.HTMLDocument document()
Returns HTMLDocument corresponding to this context.

Returns:
HTMLDocument corresponding to this context.

pageTitle

public java.lang.String pageTitle()
Returns title of the page corresponding to this context.

Returns:
title of the page corresponding to this context.

location

public java.lang.String location()
Returns this page location URL.

Returns:
this page location URL.

frames

public Frame[] frames()
Returns all frames of this page.

Returns:
Array of Frame objects.

iframes

public IFrame[] iframes()
Returns all inline frames of this page.

Returns:
Array of IFrame objects.

frame

public Frame frame(java.lang.String name)
            throws FrameNotFoundException
Searches for frame with specified name. Performs recursive search among all frames loaded in this page.

Parameters:
name - name of the frame to search for
Returns:
first frame with specified name
Throws:
FrameNotFoundException - if frame was not found

frame

public Frame frame(int index)
            throws FrameNotFoundException
Searches for frame by specified index. This is one level search, that means that it searches in a collection of topmost frames only.

Parameters:
index - index of frame, starting from zero
Returns:
Frame object
Throws:
FrameNotFoundException - if frame was not found

iframe

public IFrame iframe(java.lang.String name)
              throws FrameNotFoundException
Searches for iframe with specified name within this page. Performs recursive search among all frames loaded in this page.

Parameters:
name - name of the iframe to search for
Returns:
first iframe with specified name
Throws:
FrameNotFoundException - if iframe was not found

iframe

public IFrame iframe(int index)
              throws FrameNotFoundException
Searches for inline frame by specified index. This is one level search, that means that it searches in a collection of topmost iframes only.

Parameters:
index - index of iframe, starting from zero
Returns:
IFrame object
Throws:
FrameNotFoundException - if iframe was not found

top

public Window top()
Returns top window for this page.

Returns:
top window for this page.

response

public com.actimind.actiwate.Response response()
Returns HttpResponseImpl object corresponding to this page.

Returns:
HttpResponseImpl object corresponding to this page or null if response has not been received.


Copyright © 2007 Actimind, Inc. All Rights Reserved.