org.apache.geronimo.testsupport
Class ExtendedSelenium

java.lang.Object
  extended by com.thoughtworks.selenium.DefaultSelenium
      extended by org.apache.geronimo.testsupport.ExtendedSelenium
All Implemented Interfaces:
com.thoughtworks.selenium.Selenium

public class ExtendedSelenium
extends com.thoughtworks.selenium.DefaultSelenium

Provides custom extentions to Selenium.

Version:
$Rev: 1097649 $ $Date: 2011-04-29 07:00:07 +0800 (Fri, 29 Apr 2011) $

Field Summary
 
Fields inherited from class com.thoughtworks.selenium.DefaultSelenium
commandProcessor
 
Constructor Summary
ExtendedSelenium(String serverHost, int serverPort, String browserStartCommand, String browserURL)
           
 
Method Summary
 void click(String locator)
           
 void removeCookie(String name, String path)
          Remove a cookie from the browser.
 
Methods inherited from class com.thoughtworks.selenium.DefaultSelenium
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshotToString, captureNetworkTraffic, captureScreenshot, captureScreenshotToString, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, rollup, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, showContextualBanner, showContextualBanner, shutDownSeleniumServer, start, start, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedSelenium

public ExtendedSelenium(String serverHost,
                        int serverPort,
                        String browserStartCommand,
                        String browserURL)
Method Detail

removeCookie

public void removeCookie(String name,
                         String path)
Remove a cookie from the browser.

This requires some custom hooks in user-extensions.js. When using the selenium-maven-plugin the defaults should be merged into the user-extensions.js which is loaded by the server.


click

public void click(String locator)
Specified by:
click in interface com.thoughtworks.selenium.Selenium
Overrides:
click in class com.thoughtworks.selenium.DefaultSelenium


Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.