org.jboss.test.selenium.framework
Class AjaxSeleniumImpl

java.lang.Object
  extended by org.jboss.test.selenium.framework.TypedSeleniumImpl
      extended by org.jboss.test.selenium.framework.ExtendedTypedSeleniumImpl
          extended by org.jboss.test.selenium.framework.AjaxSeleniumImpl
All Implemented Interfaces:
Cloneable, AjaxSelenium, ExtendedTypedSelenium, UnsupportedTypedSelenium, TypedSelenium

public class AjaxSeleniumImpl
extends ExtendedTypedSeleniumImpl
implements AjaxSelenium

Implementation of TypedSelenium extended by methods in ExtendedTypedSeleniumImpl.

Internally using AjaxAwareInterceptor and InterceptionProxy.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
AjaxSeleniumImpl(String serverHost, int serverPort, Browser browser, URL contextPathURL)
          Instantiates a new ajax selenium.
 
Method Summary
 AjaxSelenium clone()
          Immutable clone of this object.
 InterceptionProxy getInterceptionProxy()
          Returns associated command interception proxy
 PageExtensions getPageExtensions()
           Gets a PageExtensions object.
 RequestInterceptor getRequestInterceptor()
           Returns the RequestInterceptor object
 SeleniumExtensions getSeleniumExtensions()
           Returns a SeleniumExtensions object.
 
Methods inherited from class org.jboss.test.selenium.framework.ExtendedTypedSeleniumImpl
belongsClass, check, doCommand, enableNetworkTrafficCapturing, getCount, getExtendedSelenium, getStyle, getStyle, isAttributePresent, isDisplayed, isNetworkTrafficCapturingEnabled, isStarted, mouseOutAt, mouseOverAt, scrollIntoView, start, stop
 
Methods inherited from class org.jboss.test.selenium.framework.TypedSeleniumImpl
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshot, captureNetworkTraffic, captureScreenshot, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, containsScript, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllCookies, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookieByName, getCursorPosition, getElementDimension, getElementHeight, getElementIndex, getElementPosition, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, logToBrowser, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setCursorPosition, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForCondition, waitForFrameToLoad, waitForFrameToLoad, waitForPageToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.test.selenium.framework.ExtendedTypedSelenium
belongsClass, check, doCommand, enableNetworkTrafficCapturing, getCount, getStyle, getStyle, isAttributePresent, isDisplayed, isNetworkTrafficCapturingEnabled, isStarted, mouseOutAt, mouseOverAt, scrollIntoView
 
Methods inherited from interface org.jboss.test.selenium.framework.TypedSelenium
addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, captureEntirePageScreenshot, captureNetworkTraffic, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, containsScript, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllCookies, getAttribute, getBodyText, getConfirmation, getCookieByName, getCursorPosition, getElementDimension, getElementHeight, getElementIndex, getElementPosition, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getText, getTitle, getValue, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, logToBrowser, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, runScript, select, selectFrame, setBrowserLogLevel, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForCondition, waitForFrameToLoad, waitForFrameToLoad, waitForPageToLoad, waitForPageToLoad, windowFocus, windowMaximize
 

Constructor Detail

AjaxSeleniumImpl

public AjaxSeleniumImpl(String serverHost,
                        int serverPort,
                        Browser browser,
                        URL contextPathURL)
Instantiates a new ajax selenium.

Parameters:
serverHost - the server host
serverPort - the server port
browser - the browser
contextPathURL - the context path url
Method Detail

getPageExtensions

public PageExtensions getPageExtensions()
Description copied from interface: AjaxSelenium

Gets a PageExtensions object.

PageExtensions represents the JavaScript extensions on the tested page.

Specified by:
getPageExtensions in interface AjaxSelenium
Returns:
the PageExtensions object

getSeleniumExtensions

public SeleniumExtensions getSeleniumExtensions()
Description copied from interface: AjaxSelenium

Returns a SeleniumExtensions object.

SeleniumExtensions can be used in Selenium Test Runner to extend Selenium functionality.

Specified by:
getSeleniumExtensions in interface AjaxSelenium
Returns:
the SeleniumExtensions object

getRequestInterceptor

public RequestInterceptor getRequestInterceptor()
Description copied from interface: AjaxSelenium

Returns the RequestInterceptor object

RequestInterceptor

Specified by:
getRequestInterceptor in interface AjaxSelenium
Returns:
the RequestInterceptor object

getInterceptionProxy

public InterceptionProxy getInterceptionProxy()
Description copied from interface: AjaxSelenium
Returns associated command interception proxy

Specified by:
getInterceptionProxy in interface AjaxSelenium
Returns:
associated command interception proxy

clone

public AjaxSelenium clone()
                   throws CloneNotSupportedException
Description copied from interface: AjaxSelenium
Immutable clone of this object.

Specified by:
clone in interface AjaxSelenium
Overrides:
clone in class Object
Returns:
immutable clone of this object
Throws:
CloneNotSupportedException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.