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.


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 removeCookie(String name, String path)
          Remove a cookie from the browser.
 
Methods inherited from class com.thoughtworks.selenium.DefaultSelenium
addLocationStrategy, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, 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, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, open, openWindow, refresh, removeAllSelections, removeSelection, runScript, select, selectFrame, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, start, stop, submit, type, typeKeys, uncheck, 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.



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