com.saucelabs.selenium.client.htmlunit
Class SeleniumHTMLUnit

java.lang.Object
  extended by com.saucelabs.selenium.client.htmlunit.SeleniumHTMLUnit
All Implemented Interfaces:
com.thoughtworks.selenium.Selenium

public class SeleniumHTMLUnit
extends Object
implements com.thoughtworks.selenium.Selenium

An implementation of the Selenium API (current as of 20070801) with HTMLUnit.

Version:
$Id: SeleniumHTMLUnit.java,v 1.9 2008/06/16 09:02:49 ndaniels Exp $
Author:
Olivier Dony, Denali s.a.

Field Summary
protected  String baseUrl
           
protected  boolean debugPageOnFailure
           
static int DEFAULT_HTTP_TIMEOUT
          The default timeout for HTTP operations *
static int DEFAULT_WAIT_TIMEOUT
           
protected static Logger logger
           
protected  com.gargoylesoftware.htmlunit.WebWindow originalWindow
           
protected  List<Throwable> verificationErrors
           
protected  com.gargoylesoftware.htmlunit.WebClient webClient
           
 
Constructor Summary
SeleniumHTMLUnit()
           
SeleniumHTMLUnit(boolean throwExceptionOnScriptError, boolean throwExceptionOnFailingStatusCode)
           
 
Method Summary
 void addCustomRequestHeader(String key, String value)
           
 void addLocationStrategy(String strategyName, String functionDefinition)
           
 void addScript(String scriptContent, String scriptTagId)
           
 void addSelection(String locator, String optionLocator)
          Add a selection to the set of selected options in a multi-select element using an option locator.
 void addSelectionAndWait(String locator, String optionLocator)
           
 void allowNativeXpath(String allow)
           
 void altKeyDown()
           
 void altKeyDownAndWait()
           
 void altKeyUp()
           
 void altKeyUpAndWait()
           
 void answerOnNextPrompt(String answer)
           
 void assertAlert(String pattern)
           
 void assertAlertNotPresent(String pattern)
           
 void assertAlertPresent(String pattern)
           
 void assertAllButtons(String pattern)
           
 void assertAllFields(String pattern)
           
 void assertAllLinks(String pattern)
           
 void assertAllWindowsIds(String pattern)
           
 void assertAllWindowsNames(String pattern)
           
 void assertAllWindowsTitles(String pattern)
           
 void assertAttribute(String attributeLocator, String pattern)
           
 void assertAttributeFromAllWindows(String[] attributeName, String pattern)
           
 void assertBodyText(String pattern)
           
 void assertChecked(String locator)
           
 void assertConfirmation(String pattern)
           
 void assertConfirmationNotPresent()
           
 void assertConfirmationPresent()
           
 void assertCookie(String pattern)
           
 void assertCursorPosition(String locator, String pattern)
           
 void assertEditable(String locator)
           
 void assertElementHeight(String locator, String pattern)
           
 void assertElementIndex(String locator, String pattern)
           
 void assertElementNotPresent(String locator)
           
 void assertElementPositionLeft(String locator, String pattern)
           
 void assertElementPositionTop(String locator, String pattern)
           
 void assertElementPresent(String locator)
           
 void assertElementWidth(String locator, String pattern)
           
 void assertEquals(Object s1, Object s2)
          Like JUnit's Assert.assertEquals, but knows how to compare string arrays
 void assertEquals(String[] s1, String[] s2)
          Asserts that two string arrays have identical string contents
 void assertEquals(String s1, String s2)
          Like JUnit's Assert.assertEquals, but handles "regexp:" strings like HTML Selenese
 void assertEquals(String s1, String[] s2)
          Like JUnit's Assert.assertEquals, but joins the string array with commas, and handles "regexp:" strings like HTML Selenese
 void assertEval(String script, String pattern)
           
 void assertFalse(boolean b)
           
 void assertFalse(String msg, boolean b)
           
 void assertHtmlSource(String pattern)
           
 void assertLocation(String pattern)
           
 void assertMouseSpeed(String pattern)
           
 void assertNotAlert(String pattern)
           
 void assertNotAllButtons(String pattern)
           
 void assertNotAllFields(String pattern)
           
 void assertNotAllLinks(String pattern)
           
 void assertNotAllWindowsIds(String pattern)
           
 void assertNotAllWindowsNames(String pattern)
           
 void assertNotAllWindowsTitles(String pattern)
           
 void assertNotAttribute(String attributeLocator, String pattern)
           
 void assertNotAttributeFromAllWindows(String[] attributeName, String pattern)
           
 void assertNotBodyText(String pattern)
           
 void assertNotChecked(String locator)
           
 void assertNotConfirmation(String pattern)
           
 void assertNotCookie(String pattern)
           
 void assertNotCursorPosition(String locator, String pattern)
           
 void assertNotEditable(String locator)
           
 void assertNotElementHeight(String locator, String pattern)
           
 void assertNotElementIndex(String locator, String pattern)
           
 void assertNotElementPositionLeft(String locator, String pattern)
           
 void assertNotElementPositionTop(String locator, String pattern)
           
 void assertNotElementWidth(String locator, String pattern)
           
 void assertNotEquals(boolean b1, boolean b2)
          Asserts that two booleans are not the same
 void assertNotEquals(Object obj1, Object obj2)
          Asserts that two objects are not the same (compares using .equals())
 void assertNotEval(String script, String pattern)
           
 void assertNotExpression(String script, String pattern)
           
 void assertNotHtmlSource(String pattern)
           
 void assertNotLocation(String pattern)
           
 void assertNotMouseSpeed(String pattern)
           
 void assertNotOrdered(String locator1, String locator2)
           
 void assertNotPrompt(String pattern)
           
static void assertNotSame(Object obj1, Object obj2)
           
 void assertNotSelectedId(String selectLocator, String pattern)
           
 void assertNotSelectedIds(String selectLocator, String pattern)
           
 void assertNotSelectedIndex(String selectLocator, String pattern)
           
 void assertNotSelectedIndexes(String selectLocator, String pattern)
           
 void assertNotSelectedLabel(String selectLocator, String pattern)
           
 void assertNotSelectedLabels(String selectLocator, String pattern)
           
 void assertNotSelectedValue(String selectLocator, String pattern)
           
 void assertNotSelectedValues(String selectLocator, String pattern)
           
 void assertNotSelectOptions(String pattern, String[] selectLocator)
           
 void assertNotSomethingSelected(String selectLocator)
           
 void assertNotTable(String TableCellAddress, String pattern)
           
 void assertOrdered(String locator1, String locator2)
           
 void assertPrompt(String pattern)
           
 void assertPromptNotPresent()
           
 void assertPromptPresent()
           
 void assertSelectedId(String selectLocator, String pattern)
           
 void assertSelectedIds(String selectLocator, String pattern)
           
 void assertSelectedIndex(String selectLocator, String pattern)
           
 void assertSelectedIndexes(String selectLocator, String pattern)
           
 void assertSelectedLabel(String selectLocator, String pattern)
           
 void assertSelectedLabels(String selectLocator, String pattern)
           
 void assertSelectedValue(String selectLocator, String pattern)
           
 void assertSelectedValues(String selectLocator, String pattern)
           
 void assertSelectOptions(String pattern, String[] selectLocator)
           
 void assertSomethingSelected(String selectLocator)
           
 void assertTable(String tableCellAddress, String pattern)
           
 void assertText(String locator, String pattern)
           
 void assertTextNotPresent(String text)
          Check if the text is NOT present in the current page
 void assertTextPresent(String text)
          Check if the text is present in the current page
 void assertTitle(String text)
          Check the title of the current page
 void assertTrue(boolean b)
           
 void assertTrue(String msg, boolean b)
           
 void assertValue(String locator, String pattern)
           
 void assertVisible(String locator)
           
 void assignId(String locator, String identifier)
           
 void attachFile(String fieldLocator, String fileLocator)
           
 void captureEntirePageScreenshot(String filename, String kwargs)
           
 String captureEntirePageScreenshotToString(String kwargs)
           
 String captureNetworkTraffic(String type)
           
 void captureScreenshot(String filename)
           
 String captureScreenshotToString()
           
 void check(String locator)
          Check a toggle-button (checkbox/radio)
 void checkAndWait(String locator)
           
 void checkForVerificationErrors()
           
 void chooseCancelOnNextConfirmation()
           
 void chooseOkOnNextConfirmation()
           
 void chooseOkOnNextConfirmationAndWait()
           
 void click(String locator)
          Clicks on a link, button, checkbox or radio button.
 void clickAndWait(String locator)
          Clicks on a link, button, checkbox or radio button.
 void clickAt(String locator, String coordString)
           
 void clickAtAndWait(String locator, String coordString)
           
 void close()
           
 void contextMenu(String locator)
           
 void contextMenuAt(String locator, String coordString)
           
 void controlKeyDown()
           
 void controlKeyDownAndWait()
           
 void controlKeyUp()
           
 void controlKeyUpAndWait()
           
 void createCookie(String nameValuePair, String optionsString)
           
 void createCookieAndWait(String nameValuePair, String optionsString)
           
 void deleteAllVisibleCookies()
           
 void deleteCookie(String name, String path)
           
 void deleteCookieAndWait(String name, String optionsString)
           
 void deselectPopUp()
           
 void doubleClick(String locator)
           
 void doubleClickAt(String locator, String coordString)
           
 void doubleClickAtAndWait(String locator, String coordString)
           
 void dragAndDrop(String locator, String movementsString)
           
 void dragAndDropAndWait(String locator, String movementsString)
           
 void dragAndDropToObject(String locatorOfObjectToBeDragged, String locatorOfDragDestinationObject)
           
 void dragAndDropToObjectAndWait(String locatorOfObjectToBeDragged, String locatorOfDragDestinationObject)
           
 void dragdrop(String locator, String movementsString)
           
 void dragdropAndWait(String locator, String movementsString)
           
 void echo(String message)
           
 void fail()
           
 void fail(String msg)
           
 void fireEvent(String locator, String eventName)
           
 void fireEventAndWait(String locator, String eventName)
           
 void focus(String locator)
           
 String getAlert()
           
 String[] getAllButtons()
           
 String[] getAllFields()
           
 String[] getAllLinks()
           
 String[] getAllWindowIds()
           
 String[] getAllWindowNames()
           
 String[] getAllWindowTitles()
           
 String getAttribute(String attributeLocator)
          Gets the value of an element attribute.
 String[] getAttributeFromAllWindows(String attributeName)
           
 String getBaseUrl()
          Returns the baseUrl.
 String getBodyText()
           
 String getConfirmation()
           
 String getCookie()
           
 String getCookieByName(String name)
           
 Number getCursorPosition(String locator)
           
 com.gargoylesoftware.htmlunit.html.HtmlElement getElement(String locator)
           
 Number getElementHeight(String locator)
           
 Number getElementIndex(String locator)
           
 Number getElementPositionLeft(String locator)
           
 Number getElementPositionTop(String locator)
           
 List<? extends Object> getElements(String locator)
           
 Number getElementWidth(String locator)
           
 String getEval(String script)
           
 String getExpression(String expression)
           
 String getHtmlSource()
           
 String getLocation()
           
 String getLogLevel()
          Return the label (Level.getName()) for the Logger used by this SeleniumHTMLUnit.
 Number getMouseSpeed()
           
 com.gargoylesoftware.htmlunit.html.HtmlPage getPage()
          Returns the current page, resulting from the last action, and on which the next action will be executed.
 String getPrompt()
           
 String getSelectedId(String selectLocator)
          Gets option element ID for selected option in the specified select element.
 String[] getSelectedIds(String selectLocator)
          Gets all option element IDs for selected options in the specified select or multi-select element.
 String getSelectedIndex(String selectLocator)
          Gets option index (option number, starting at 0) for selected option in the specified select element.
 String[] getSelectedIndexes(String selectLocator)
          Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.
 String getSelectedLabel(String selectLocator)
          Gets option label (visible text) for selected option in the specified select element.
 String[] getSelectedLabels(String selectLocator)
          Gets all option labels (visible text) for selected options in the specified select or multi-select element.
 String getSelectedValue(String selectLocator)
          Gets option value (value attribute) for selected option in the specified select element.
 String[] getSelectedValues(String selectLocator)
          Gets all option values (value attributes) for selected options in the specified select or multi-select element.
 String[] getSelectOptions(String selectLocator)
          Gets all option labels in the specified select drop-down.
 String getSpeed()
           
 String getTable(String tableCellAddress)
           
 String getText(String locator)
          Gets the text of an element.
 String getTitle()
          Returns the title of the current page, or null if there is no title.
 String getValue(String locator)
          Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter).
 String getVerificationErrors()
           
 com.gargoylesoftware.htmlunit.WebClient getWebClient()
          Returns the underlying htmlunit webClient.
 boolean getWhetherThisFrameMatchFrameExpression(String currentFrameString, String target)
           
 boolean getWhetherThisWindowMatchWindowExpression(String currentWindowString, String target)
           
 Number getXpathCount(String xpath)
           
 void goBack()
           
 void goBackAndWait()
           
 boolean hasDebugPageOnFailure()
          Returns whether page debugging is enabled when a failure occurs.
 void highlight(String locator)
           
 void highlightAndWait(String locator)
           
 void ignoreAttributesWithoutValue(String ignore)
           
 void initWebClient(boolean throwExceptionOnScriptError, boolean throwExceptionOnFailingStatusCode)
           
 boolean isAlertPresent()
           
 boolean isChecked(String locator)
          Gets whether a toggle-button (checkbox/radio) is checked.
 boolean isConfirmationPresent()
           
 boolean isCookiePresent(String name)
           
 boolean isEditable(String locator)
           
 boolean isElementPresent(String locator)
          Verifies that the specified element is somewhere on the getPage().
 boolean isOrdered(String locator1, String locator2)
           
 boolean isPromptPresent()
           
 boolean isSomethingSelected(String selectLocator)
          Determines whether some option in a drop-down menu is selected.
 boolean isTextPresent(String pattern)
          Verifies that the specified text pattern appears somewhere on the rendered page shown to the user.
 boolean isVisible(String locator)
           
 void keyDown(String locator, String keySequence)
           
 void keyDownAndWait(String locator, String keySequence)
           
 void keyDownNative(String keycode)
           
 void keyPress(String locator, String keySequence)
           
 void keyPressAndWait(String locator, String keySequence)
           
 void keyPressNative(String keycode)
           
 void keyUp(String locator, String keySequence)
           
 void keyUpAndWait(String locator, String keySequence)
           
 void keyUpNative(String keycode)
           
 void metaKeyDown()
           
 void metaKeyDownAndWait()
           
 void metaKeyUp()
           
 void metaKeyUpAndWait()
           
 void mouseDown(String locator)
          Simulates a user pressing the mouse button (without releasing it yet) on the specified element.
 void mouseDownAndWait(String locator)
           
 void mouseDownAt(String locator, String coordString)
           
 void mouseDownAtAndWait(String locator, String coordString)
           
 void mouseDownRight(String locator)
           
 void mouseDownRightAt(String locator, String coordString)
           
 void mouseMove(String locator)
           
 void mouseMoveAndWait(String locator)
           
 void mouseMoveAt(String locator, String coordString)
           
 void mouseMoveAtAndWait(String locator, String coordString)
           
 void mouseOut(String locator)
          Simulates a user moving the mouse pointer away from the specified element.
 void mouseOutAndWait(String locator)
           
 void mouseOver(String locator)
          Simulates a user hovering a mouse over the specified element.
 void mouseOverAndWait(String locator)
           
 void mouseUp(String locator)
          Simulates the event that occurs when the user releases the mouse button (i.e., stops holding the button down) on the specified element.
 void mouseUpAndWait(String locator)
           
 void mouseUpAt(String locator, String coordString)
           
 void mouseUpAtAndWait(String locator, String coordString)
           
 void mouseUpRight(String locator)
           
 void mouseUpRightAt(String locator, String coordString)
           
 void open(String location)
          Opens an URL in the test frame.
 void openWindow(String url, String windowID)
           
 void openWindowAndWait(String url, String windowID)
           
 void pause(int millisecs)
          Sleeps for the specified number of milliseconds
 void pause(String target)
           
 String printStringToFile(String str)
          Utility method to print a String to a random file on the disk.
 void refresh()
           
 void refreshAndWait()
           
 void removeAllSelections(String locator)
          Unselects all of the selected options in a multi-select element.
 void removeAllSelectionsAndWait(String locator)
           
 void removeScript(String scriptTagId)
           
 void removeSelection(String locator, String optionLocator)
          Remove a selection from the set of selected options in a multi-select element using an option locator.
 void removeSelectionAndWait(String locator, String optionLocator)
           
 String retrieveLastRemoteControlLogs()
           
 void rollup(String rollupName, String kwargs)
           
 void runScript(String script)
           
 void select(String selectLocator, String optionLocator)
          Select an option from a drop-down using an option locator.
 void selectAndWait(String selectLocator, String optionLocator)
           
 void selectFrame(String frameID)
          Selects a frame within the current window.
 void selectPopUp(String windowID)
           
 void selectWindow(String windowID)
          Selects a popup window; once a popup window has been selected, all commands go to that window.
 boolean seleniumEquals(Object expected, Object actual)
          Compares two objects, but handles "regexp:" strings like HTML Selenese
 boolean seleniumEquals(String expectedPattern, String actual)
          Compares two strings, but handles "regexp:" strings like HTML Selenese
 void setBaseUrl(String theBaseUrl)
          Sets the baseUrl to use when a URL passed to open(String) is not absolute.
 void setBrowserLogLevel(String logLevel)
           
 void setBrowserLogLevelAndWait(String logLevel)
           
 void setContext(String context)
           
 void setCursorPosition(String locator, String position)
           
 void setCursorPositionAndWait(String locator, String position)
           
 void setDebugPageOnFailure(boolean debugPageOnFailure)
          Sets whether page debugging is enabled when a failure occurs.
 void setExtensionJs(String extensionJs)
           
static void setLoglevel(Level l)
           
 void setLogLevel(String level)
           
 void setMouseSpeed(String pixels)
           
 void setMouseSpeedAndWait(String pixels)
           
 void setSpeed(String value)
           
 void setSpeedAndWait(String value)
           
 void setTimeout(String timeout)
          Specifies the amount of time that Selenium will wait for actions to complete.
 void setVerifyActAsAssert(boolean asAssert)
          Specifies if the verify actions should act as assert actions and trigger an exception as soon as they fail.
 void shiftKeyDown()
           
 void shiftKeyDownAndWait()
           
 void shiftKeyUp()
           
 void shiftKeyUpAndWait()
           
 void showContextualBanner()
           
 void showContextualBanner(String className, String methodName)
           
 void shutDownSeleniumServer()
           
 void start()
           
 void start(Object optionsObject)
           
 void start(String optionsString)
           
 void stop()
           
 void storeEval(String value, String target)
           
 void submit(String formLocator)
           
 void submitAndWait(String formLocator)
           
 void type(String locator, String value)
          Sets the value of an input field, as though you typed it in.
 void typeAndWait(String locator, String value)
           
 void typeKeys(String locator, String value)
           
 void typeKeysAndWait(String locator, String value)
           
 void uncheck(String locator)
          Uncheck a toggle-button (checkbox/radio)
 void uncheckAndWait(String locator)
           
 void useXpathLibrary(String libraryName)
           
 void verifyAlert(String pattern)
           
 void verifyAlertNotPresent()
           
 void verifyAlertPresent()
           
 void verifyAllButtons(String pattern)
           
 void verifyAllFields(String pattern)
           
 void verifyAllLinks(String pattern)
           
 void verifyAllWindowIds(String pattern)
           
 void verifyAllWindowNames(String pattern)
           
 void verifyAllWindowTitles(String pattern)
           
 void verifyAttribute(String attributeLocator, String pattern)
           
 void verifyAttributeFromAllWindows(String attributeLocator, String pattern)
           
 void verifyBodyText(String pattern)
           
 void verifyChecked(String locator)
           
 void verifyConfirmation(String pattern)
           
 void verifyConfirmationNotPresent(String pattern)
           
 void verifyConfirmationPresent(String pattern)
           
 void verifyCookie(String pattern)
           
 void verifyCursorPosition(String locator, String pattern)
           
 void verifyEditable(String locator)
           
 void verifyElementHeight(String locator, String pattern)
           
 void verifyElementIndex(String locator, String pattern)
           
 void verifyElementNotPresent(String locator)
           
 void verifyElementPositionLeft(String locator, String pattern)
           
 void verifyElementPositionTop(String locator, String pattern)
           
 void verifyElementPresent(String locator)
           
 void verifyElementWidth(String locator, String pattern)
           
 void verifyEquals(boolean s1, boolean s2)
          Like assertEquals, but fails at the end of the test (during tearDown)
 void verifyEquals(Object s1, Object s2)
          Like assertEquals, but fails at the end of the test (during tearDown)
 void verifyEquals(String[] s1, String[] s2)
          Asserts that two string arrays have identical string contents (fails at the end of the test, during tearDown)
 void verifyEval(String script, String pattern)
           
 void verifyExpression(String expression, String pattern)
           
 void verifyFalse(boolean b)
          Like assertFalse, but fails at the end of the test (during tearDown)
 void verifyHtmlSource(String pattern)
           
 void verifyLocation(String pattern)
           
 void verifyMouseSpeed(String pattern)
           
 void verifyNotAlert(String pattern)
           
 void verifyNotAllButtons(String pattern)
           
 void verifyNotAllFields(String pattern)
           
 void verifyNotAllLinks(String pattern)
           
 void verifyNotAllWindowIds(String pattern)
           
 void verifyNotAllWindowNames(String pattern)
           
 void verifyNotAllWindowTitles(String pattern)
           
 void verifyNotAttribute(String attributeLocator, String pattern)
           
 void verifyNotAttributeFromAllWindows(String attributeName, String pattern)
           
 void verifyNotBodyText(String pattern)
           
 void verifyNotChecked(String locator)
           
 void verifyNotConfirmation(String pattern)
           
 void verifyNotCookie(String pattern)
           
 void verifyNotCursorPosition(String locator, String pattern)
           
 void verifyNotEditable(String locator)
           
 void verifyNotElementHeight(String locator, String pattern)
           
 void verifyNotElementIndex(String locator, String pattern)
           
 void verifyNotElementPositionLeft(String locator, String pattern)
           
 void verifyNotElementPositionTop(String locator, String pattern)
           
 void verifyNotElementWidth(String locator, String pattern)
           
 void verifyNotEquals(boolean s1, boolean s2)
          Like assertNotEquals, but fails at the end of the test (during tearDown)
 void verifyNotEquals(Object s1, Object s2)
          Like assertNotEquals, but fails at the end of the test (during tearDown)
 void verifyNotEquals(String a, String b)
           
 void verifyNotEval(String script, String pattern)
           
 void verifyNotExpression(String expression, String pattern)
           
 void verifyNotHtmlSource(String pattern)
           
 void verifyNotLocation(String pattern)
           
 void verifyNotMouseSpeed(String pattern)
           
 void verifyNotOrdered(String locator1, String locator2)
           
 void verifyNotPrompt(String pattern)
           
 void verifyNotSelectedId(String selectLocator, String pattern)
           
 void verifyNotSelectedIds(String selectLocator, String pattern)
           
 void verifyNotSelectedIndex(String selectLocator, String pattern)
           
 void verifyNotSelectedIndexes(String selectLocator, String pattern)
           
 void verifyNotSelectedLabel(String selectLocator, String pattern)
           
 void verifyNotSelectedLabels(String selectLocator, String pattern)
           
 void verifyNotSelectedValue(String selectLocator, String pattern)
           
 void verifyNotSelectedValues(String selectLocator, String pattern)
           
 void verifyNotSelectOptions(String selectLocator, String pattern)
           
 void verifyNotSomethingSelected(String selectLocator)
           
 void verifyNotTable(String tableCellAddress, String pattern)
           
 void verifyNotText(String selectLocator, String pattern)
           
 void verifyNotTitle(String pattern)
           
 void verifyNotValue(String locator, String pattern)
           
 void verifyNotVisible(String locator)
           
 void verifyNotXpathCount(String xpath, String pattern)
           
 void verifyOrdered(String locator1, String locator2)
           
 void verifyPrompt(String pattern)
           
 void verifyPromptNotPresent()
           
 void verifyPromptPresent()
           
 void verifySelectedId(String selectLocator, String pattern)
           
 void verifySelectedIds(String selectLocator, String pattern)
           
 void verifySelectedIndex(String selectLocator, String pattern)
           
 void verifySelectedIndexes(String selectLocator, String pattern)
           
 void verifySelectedLabel(String selectLocator, String pattern)
           
 void verifySelectedLabels(String selectLocator, String pattern)
           
 void verifySelectedValue(String selectLocator, String pattern)
           
 void verifySelectedValues(String selectLocator, String pattern)
           
 void verifySelectOptions(String selectLocator, String pattern)
           
 void verifySomethingSelected(String selectLocator)
           
 void verifyTable(String tableCellAddress, String pattern)
           
 void verifyText(String locator, String pattern)
           
 void verifyTextNotPresent(String pattern)
           
 void verifyTextPresent(String text)
          Like assertTextPresent, but fails at the end of the test (during tearDown)
 void verifyTitle(String pattern)
           
 void verifyTrue(boolean b)
          Like assertTrue, but fails at the end of the test (during tearDown)
 void verifyTrue(boolean b, String message)
          Like assertTrue, but fails at the end of the test (during tearDown)
 void verifyValue(String locator, String pattern)
           
 void verifyVisible(String locator)
           
 void verifyXpathCount(String xpath, String pattern)
           
 void waitForAlert(String pattern)
           
 void waitForAlertNotPresent()
           
 void waitForAlertPresent()
           
 void waitForAllButtons(String pattern)
           
 void waitForAllFields(String pattern)
           
 void waitForAllLinks(String pattern)
           
 void waitForAllWindowIds(String pattern)
           
 void waitForAllWindowNames(String pattern)
           
 void waitForAllWindowTitles(String pattern)
           
 void waitForAttribute(String attributeLocator, String pattern)
           
 void waitForAttributeFromAllWindows(String attributeLocator, String pattern)
           
 void waitForBodyText(String pattern)
           
 void waitForChecked(String locator)
           
 void waitForCondition(String script, String timeout)
          Runs the specified JavaScript snippet repeatedly until it evaluates to "true".
 void waitForConfirmation(String pattern)
           
 void waitForConfirmationNotPresent()
           
 void waitForConfirmationPresent()
           
 void waitForCookie(String pattern)
           
 void waitForCursorPosition(String locator, String pattern)
           
 void waitForEditable(String locator)
           
 void waitForElementHeight(String locator, String pattern)
           
 void waitForElementIndex(String locator, String pattern)
           
 void waitForElementNotPresent(String locator)
           
 void waitForElementPositionLeft(String locator, String pattern)
           
 void waitForElementPositionTop(String locator, String pattern)
           
 void waitForElementPresent(String locator)
          Wait for an element to appear on the current page
 void waitForElementWidth(String locator, String pattern)
           
 void waitForEval(String script, String pattern)
           
 void waitForExpression(String script, String pattern)
           
 void waitForFrameToLoad(String frameAddress, String timeout)
           
 void waitForHtmlSource(String pattern)
           
 void waitForLocation(String pattern)
           
 void waitForMouseSpeed(String pattern)
           
 void waitForNotAlert(String pattern)
           
 void waitForNotAllButtons(String pattern)
           
 void waitForNotAllFields(String pattern)
           
 void waitForNotAllLinks(String pattern)
           
 void waitForNotAllWindowIds(String pattern)
           
 void waitForNotAllWindowNames(String pattern)
           
 void waitForNotAllWindowTitles(String pattern)
           
 void waitForNotAttribute(String attributeLocator, String pattern)
           
 void waitForNotAttributeFromAllWindows(String attributeName, String pattern)
           
 void waitForNotBodyText(String pattern)
           
 void waitForNotChecked(String locator)
           
 void waitForNotConfirmation(String locator)
           
 void waitForNotCookie(String pattern)
           
 void waitForNotCursorPosition(String locator, String pattern)
           
 void waitForNotEditable(String locator)
           
 void waitForNotElementHeight(String locator, String pattern)
           
 void waitForNotElementIndex(String locator, String pattern)
           
 void waitForNotElementPositionLeft(String locator, String pattern)
           
 void waitForNotElementPositionTop(String locator, String pattern)
           
 void waitForNotElementWidth(String locator, String pattern)
           
 void waitForNotEval(String script, String pattern)
           
 void waitForNotExpression(String expression, String pattern)
           
 void waitForNotHtmlSource(String pattern)
           
 void waitForNotLocation(String pattern)
           
 void waitForNotMouseSpeed(String pattern)
           
 void waitForNotOrdered(String locator1, String locator2)
           
 void waitForNotPrompt(String pattern)
           
 void waitForNotSelectedId(String selectLocator, String pattern)
           
 void waitForNotSelectedIds(String selectLocator, String pattern)
           
 void waitForNotSelectedIndex(String selectLocator, String pattern)
           
 void waitForNotSelectedIndexes(String selectLocator, String pattern)
           
 void waitForNotSelectedLabel(String selectLocator, String pattern)
           
 void waitForNotSelectedLabels(String selectLocator, String pattern)
           
 void waitForNotSelectedValue(String selectLocator, String pattern)
           
 void waitForNotSelectedValues(String selectLocator, String pattern)
           
 void waitForNotSelectOptions(String selectLocator, String pattern)
           
 void waitForNotSomethingSelected(String selectLocator)
           
 void waitForNotTable(String tableCellAddress, String pattern)
           
 void waitForNotText(String locator, String pattern)
           
 void waitForNotTitle(String pattern)
           
 void waitForNotValue(String locator, String pattern)
           
 void waitForNotVisible(String locator)
           
 void waitForOrdered(String locator1, String locator2)
           
 void waitForPageToLoad(String strTimeout)
          Waits for a new page to load.
 void waitForPopUp(String windowID, String timeout)
           
 void waitForPrompt(String pattern)
           
 void waitForPromptNotPresent()
           
 void waitForPromptPresent()
           
 void waitForSelectedId(String selectLocator, String pattern)
           
 void waitForSelectedIds(String selectLocator, String pattern)
           
 void waitForSelectedIndex(String selectLocator, String pattern)
           
 void waitForSelectedIndexes(String selectLocator, String pattern)
           
 void waitForSelectedLabel(String selectLocator, String pattern)
           
 void waitForSelectedLabels(String selectLocator, String pattern)
           
 void waitForSelectedValue(String selectLocator, String pattern)
           
 void waitForSelectedValues(String selectLocator, String pattern)
           
 void waitForSelectOptions(String selectLocator, String pattern)
           
 void waitForSomethingSelected(String selectLocator)
           
 void waitForTable(String tableCellAddress, String pattern)
           
 void waitForText(String locator, String pattern)
           
 void waitForTextNotPresent(String pattern)
           
 void waitForTextPresent(String pattern)
           
 void waitForTitle(String pattern)
           
 void waitForValue(String locator, String pattern)
           
 void waitForVisible(String locator)
           
 void waitForXpathCount(String xpath, String pattern)
           
 void windowFocus()
           
 void windowFocusAndWait()
           
 void windowMaximize()
           
 void windowMaximizeAndWait()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.thoughtworks.selenium.Selenium
getLog, open
 

Field Detail

DEFAULT_HTTP_TIMEOUT

public static final int DEFAULT_HTTP_TIMEOUT
The default timeout for HTTP operations *

See Also:
Constant Field Values

DEFAULT_WAIT_TIMEOUT

public static final int DEFAULT_WAIT_TIMEOUT
See Also:
Constant Field Values

webClient

protected com.gargoylesoftware.htmlunit.WebClient webClient

logger

protected static Logger logger

verificationErrors

protected List<Throwable> verificationErrors

baseUrl

protected String baseUrl

debugPageOnFailure

protected boolean debugPageOnFailure

originalWindow

protected com.gargoylesoftware.htmlunit.WebWindow originalWindow
Constructor Detail

SeleniumHTMLUnit

public SeleniumHTMLUnit()

SeleniumHTMLUnit

public SeleniumHTMLUnit(boolean throwExceptionOnScriptError,
                        boolean throwExceptionOnFailingStatusCode)
Method Detail

setLoglevel

public static void setLoglevel(Level l)

initWebClient

public void initWebClient(boolean throwExceptionOnScriptError,
                          boolean throwExceptionOnFailingStatusCode)

getBaseUrl

public String getBaseUrl()
Returns the baseUrl. Important note: please keep in mind that this 'baseUrl' is not combined with relative URLs in the usual sense, but always concatenated. That means that whenever you open(String) a relative URL, the resulting URL will always be baseURL+relativeUrl, no matter what.

Returns:
the baseUrl.

setBaseUrl

public void setBaseUrl(String theBaseUrl)
Sets the baseUrl to use when a URL passed to open(String) is not absolute. Important note: please keep in mind that this 'baseUrl' is not combined with relative URLs in the usual sense, but always concatenated. That means that whenever you open(String) a URL, the resulting URL will always be baseURL+relativeUrl, no matter what. DO NOT SET A BASEURL UNLESS YOU REALLY MEAN IT.

Parameters:
baseUrl - the baseUrl to set.

getLogLevel

public String getLogLevel()
Return the label (Level.getName()) for the Logger used by this SeleniumHTMLUnit.

See Also:
Level

setLogLevel

public void setLogLevel(String level)

hasDebugPageOnFailure

public boolean hasDebugPageOnFailure()
Returns whether page debugging is enabled when a failure occurs.

Returns:
whether page debugging is enabled when a failure occurs.

setDebugPageOnFailure

public void setDebugPageOnFailure(boolean debugPageOnFailure)
Sets whether page debugging is enabled when a failure occurs.

Parameters:
debugPageOnFailure - true if debugging should be enabled.

getPage

public com.gargoylesoftware.htmlunit.html.HtmlPage getPage()
Returns the current page, resulting from the last action, and on which the next action will be executed. The current page can also be changed indirectly using selectWindow(String).

Returns:
the current page, resulting from the last action, and on which the next action will be executed.
See Also:
selectWindow(String)

getWebClient

public com.gargoylesoftware.htmlunit.WebClient getWebClient()
Returns the underlying htmlunit webClient.

Returns:
the underlying htmlunit webClient.

assertEval

public void assertEval(String script,
                       String pattern)

open

public void open(String location)
Opens an URL in the test frame. This accepts both absolute URLs and URLs relative to the getBaseUrl(). Important: Relative URLs are not combined with the baseURL, but simply concatenated with it. The "open" command waits for the page to load before proceeding, ie. the "AndWait" suffix is implicit. Note: The URL must be on the same domain as the runner HTML due to security restrictions in the browser (Same Origin Policy). If you need to open an URL on another domain, use the Selenium Server to start a new browser session on that domain.

Specified by:
open in interface com.thoughtworks.selenium.Selenium
Parameters:
location - the URL to open; may be relative or absolute

type

public void type(String locator,
                 String value)
Sets the value of an input field, as though you typed it in.

Can also be used to set the value of combo boxes, check boxes, etc. In these cases, value should be the value of the option selected, not the visible text.

Specified by:
type in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator
value - the value to type

clickAndWait

public void clickAndWait(String locator)
Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.

Parameters:
locator - an element locator

click

public void click(String locator)
Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.

Specified by:
click in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

getTitle

public String getTitle()
Returns the title of the current page, or null if there is no title.

Specified by:
getTitle in interface com.thoughtworks.selenium.Selenium
Returns:
the title of the current page, or null if there is no title.

isTextPresent

public boolean isTextPresent(String pattern)
Verifies that the specified text pattern appears somewhere on the rendered page shown to the user.

Specified by:
isTextPresent in interface com.thoughtworks.selenium.Selenium
Parameters:
pattern - a pattern to match with the text of the page
Returns:
true if the pattern matches the text, false otherwise

waitForPageToLoad

public void waitForPageToLoad(String strTimeout)
Waits for a new page to load.

You can use this command instead of the "AndWait" suffixes, "clickAndWait", "selectAndWait", "typeAndWait" etc. (which are only available in the JS API).

Selenium constantly keeps track of new pages loading, and sets a "newPageLoaded" flag when it first notices a page load. Running any other Selenium command after turns the flag to false. Hence, if you want to wait for a page to load, you must wait immediately after a Selenium command that caused a page-load.

Specified by:
waitForPageToLoad in interface com.thoughtworks.selenium.Selenium
Parameters:
strTimeout - a timeout in milliseconds, after which this command will return with an error

select

public void select(String selectLocator,
                   String optionLocator)
Select an option from a drop-down using an option locator.

Option locators provide different ways of specifying options of an HTML Select element (e.g. for selecting a specific option, or for asserting that the selected option satisfies a specification). There are several forms of Select Option Locator.

If no option locator prefix is provided, the default behaviour is to match on label.

Specified by:
select in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
optionLocator - an option locator (a label by default)

addSelection

public void addSelection(String locator,
                         String optionLocator)
Add a selection to the set of selected options in a multi-select element using an option locator.

Specified by:
addSelection in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator identifying a multi-select box
optionLocator - an option locator (a label by default)
See Also:
for details of option locators

removeSelection

public void removeSelection(String locator,
                            String optionLocator)
Remove a selection from the set of selected options in a multi-select element using an option locator.

Specified by:
removeSelection in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator identifying a multi-select box
optionLocator - an option locator (a label by default)
See Also:
for details of option locators

removeAllSelections

public void removeAllSelections(String locator)
Unselects all of the selected options in a multi-select element.

Specified by:
removeAllSelections in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator identifying a multi-select box

getSelectedLabels

public String[] getSelectedLabels(String selectLocator)
Gets all option labels (visible text) for selected options in the specified select or multi-select element.

Specified by:
getSelectedLabels in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
an array of all selected option labels in the specified select drop-down

getSelectedLabel

public String getSelectedLabel(String selectLocator)
Gets option label (visible text) for selected option in the specified select element.

Specified by:
getSelectedLabel in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
the selected option label in the specified select drop-down

getSelectedValues

public String[] getSelectedValues(String selectLocator)
Gets all option values (value attributes) for selected options in the specified select or multi-select element.

Specified by:
getSelectedValues in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
an array of all selected option values in the specified select drop-down

getSelectedValue

public String getSelectedValue(String selectLocator)
Gets option value (value attribute) for selected option in the specified select element.

Specified by:
getSelectedValue in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
the selected option value in the specified select drop-down

getSelectedIndexes

public String[] getSelectedIndexes(String selectLocator)
Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.

Specified by:
getSelectedIndexes in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
an array of all selected option indexes in the specified select drop-down

getSelectedIndex

public String getSelectedIndex(String selectLocator)
Gets option index (option number, starting at 0) for selected option in the specified select element.

Specified by:
getSelectedIndex in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
the selected option index in the specified select drop-down

getSelectedIds

public String[] getSelectedIds(String selectLocator)
Gets all option element IDs for selected options in the specified select or multi-select element.

Specified by:
getSelectedIds in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
an array of all selected option IDs in the specified select drop-down

getSelectedId

public String getSelectedId(String selectLocator)
Gets option element ID for selected option in the specified select element.

Specified by:
getSelectedId in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
the selected option ID in the specified select drop-down

isSomethingSelected

public boolean isSomethingSelected(String selectLocator)
Determines whether some option in a drop-down menu is selected.

Specified by:
isSomethingSelected in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
true if some option has been selected, false otherwise

getSelectOptions

public String[] getSelectOptions(String selectLocator)
Gets all option labels in the specified select drop-down.

Specified by:
getSelectOptions in interface com.thoughtworks.selenium.Selenium
Parameters:
selectLocator - an element locator identifying a drop-down menu
Returns:
an array of all option labels in the specified select drop-down

check

public void check(String locator)
Check a toggle-button (checkbox/radio)

Specified by:
check in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

uncheck

public void uncheck(String locator)
Uncheck a toggle-button (checkbox/radio)

Specified by:
uncheck in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

isChecked

public boolean isChecked(String locator)
Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.

Specified by:
isChecked in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator pointing to a checkbox or radio button
Returns:
true if the checkbox is checked, false otherwise

mouseDown

public void mouseDown(String locator)
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.

Specified by:
mouseDown in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

mouseDownRight

public void mouseDownRight(String locator)
Specified by:
mouseDownRight in interface com.thoughtworks.selenium.Selenium

mouseOut

public void mouseOut(String locator)
Simulates a user moving the mouse pointer away from the specified element.

Specified by:
mouseOut in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

mouseOver

public void mouseOver(String locator)
Simulates a user hovering a mouse over the specified element.

Specified by:
mouseOver in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

mouseUp

public void mouseUp(String locator)
Simulates the event that occurs when the user releases the mouse button (i.e., stops holding the button down) on the specified element.

Specified by:
mouseUp in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator

waitForElementPresent

public void waitForElementPresent(String locator)
Wait for an element to appear on the current page

Parameters:
locator - an element locator

waitForCondition

public void waitForCondition(String script,
                             String timeout)
Runs the specified JavaScript snippet repeatedly until it evaluates to "true". The snippet may have multiple lines, but only the result of the last line will be considered.

Note that, by default, the snippet will be run in the runner's test window, not in the window of your application. To get the window of your application, you can use the JavaScript snippet selenium.browserbot.getCurrentWindow(), and then run your JavaScript in there

Specified by:
waitForCondition in interface com.thoughtworks.selenium.Selenium
Parameters:
script - the JavaScript snippet to run
timeout - a timeout in milliseconds, after which this command will return with an error

getText

public String getText(String locator)
Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.

Specified by:
getText in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator
Returns:
the text of the element

getHtmlSource

public String getHtmlSource()
Specified by:
getHtmlSource in interface com.thoughtworks.selenium.Selenium

isElementPresent

public boolean isElementPresent(String locator)
Verifies that the specified element is somewhere on the getPage().

Specified by:
isElementPresent in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator
Returns:
true if the element is present, false otherwise

selectWindow

public void selectWindow(String windowID)
Selects a popup window; once a popup window has been selected, all commands go to that window. To select the main window again, use null as the target.

Note that there is a big difference between a window's internal JavaScript "name" property and the "title" of a given window's document (which is normally what you actually see, as an end user, in the title bar of the window). The "name" is normally invisible to the end-user; it's the second parameter "windowName" passed to the JavaScript method window.open(url, windowName, windowFeatures, replaceFlag) (which selenium intercepts).

Selenium has several strategies for finding the window object referred to by the "windowID" parameter.

1.) if windowID is null, (or the string "null") then it is assumed the user is referring to the original window instantiated by the browser).

2.) if the value of the "windowID" parameter is a JavaScript variable name in the current application window, then it is assumed that this variable contains the return value from a call to the JavaScript window.open() method.

3.) Otherwise, selenium looks in a hash it maintains that maps string names to window "names".

4.) If that fails, we'll try looping over all of the known windows to try to find the appropriate "title". Since "title" is not necessarily unique, this may have unexpected behavior.

If you're having trouble figuring out what is the name of a window that you want to manipulate, look at the selenium log messages which identify the names of windows created via window.open (and therefore intercepted by selenium). You will see messages like the following for each window as it is opened:

debug: window.open call intercepted; window ID (which you can use with selectWindow()) is "myNewWindow"

In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example). (This is bug SEL-339.) In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using an empty (blank) url, like this: openWindow("", "myFunnyWindow").

Specified by:
selectWindow in interface com.thoughtworks.selenium.Selenium
Parameters:
windowID - the JavaScript window ID of the window to select

selectFrame

public void selectFrame(String frameID)
Selects a frame within the current window. (You may invoke this command multiple times to select nested frames.) To select the parent frame, use "relative=parent" as a locator; to select the top frame, use "relative=top".

You may also use a DOM expression to identify the frame you want directly, like this: dom=frames["main"].frames["subframe"]

Specified by:
selectFrame in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator identifying a frame or iframe

getValue

public String getValue(String locator)
Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not.

Specified by:
getValue in interface com.thoughtworks.selenium.Selenium
Parameters:
locator - an element locator
Returns:
the element value, or "on/off" for checkbox/radio elements

stop

public void stop()
Specified by:
stop in interface com.thoughtworks.selenium.Selenium

verifyTrue

public void verifyTrue(boolean b)
Like assertTrue, but fails at the end of the test (during tearDown)


verifyTrue

public void verifyTrue(boolean b,
                       String message)
Like assertTrue, but fails at the end of the test (during tearDown)


verifyFalse

public void verifyFalse(boolean b)
Like assertFalse, but fails at the end of the test (during tearDown)


verifyTextPresent

public void verifyTextPresent(String text)
Like assertTextPresent, but fails at the end of the test (during tearDown)


assertTextPresent

public void assertTextPresent(String text)
Check if the text is present in the current page


assertTitle

public void assertTitle(String text)
Check the title of the current page


assertTextNotPresent

public void assertTextNotPresent(String text)
Check if the text is NOT present in the current page


assertTrue

public void assertTrue(boolean b)

assertFalse

public void assertFalse(boolean b)

assertTrue

public void assertTrue(String msg,
                       boolean b)

assertFalse

public void assertFalse(String msg,
                        boolean b)

verifyEquals

public void verifyEquals(Object s1,
                         Object s2)
Like assertEquals, but fails at the end of the test (during tearDown)


verifyEquals

public void verifyEquals(boolean s1,
                         boolean s2)
Like assertEquals, but fails at the end of the test (during tearDown)


assertEquals

public void assertEquals(Object s1,
                         Object s2)
Like JUnit's Assert.assertEquals, but knows how to compare string arrays


assertEquals

public void assertEquals(String s1,
                         String s2)
Like JUnit's Assert.assertEquals, but handles "regexp:" strings like HTML Selenese


assertEquals

public void assertEquals(String s1,
                         String[] s2)
Like JUnit's Assert.assertEquals, but joins the string array with commas, and handles "regexp:" strings like HTML Selenese


seleniumEquals

public boolean seleniumEquals(String expectedPattern,
                              String actual)
Compares two strings, but handles "regexp:" strings like HTML Selenese

Parameters:
expectedPattern -
actual -
Returns:
true if actual matches the expectedPattern, or false otherwise

seleniumEquals

public boolean seleniumEquals(Object expected,
                              Object actual)
Compares two objects, but handles "regexp:" strings like HTML Selenese

Returns:
true if actual matches the expectedPattern, or false otherwise
See Also:
seleniumEquals(String, String)

assertEquals

public void assertEquals(String[] s1,
                         String[] s2)
Asserts that two string arrays have identical string contents


verifyEquals

public void verifyEquals(String[] s1,
                         String[] s2)
Asserts that two string arrays have identical string contents (fails at the end of the test, during tearDown)


verifyNotEquals

public void verifyNotEquals(Object s1,
                            Object s2)
Like assertNotEquals, but fails at the end of the test (during tearDown)


verifyNotEquals

public void verifyNotEquals(boolean s1,
                            boolean s2)
Like assertNotEquals, but fails at the end of the test (during tearDown)


assertNotEquals

public void assertNotEquals(Object obj1,
                            Object obj2)
Asserts that two objects are not the same (compares using .equals())


assertNotEquals

public void assertNotEquals(boolean b1,
                            boolean b2)
Asserts that two booleans are not the same


pause

public void pause(int millisecs)
Sleeps for the specified number of milliseconds


getElements

public List<? extends Object> getElements(String locator)

getElement

public com.gargoylesoftware.htmlunit.html.HtmlElement getElement(String locator)

setVerifyActAsAssert

public void setVerifyActAsAssert(boolean asAssert)
Specifies if the verify actions should act as assert actions and trigger an exception as soon as they fail.

Parameters:
verifyActAsAssert -

getVerificationErrors

public String getVerificationErrors()

checkForVerificationErrors

public void checkForVerificationErrors()
                                throws Exception
Throws:
Exception

printStringToFile

public String printStringToFile(String str)
Utility method to print a String to a random file on the disk.

Parameters:
str -

getAttribute

public String getAttribute(String attributeLocator)
Gets the value of an element attribute.

Specified by:
getAttribute in interface com.thoughtworks.selenium.Selenium
Parameters:
attributeLocator - an element locator followed by an @ sign and then the name of the attribute, e.g. "foo@bar"
Returns:
the value of the specified attribute

setTimeout

public void setTimeout(String timeout)
Specifies the amount of time that Selenium will wait for actions to complete.

Actions that require waiting include "open" and the "waitFor*" actions.

The default timeout is 30 seconds.

Specified by:
setTimeout in interface com.thoughtworks.selenium.Selenium
Parameters:
timeout - a timeout in milliseconds, after which the action will return with an error

altKeyDown

public void altKeyDown()
Specified by:
altKeyDown in interface com.thoughtworks.selenium.Selenium

altKeyUp

public void altKeyUp()
Specified by:
altKeyUp in interface com.thoughtworks.selenium.Selenium

answerOnNextPrompt

public void answerOnNextPrompt(String answer)
Specified by:
answerOnNextPrompt in interface com.thoughtworks.selenium.Selenium

captureScreenshot

public void captureScreenshot(String filename)
Specified by:
captureScreenshot in interface com.thoughtworks.selenium.Selenium

chooseCancelOnNextConfirmation

public void chooseCancelOnNextConfirmation()
Specified by:
chooseCancelOnNextConfirmation in interface com.thoughtworks.selenium.Selenium

chooseOkOnNextConfirmation

public void chooseOkOnNextConfirmation()
Specified by:
chooseOkOnNextConfirmation in interface com.thoughtworks.selenium.Selenium

clickAt

public void clickAt(String locator,
                    String coordString)
Specified by:
clickAt in interface com.thoughtworks.selenium.Selenium

close

public void close()
Specified by:
close in interface com.thoughtworks.selenium.Selenium

controlKeyDown

public void controlKeyDown()
Specified by:
controlKeyDown in interface com.thoughtworks.selenium.Selenium

controlKeyUp

public void controlKeyUp()
Specified by:
controlKeyUp in interface com.thoughtworks.selenium.Selenium

createCookie

public void createCookie(String nameValuePair,
                         String optionsString)
Specified by:
createCookie in interface com.thoughtworks.selenium.Selenium

deleteCookie

public void deleteCookie(String name,
                         String path)
Specified by:
deleteCookie in interface com.thoughtworks.selenium.Selenium

doubleClick

public void doubleClick(String locator)
Specified by:
doubleClick in interface com.thoughtworks.selenium.Selenium

doubleClickAt

public void doubleClickAt(String locator,
                          String coordString)
Specified by:
doubleClickAt in interface com.thoughtworks.selenium.Selenium

dragAndDrop

public void dragAndDrop(String locator,
                        String movementsString)
Specified by:
dragAndDrop in interface com.thoughtworks.selenium.Selenium

dragAndDropToObject

public void dragAndDropToObject(String locatorOfObjectToBeDragged,
                                String locatorOfDragDestinationObject)
Specified by:
dragAndDropToObject in interface com.thoughtworks.selenium.Selenium

dragdrop

public void dragdrop(String locator,
                     String movementsString)
Specified by:
dragdrop in interface com.thoughtworks.selenium.Selenium

fireEvent

public void fireEvent(String locator,
                      String eventName)
Specified by:
fireEvent in interface com.thoughtworks.selenium.Selenium

getAlert

public String getAlert()
Specified by:
getAlert in interface com.thoughtworks.selenium.Selenium

getAllButtons

public String[] getAllButtons()
Specified by:
getAllButtons in interface com.thoughtworks.selenium.Selenium

getAllFields

public String[] getAllFields()
Specified by:
getAllFields in interface com.thoughtworks.selenium.Selenium

getAllLinks

public String[] getAllLinks()
Specified by:
getAllLinks in interface com.thoughtworks.selenium.Selenium

getAllWindowIds

public String[] getAllWindowIds()
Specified by:
getAllWindowIds in interface com.thoughtworks.selenium.Selenium

getAllWindowNames

public String[] getAllWindowNames()
Specified by:
getAllWindowNames in interface com.thoughtworks.selenium.Selenium

getAllWindowTitles

public String[] getAllWindowTitles()
Specified by:
getAllWindowTitles in interface com.thoughtworks.selenium.Selenium

getAttributeFromAllWindows

public String[] getAttributeFromAllWindows(String attributeName)
Specified by:
getAttributeFromAllWindows in interface com.thoughtworks.selenium.Selenium

getBodyText

public String getBodyText()
Specified by:
getBodyText in interface com.thoughtworks.selenium.Selenium

getConfirmation

public String getConfirmation()
Specified by:
getConfirmation in interface com.thoughtworks.selenium.Selenium

getCookie

public String getCookie()
Specified by:
getCookie in interface com.thoughtworks.selenium.Selenium

getCursorPosition

public Number getCursorPosition(String locator)
Specified by:
getCursorPosition in interface com.thoughtworks.selenium.Selenium

getElementHeight

public Number getElementHeight(String locator)
Specified by:
getElementHeight in interface com.thoughtworks.selenium.Selenium

getElementIndex

public Number getElementIndex(String locator)
Specified by:
getElementIndex in interface com.thoughtworks.selenium.Selenium

getElementPositionLeft

public Number getElementPositionLeft(String locator)
Specified by:
getElementPositionLeft in interface com.thoughtworks.selenium.Selenium

getElementPositionTop

public Number getElementPositionTop(String locator)
Specified by:
getElementPositionTop in interface com.thoughtworks.selenium.Selenium

getElementWidth

public Number getElementWidth(String locator)
Specified by:
getElementWidth in interface com.thoughtworks.selenium.Selenium

getEval

public String getEval(String script)
Specified by:
getEval in interface com.thoughtworks.selenium.Selenium

getExpression

public String getExpression(String expression)
Specified by:
getExpression in interface com.thoughtworks.selenium.Selenium

getLocation

public String getLocation()
Specified by:
getLocation in interface com.thoughtworks.selenium.Selenium

getMouseSpeed

public Number getMouseSpeed()
Specified by:
getMouseSpeed in interface com.thoughtworks.selenium.Selenium

getPrompt

public String getPrompt()
Specified by:
getPrompt in interface com.thoughtworks.selenium.Selenium

getSpeed

public String getSpeed()
Specified by:
getSpeed in interface com.thoughtworks.selenium.Selenium

getTable

public String getTable(String tableCellAddress)
Specified by:
getTable in interface com.thoughtworks.selenium.Selenium

getWhetherThisFrameMatchFrameExpression

public boolean getWhetherThisFrameMatchFrameExpression(String currentFrameString,
                                                       String target)
Specified by:
getWhetherThisFrameMatchFrameExpression in interface com.thoughtworks.selenium.Selenium

getWhetherThisWindowMatchWindowExpression

public boolean getWhetherThisWindowMatchWindowExpression(String currentWindowString,
                                                         String target)
Specified by:
getWhetherThisWindowMatchWindowExpression in interface com.thoughtworks.selenium.Selenium

getXpathCount

public Number getXpathCount(String xpath)
Specified by:
getXpathCount in interface com.thoughtworks.selenium.Selenium

goBack

public void goBack()
Specified by:
goBack in interface com.thoughtworks.selenium.Selenium

highlight

public void highlight(String locator)
Specified by:
highlight in interface com.thoughtworks.selenium.Selenium

isAlertPresent

public boolean isAlertPresent()
Specified by:
isAlertPresent in interface com.thoughtworks.selenium.Selenium

isConfirmationPresent

public boolean isConfirmationPresent()
Specified by:
isConfirmationPresent in interface com.thoughtworks.selenium.Selenium

isEditable

public boolean isEditable(String locator)
Specified by:
isEditable in interface com.thoughtworks.selenium.Selenium

isOrdered

public boolean isOrdered(String locator1,
                         String locator2)
Specified by:
isOrdered in interface com.thoughtworks.selenium.Selenium

isPromptPresent

public boolean isPromptPresent()
Specified by:
isPromptPresent in interface com.thoughtworks.selenium.Selenium

isVisible

public boolean isVisible(String locator)
Specified by:
isVisible in interface com.thoughtworks.selenium.Selenium

keyDown

public void keyDown(String locator,
                    String keySequence)
Specified by:
keyDown in interface com.thoughtworks.selenium.Selenium

keyPress

public void keyPress(String locator,
                     String keySequence)
Specified by:
keyPress in interface com.thoughtworks.selenium.Selenium

keyUp

public void keyUp(String locator,
                  String keySequence)
Specified by:
keyUp in interface com.thoughtworks.selenium.Selenium

metaKeyDown

public void metaKeyDown()
Specified by:
metaKeyDown in interface com.thoughtworks.selenium.Selenium

metaKeyUp

public void metaKeyUp()
Specified by:
metaKeyUp in interface com.thoughtworks.selenium.Selenium

mouseDownAt

public void mouseDownAt(String locator,
                        String coordString)
Specified by:
mouseDownAt in interface com.thoughtworks.selenium.Selenium

mouseMove

public void mouseMove(String locator)
Specified by:
mouseMove in interface com.thoughtworks.selenium.Selenium

mouseMoveAt

public void mouseMoveAt(String locator,
                        String coordString)
Specified by:
mouseMoveAt in interface com.thoughtworks.selenium.Selenium

mouseUpAt

public void mouseUpAt(String locator,
                      String coordString)
Specified by:
mouseUpAt in interface com.thoughtworks.selenium.Selenium

openWindow

public void openWindow(String url,
                       String windowID)
Specified by:
openWindow in interface com.thoughtworks.selenium.Selenium

refresh

public void refresh()
Specified by:
refresh in interface com.thoughtworks.selenium.Selenium

setBrowserLogLevel

public void setBrowserLogLevel(String logLevel)
Specified by:
setBrowserLogLevel in interface com.thoughtworks.selenium.Selenium

setContext

public void setContext(String context)
Specified by:
setContext in interface com.thoughtworks.selenium.Selenium

setCursorPosition

public void setCursorPosition(String locator,
                              String position)
Specified by:
setCursorPosition in interface com.thoughtworks.selenium.Selenium

setMouseSpeed

public void setMouseSpeed(String pixels)
Specified by:
setMouseSpeed in interface com.thoughtworks.selenium.Selenium

setSpeed

public void setSpeed(String value)
Specified by:
setSpeed in interface com.thoughtworks.selenium.Selenium

shiftKeyDown

public void shiftKeyDown()
Specified by:
shiftKeyDown in interface com.thoughtworks.selenium.Selenium

shiftKeyUp

public void shiftKeyUp()
Specified by:
shiftKeyUp in interface com.thoughtworks.selenium.Selenium

start

public void start()
Specified by:
start in interface com.thoughtworks.selenium.Selenium

submit

public void submit(String formLocator)
Specified by:
submit in interface com.thoughtworks.selenium.Selenium

typeKeys

public void typeKeys(String locator,
                     String value)
Specified by:
typeKeys in interface com.thoughtworks.selenium.Selenium

waitForFrameToLoad

public void waitForFrameToLoad(String frameAddress,
                               String timeout)
Specified by:
waitForFrameToLoad in interface com.thoughtworks.selenium.Selenium

waitForPopUp

public void waitForPopUp(String windowID,
                         String timeout)
Specified by:
waitForPopUp in interface com.thoughtworks.selenium.Selenium

windowFocus

public void windowFocus()
Specified by:
windowFocus in interface com.thoughtworks.selenium.Selenium

windowMaximize

public void windowMaximize()
Specified by:
windowMaximize in interface com.thoughtworks.selenium.Selenium

setExtensionJs

public void setExtensionJs(String extensionJs)
Specified by:
setExtensionJs in interface com.thoughtworks.selenium.Selenium

start

public void start(String optionsString)
Specified by:
start in interface com.thoughtworks.selenium.Selenium

start

public void start(Object optionsObject)
Specified by:
start in interface com.thoughtworks.selenium.Selenium

showContextualBanner

public void showContextualBanner()
Specified by:
showContextualBanner in interface com.thoughtworks.selenium.Selenium

showContextualBanner

public void showContextualBanner(String className,
                                 String methodName)
Specified by:
showContextualBanner in interface com.thoughtworks.selenium.Selenium

contextMenu

public void contextMenu(String locator)
Specified by:
contextMenu in interface com.thoughtworks.selenium.Selenium

contextMenuAt

public void contextMenuAt(String locator,
                          String coordString)
Specified by:
contextMenuAt in interface com.thoughtworks.selenium.Selenium

focus

public void focus(String locator)
Specified by:
focus in interface com.thoughtworks.selenium.Selenium

mouseDownRightAt

public void mouseDownRightAt(String locator,
                             String coordString)
Specified by:
mouseDownRightAt in interface com.thoughtworks.selenium.Selenium

mouseUpRight

public void mouseUpRight(String locator)
Specified by:
mouseUpRight in interface com.thoughtworks.selenium.Selenium

mouseUpRightAt

public void mouseUpRightAt(String locator,
                           String coordString)
Specified by:
mouseUpRightAt in interface com.thoughtworks.selenium.Selenium

selectPopUp

public void selectPopUp(String windowID)
Specified by:
selectPopUp in interface com.thoughtworks.selenium.Selenium

deselectPopUp

public void deselectPopUp()
Specified by:
deselectPopUp in interface com.thoughtworks.selenium.Selenium

assignId

public void assignId(String locator,
                     String identifier)
Specified by:
assignId in interface com.thoughtworks.selenium.Selenium

allowNativeXpath

public void allowNativeXpath(String allow)
Specified by:
allowNativeXpath in interface com.thoughtworks.selenium.Selenium

ignoreAttributesWithoutValue

public void ignoreAttributesWithoutValue(String ignore)
Specified by:
ignoreAttributesWithoutValue in interface com.thoughtworks.selenium.Selenium

getCookieByName

public String getCookieByName(String name)
Specified by:
getCookieByName in interface com.thoughtworks.selenium.Selenium

isCookiePresent

public boolean isCookiePresent(String name)
Specified by:
isCookiePresent in interface com.thoughtworks.selenium.Selenium

deleteAllVisibleCookies

public void deleteAllVisibleCookies()
Specified by:
deleteAllVisibleCookies in interface com.thoughtworks.selenium.Selenium

runScript

public void runScript(String script)
Specified by:
runScript in interface com.thoughtworks.selenium.Selenium

addLocationStrategy

public void addLocationStrategy(String strategyName,
                                String functionDefinition)
Specified by:
addLocationStrategy in interface com.thoughtworks.selenium.Selenium

captureEntirePageScreenshot

public void captureEntirePageScreenshot(String filename,
                                        String kwargs)
Specified by:
captureEntirePageScreenshot in interface com.thoughtworks.selenium.Selenium

rollup

public void rollup(String rollupName,
                   String kwargs)
Specified by:
rollup in interface com.thoughtworks.selenium.Selenium

addScript

public void addScript(String scriptContent,
                      String scriptTagId)
Specified by:
addScript in interface com.thoughtworks.selenium.Selenium

removeScript

public void removeScript(String scriptTagId)
Specified by:
removeScript in interface com.thoughtworks.selenium.Selenium

useXpathLibrary

public void useXpathLibrary(String libraryName)
Specified by:
useXpathLibrary in interface com.thoughtworks.selenium.Selenium

attachFile

public void attachFile(String fieldLocator,
                       String fileLocator)
Specified by:
attachFile in interface com.thoughtworks.selenium.Selenium

captureScreenshotToString

public String captureScreenshotToString()
Specified by:
captureScreenshotToString in interface com.thoughtworks.selenium.Selenium

captureNetworkTraffic

public String captureNetworkTraffic(String type)
Specified by:
captureNetworkTraffic in interface com.thoughtworks.selenium.Selenium

addCustomRequestHeader

public void addCustomRequestHeader(String key,
                                   String value)
Specified by:
addCustomRequestHeader in interface com.thoughtworks.selenium.Selenium

captureEntirePageScreenshotToString

public String captureEntirePageScreenshotToString(String kwargs)
Specified by:
captureEntirePageScreenshotToString in interface com.thoughtworks.selenium.Selenium

shutDownSeleniumServer

public void shutDownSeleniumServer()
Specified by:
shutDownSeleniumServer in interface com.thoughtworks.selenium.Selenium

retrieveLastRemoteControlLogs

public String retrieveLastRemoteControlLogs()
Specified by:
retrieveLastRemoteControlLogs in interface com.thoughtworks.selenium.Selenium

keyDownNative

public void keyDownNative(String keycode)
Specified by:
keyDownNative in interface com.thoughtworks.selenium.Selenium

keyUpNative

public void keyUpNative(String keycode)
Specified by:
keyUpNative in interface com.thoughtworks.selenium.Selenium

keyPressNative

public void keyPressNative(String keycode)
Specified by:
keyPressNative in interface com.thoughtworks.selenium.Selenium

storeEval

public void storeEval(String value,
                      String target)
               throws Exception
Throws:
Exception

assertAlert

public void assertAlert(String pattern)
                 throws Exception
Throws:
Exception

assertAlertNotPresent

public void assertAlertNotPresent(String pattern)
                           throws Exception
Throws:
Exception

assertAlertPresent

public void assertAlertPresent(String pattern)
                        throws Exception
Throws:
Exception

assertAllButtons

public void assertAllButtons(String pattern)
                      throws Exception
Throws:
Exception

assertAllFields

public void assertAllFields(String pattern)
                     throws Exception
Throws:
Exception

assertNotTable

public void assertNotTable(String TableCellAddress,
                           String pattern)
                    throws Exception
Throws:
Exception

pause

public void pause(String target)
           throws Exception
Throws:
Exception

assertAllLinks

public void assertAllLinks(String pattern)
                    throws Exception
Throws:
Exception

assertAllWindowsIds

public void assertAllWindowsIds(String pattern)
                         throws Exception
Throws:
Exception

assertAllWindowsNames

public void assertAllWindowsNames(String pattern)
                           throws Exception
Throws:
Exception

assertAllWindowsTitles

public void assertAllWindowsTitles(String pattern)
                            throws Exception
Throws:
Exception

assertBodyText

public void assertBodyText(String pattern)
                    throws Exception
Throws:
Exception

assertConfirmation

public void assertConfirmation(String pattern)
                        throws Exception
Throws:
Exception

assertHtmlSource

public void assertHtmlSource(String pattern)
                      throws Exception
Throws:
Exception

assertLocation

public void assertLocation(String pattern)
                    throws Exception
Throws:
Exception

assertMouseSpeed

public void assertMouseSpeed(String pattern)
                      throws Exception
Throws:
Exception

assertPrompt

public void assertPrompt(String pattern)
                  throws Exception
Throws:
Exception

assertCookie

public void assertCookie(String pattern)
                  throws Exception
Throws:
Exception

assertNotSame

public static void assertNotSame(Object obj1,
                                 Object obj2)

assertNotAlert

public void assertNotAlert(String pattern)
                    throws Exception
Throws:
Exception

assertNotAllButtons

public void assertNotAllButtons(String pattern)
                         throws Exception
Throws:
Exception

assertNotAllFields

public void assertNotAllFields(String pattern)
                        throws Exception
Throws:
Exception

assertNotAllLinks

public void assertNotAllLinks(String pattern)
                       throws Exception
Throws:
Exception

assertNotAllWindowsIds

public void assertNotAllWindowsIds(String pattern)
                            throws Exception
Throws:
Exception

assertNotAllWindowsNames

public void assertNotAllWindowsNames(String pattern)
                              throws Exception
Throws:
Exception

assertNotAllWindowsTitles

public void assertNotAllWindowsTitles(String pattern)
                               throws Exception
Throws:
Exception

assertNotBodyText

public void assertNotBodyText(String pattern)
                       throws Exception
Throws:
Exception

assertNotConfirmation

public void assertNotConfirmation(String pattern)
                           throws Exception
Throws:
Exception

assertNotCookie

public void assertNotCookie(String pattern)
                     throws Exception
Throws:
Exception

assertNotHtmlSource

public void assertNotHtmlSource(String pattern)
                         throws Exception
Throws:
Exception

assertNotLocation

public void assertNotLocation(String pattern)
                       throws Exception
Throws:
Exception

assertNotMouseSpeed

public void assertNotMouseSpeed(String pattern)
                         throws Exception
Throws:
Exception

assertNotPrompt

public void assertNotPrompt(String pattern)
                     throws Exception
Throws:
Exception

assertChecked

public void assertChecked(String locator)
                   throws Exception
Throws:
Exception

assertEditable

public void assertEditable(String locator)
                    throws Exception
Throws:
Exception

assertElementPresent

public void assertElementPresent(String locator)
                          throws Exception
Throws:
Exception

assertVisible

public void assertVisible(String locator)
                   throws Exception
Throws:
Exception

assertNotChecked

public void assertNotChecked(String locator)
                      throws Exception
Throws:
Exception

assertNotEditable

public void assertNotEditable(String locator)
                       throws Exception
Throws:
Exception

assertElementNotPresent

public void assertElementNotPresent(String locator)
                             throws Exception
Throws:
Exception

assertSelectOptions

public void assertSelectOptions(String pattern,
                                String[] selectLocator)
                         throws Exception
Throws:
Exception

assertNotSelectOptions

public void assertNotSelectOptions(String pattern,
                                   String[] selectLocator)
                            throws Exception
Throws:
Exception

assertSelectedId

public void assertSelectedId(String selectLocator,
                             String pattern)
                      throws Exception
Throws:
Exception

assertSelectedIds

public void assertSelectedIds(String selectLocator,
                              String pattern)
                       throws Exception
Throws:
Exception

assertSelectedIndex

public void assertSelectedIndex(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

assertSelectedIndexes

public void assertSelectedIndexes(String selectLocator,
                                  String pattern)
                           throws Exception
Throws:
Exception

assertSelectedLabel

public void assertSelectedLabel(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

assertSelectedLabels

public void assertSelectedLabels(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

assertSelectedValue

public void assertSelectedValue(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

assertSelectedValues

public void assertSelectedValues(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

assertNotSelectedId

public void assertNotSelectedId(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

assertNotSelectedIds

public void assertNotSelectedIds(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

assertNotSelectedIndex

public void assertNotSelectedIndex(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

assertNotSelectedIndexes

public void assertNotSelectedIndexes(String selectLocator,
                                     String pattern)
                              throws Exception
Throws:
Exception

assertNotSelectedLabel

public void assertNotSelectedLabel(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

assertNotSelectedLabels

public void assertNotSelectedLabels(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

assertNotSelectedValue

public void assertNotSelectedValue(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

assertNotSelectedValues

public void assertNotSelectedValues(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

assertCursorPosition

public void assertCursorPosition(String locator,
                                 String pattern)
                          throws Exception
Throws:
Exception

assertElementHeight

public void assertElementHeight(String locator,
                                String pattern)
                         throws Exception
Throws:
Exception

assertElementIndex

public void assertElementIndex(String locator,
                               String pattern)
                        throws Exception
Throws:
Exception

assertElementPositionLeft

public void assertElementPositionLeft(String locator,
                                      String pattern)
                               throws Exception
Throws:
Exception

assertElementPositionTop

public void assertElementPositionTop(String locator,
                                     String pattern)
                              throws Exception
Throws:
Exception

assertElementWidth

public void assertElementWidth(String locator,
                               String pattern)
                        throws Exception
Throws:
Exception

assertText

public void assertText(String locator,
                       String pattern)
                throws Exception
Throws:
Exception

assertValue

public void assertValue(String locator,
                        String pattern)
                 throws Exception
Throws:
Exception

assertNotCursorPosition

public void assertNotCursorPosition(String locator,
                                    String pattern)
                             throws Exception
Throws:
Exception

assertNotElementHeight

public void assertNotElementHeight(String locator,
                                   String pattern)
                            throws Exception
Throws:
Exception

assertNotElementIndex

public void assertNotElementIndex(String locator,
                                  String pattern)
                           throws Exception
Throws:
Exception

assertNotElementPositionLeft

public void assertNotElementPositionLeft(String locator,
                                         String pattern)
                                  throws Exception
Throws:
Exception

assertNotElementPositionTop

public void assertNotElementPositionTop(String locator,
                                        String pattern)
                                 throws Exception
Throws:
Exception

assertNotElementWidth

public void assertNotElementWidth(String locator,
                                  String pattern)
                           throws Exception
Throws:
Exception

assertConfirmationPresent

public void assertConfirmationPresent()
                               throws Exception
Throws:
Exception

assertPromptPresent

public void assertPromptPresent()
                         throws Exception
Throws:
Exception

assertConfirmationNotPresent

public void assertConfirmationNotPresent()
                                  throws Exception
Throws:
Exception

assertPromptNotPresent

public void assertPromptNotPresent()
                            throws Exception
Throws:
Exception

assertAttribute

public void assertAttribute(String attributeLocator,
                            String pattern)
                     throws Exception
Throws:
Exception

assertAttributeFromAllWindows

public void assertAttributeFromAllWindows(String[] attributeName,
                                          String pattern)
                                   throws Exception
Throws:
Exception

assertNotAttribute

public void assertNotAttribute(String attributeLocator,
                               String pattern)
                        throws Exception
Throws:
Exception

assertNotAttributeFromAllWindows

public void assertNotAttributeFromAllWindows(String[] attributeName,
                                             String pattern)
                                      throws Exception
Throws:
Exception

assertNotEval

public void assertNotEval(String script,
                          String pattern)
                   throws Exception
Throws:
Exception

assertNotExpression

public void assertNotExpression(String script,
                                String pattern)
                         throws Exception
Throws:
Exception

assertNotOrdered

public void assertNotOrdered(String locator1,
                             String locator2)
                      throws Exception
Throws:
Exception

assertOrdered

public void assertOrdered(String locator1,
                          String locator2)
                   throws Exception
Throws:
Exception

assertNotSomethingSelected

public void assertNotSomethingSelected(String selectLocator)
                                throws Exception
Throws:
Exception

assertSomethingSelected

public void assertSomethingSelected(String selectLocator)
                             throws Exception
Throws:
Exception

assertTable

public void assertTable(String tableCellAddress,
                        String pattern)
                 throws Exception
Throws:
Exception

verifyAlert

public void verifyAlert(String pattern)
                 throws Exception
Throws:
Exception

verifyAlertNotPresent

public void verifyAlertNotPresent()
                           throws Exception
Throws:
Exception

verifyAlertPresent

public void verifyAlertPresent()
                        throws Exception
Throws:
Exception

verifyAllButtons

public void verifyAllButtons(String pattern)
                      throws Exception
Throws:
Exception

verifyAllFields

public void verifyAllFields(String pattern)
                     throws Exception
Throws:
Exception

verifyAllLinks

public void verifyAllLinks(String pattern)
                    throws Exception
Throws:
Exception

verifyAllWindowIds

public void verifyAllWindowIds(String pattern)
                        throws Exception
Throws:
Exception

verifyAllWindowNames

public void verifyAllWindowNames(String pattern)
                          throws Exception
Throws:
Exception

verifyAllWindowTitles

public void verifyAllWindowTitles(String pattern)
                           throws Exception
Throws:
Exception

verifyAttribute

public void verifyAttribute(String attributeLocator,
                            String pattern)
                     throws Exception
Throws:
Exception

verifyAttributeFromAllWindows

public void verifyAttributeFromAllWindows(String attributeLocator,
                                          String pattern)
                                   throws Exception
Throws:
Exception

verifyBodyText

public void verifyBodyText(String pattern)
                    throws Exception
Throws:
Exception

verifyChecked

public void verifyChecked(String locator)
                   throws Exception
Throws:
Exception

verifyConfirmation

public void verifyConfirmation(String pattern)
                        throws Exception
Throws:
Exception

verifyConfirmationNotPresent

public void verifyConfirmationNotPresent(String pattern)
                                  throws Exception
Throws:
Exception

verifyConfirmationPresent

public void verifyConfirmationPresent(String pattern)
                               throws Exception
Throws:
Exception

verifyCookie

public void verifyCookie(String pattern)
                  throws Exception
Throws:
Exception

verifyCursorPosition

public void verifyCursorPosition(String locator,
                                 String pattern)
                          throws Exception
Throws:
Exception

verifyEditable

public void verifyEditable(String locator)
                    throws Exception
Throws:
Exception

verifyElementHeight

public void verifyElementHeight(String locator,
                                String pattern)
                         throws Exception
Throws:
Exception

verifyElementIndex

public void verifyElementIndex(String locator,
                               String pattern)
                        throws Exception
Throws:
Exception

verifyElementNotPresent

public void verifyElementNotPresent(String locator)
                             throws Exception
Throws:
Exception

verifyElementPositionLeft

public void verifyElementPositionLeft(String locator,
                                      String pattern)
                               throws Exception
Throws:
Exception

verifyElementPositionTop

public void verifyElementPositionTop(String locator,
                                     String pattern)
                              throws Exception
Throws:
Exception

verifyElementPresent

public void verifyElementPresent(String locator)
                          throws Exception
Throws:
Exception

verifyElementWidth

public void verifyElementWidth(String locator,
                               String pattern)
                        throws Exception
Throws:
Exception

verifyEval

public void verifyEval(String script,
                       String pattern)
                throws Exception
Throws:
Exception

verifyExpression

public void verifyExpression(String expression,
                             String pattern)
                      throws Exception
Throws:
Exception

verifyHtmlSource

public void verifyHtmlSource(String pattern)
                      throws Exception
Throws:
Exception

verifyLocation

public void verifyLocation(String pattern)
                    throws Exception
Throws:
Exception

verifyMouseSpeed

public void verifyMouseSpeed(String pattern)
                      throws Exception
Throws:
Exception

verifyNotEquals

public void verifyNotEquals(String a,
                            String b)
                     throws Exception
Throws:
Exception

verifyNotAlert

public void verifyNotAlert(String pattern)
                    throws Exception
Throws:
Exception

verifyNotAllButtons

public void verifyNotAllButtons(String pattern)
                         throws Exception
Throws:
Exception

verifyNotAllFields

public void verifyNotAllFields(String pattern)
                        throws Exception
Throws:
Exception

verifyNotAllLinks

public void verifyNotAllLinks(String pattern)
                       throws Exception
Throws:
Exception

verifyNotAllWindowIds

public void verifyNotAllWindowIds(String pattern)
                           throws Exception
Throws:
Exception

verifyNotAllWindowNames

public void verifyNotAllWindowNames(String pattern)
                             throws Exception
Throws:
Exception

verifyNotAllWindowTitles

public void verifyNotAllWindowTitles(String pattern)
                              throws Exception
Throws:
Exception

verifyNotAttribute

public void verifyNotAttribute(String attributeLocator,
                               String pattern)
                        throws Exception
Throws:
Exception

verifyNotAttributeFromAllWindows

public void verifyNotAttributeFromAllWindows(String attributeName,
                                             String pattern)
                                      throws Exception
Throws:
Exception

verifyNotBodyText

public void verifyNotBodyText(String pattern)
                       throws Exception
Throws:
Exception

verifyNotChecked

public void verifyNotChecked(String locator)
                      throws Exception
Throws:
Exception

verifyNotConfirmation

public void verifyNotConfirmation(String pattern)
                           throws Exception
Throws:
Exception

verifyNotCookie

public void verifyNotCookie(String pattern)
                     throws Exception
Throws:
Exception

verifyNotCursorPosition

public void verifyNotCursorPosition(String locator,
                                    String pattern)
                             throws Exception
Throws:
Exception

verifyNotEditable

public void verifyNotEditable(String locator)
                       throws Exception
Throws:
Exception

verifyNotElementHeight

public void verifyNotElementHeight(String locator,
                                   String pattern)
                            throws Exception
Throws:
Exception

verifyNotElementIndex

public void verifyNotElementIndex(String locator,
                                  String pattern)
                           throws Exception
Throws:
Exception

verifyNotElementPositionLeft

public void verifyNotElementPositionLeft(String locator,
                                         String pattern)
                                  throws Exception
Throws:
Exception

verifyNotElementPositionTop

public void verifyNotElementPositionTop(String locator,
                                        String pattern)
                                 throws Exception
Throws:
Exception

verifyNotElementWidth

public void verifyNotElementWidth(String locator,
                                  String pattern)
                           throws Exception
Throws:
Exception

verifyNotEval

public void verifyNotEval(String script,
                          String pattern)
                   throws Exception
Throws:
Exception

verifyNotExpression

public void verifyNotExpression(String expression,
                                String pattern)
                         throws Exception
Throws:
Exception

verifyNotHtmlSource

public void verifyNotHtmlSource(String pattern)
                         throws Exception
Throws:
Exception

verifyNotLocation

public void verifyNotLocation(String pattern)
                       throws Exception
Throws:
Exception

verifyNotMouseSpeed

public void verifyNotMouseSpeed(String pattern)
                         throws Exception
Throws:
Exception

verifyNotOrdered

public void verifyNotOrdered(String locator1,
                             String locator2)
                      throws Exception
Throws:
Exception

verifyNotPrompt

public void verifyNotPrompt(String pattern)
                     throws Exception
Throws:
Exception

verifyNotSelectOptions

public void verifyNotSelectOptions(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

verifyNotSelectedId

public void verifyNotSelectedId(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

verifyNotSelectedIds

public void verifyNotSelectedIds(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

verifyNotSelectedIndex

public void verifyNotSelectedIndex(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

verifyNotSelectedIndexes

public void verifyNotSelectedIndexes(String selectLocator,
                                     String pattern)
                              throws Exception
Throws:
Exception

verifyNotSelectedLabel

public void verifyNotSelectedLabel(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

verifyNotSelectedLabels

public void verifyNotSelectedLabels(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

verifyNotSelectedValue

public void verifyNotSelectedValue(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

verifyNotSelectedValues

public void verifyNotSelectedValues(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

verifyNotSomethingSelected

public void verifyNotSomethingSelected(String selectLocator)
                                throws Exception
Throws:
Exception

fail

public void fail()

fail

public void fail(String msg)

verifyNotTable

public void verifyNotTable(String tableCellAddress,
                           String pattern)
                    throws Exception
Throws:
Exception

verifyNotText

public void verifyNotText(String selectLocator,
                          String pattern)
                   throws Exception
Throws:
Exception

verifyNotTitle

public void verifyNotTitle(String pattern)
                    throws Exception
Throws:
Exception

verifyNotValue

public void verifyNotValue(String locator,
                           String pattern)
                    throws Exception
Throws:
Exception

verifyNotVisible

public void verifyNotVisible(String locator)
                      throws Exception
Throws:
Exception

verifyNotXpathCount

public void verifyNotXpathCount(String xpath,
                                String pattern)
                         throws Exception
Throws:
Exception

verifyOrdered

public void verifyOrdered(String locator1,
                          String locator2)
                   throws Exception
Throws:
Exception

verifyPrompt

public void verifyPrompt(String pattern)
                  throws Exception
Throws:
Exception

verifyPromptNotPresent

public void verifyPromptNotPresent()
                            throws Exception
Throws:
Exception

verifyPromptPresent

public void verifyPromptPresent()
                         throws Exception
Throws:
Exception

verifySelectOptions

public void verifySelectOptions(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

verifySelectedId

public void verifySelectedId(String selectLocator,
                             String pattern)
                      throws Exception
Throws:
Exception

verifySelectedIds

public void verifySelectedIds(String selectLocator,
                              String pattern)
                       throws Exception
Throws:
Exception

verifySelectedIndex

public void verifySelectedIndex(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

verifySelectedIndexes

public void verifySelectedIndexes(String selectLocator,
                                  String pattern)
                           throws Exception
Throws:
Exception

verifySelectedLabel

public void verifySelectedLabel(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

verifySelectedLabels

public void verifySelectedLabels(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

verifySelectedValue

public void verifySelectedValue(String selectLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

verifySelectedValues

public void verifySelectedValues(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

verifySomethingSelected

public void verifySomethingSelected(String selectLocator)
                             throws Exception
Throws:
Exception

verifyTable

public void verifyTable(String tableCellAddress,
                        String pattern)
                 throws Exception
Throws:
Exception

verifyText

public void verifyText(String locator,
                       String pattern)
                throws Exception
Throws:
Exception

verifyTextNotPresent

public void verifyTextNotPresent(String pattern)
                          throws Exception
Throws:
Exception

verifyTitle

public void verifyTitle(String pattern)
                 throws Exception
Throws:
Exception

verifyValue

public void verifyValue(String locator,
                        String pattern)
                 throws Exception
Throws:
Exception

verifyVisible

public void verifyVisible(String locator)
                   throws Exception
Throws:
Exception

verifyXpathCount

public void verifyXpathCount(String xpath,
                             String pattern)
                      throws Exception
Throws:
Exception

waitForAlert

public void waitForAlert(String pattern)
                  throws Exception
Throws:
Exception

waitForAlertNotPresent

public void waitForAlertNotPresent()
                            throws Exception
Throws:
Exception

waitForAlertPresent

public void waitForAlertPresent()
                         throws Exception
Throws:
Exception

waitForAllButtons

public void waitForAllButtons(String pattern)
                       throws Exception
Throws:
Exception

waitForAllFields

public void waitForAllFields(String pattern)
                      throws Exception
Throws:
Exception

waitForAllLinks

public void waitForAllLinks(String pattern)
                     throws Exception
Throws:
Exception

waitForAllWindowIds

public void waitForAllWindowIds(String pattern)
                         throws Exception
Throws:
Exception

waitForAllWindowNames

public void waitForAllWindowNames(String pattern)
                           throws Exception
Throws:
Exception

waitForAllWindowTitles

public void waitForAllWindowTitles(String pattern)
                            throws Exception
Throws:
Exception

waitForAttribute

public void waitForAttribute(String attributeLocator,
                             String pattern)
                      throws Exception
Throws:
Exception

waitForAttributeFromAllWindows

public void waitForAttributeFromAllWindows(String attributeLocator,
                                           String pattern)
                                    throws Exception
Throws:
Exception

waitForBodyText

public void waitForBodyText(String pattern)
                     throws Exception
Throws:
Exception

waitForChecked

public void waitForChecked(String locator)
                    throws Exception
Throws:
Exception

waitForConfirmation

public void waitForConfirmation(String pattern)
                         throws Exception
Throws:
Exception

waitForConfirmationNotPresent

public void waitForConfirmationNotPresent()
                                   throws Exception
Throws:
Exception

waitForConfirmationPresent

public void waitForConfirmationPresent()
                                throws Exception
Throws:
Exception

waitForCookie

public void waitForCookie(String pattern)
                   throws Exception
Throws:
Exception

waitForCursorPosition

public void waitForCursorPosition(String locator,
                                  String pattern)
                           throws Exception
Throws:
Exception

waitForEditable

public void waitForEditable(String locator)
                     throws Exception
Throws:
Exception

waitForElementHeight

public void waitForElementHeight(String locator,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForElementIndex

public void waitForElementIndex(String locator,
                                String pattern)
                         throws Exception
Throws:
Exception

waitForElementNotPresent

public void waitForElementNotPresent(String locator)
                              throws Exception
Throws:
Exception

waitForElementPositionLeft

public void waitForElementPositionLeft(String locator,
                                       String pattern)
                                throws Exception
Throws:
Exception

waitForElementPositionTop

public void waitForElementPositionTop(String locator,
                                      String pattern)
                               throws Exception
Throws:
Exception

waitForElementWidth

public void waitForElementWidth(String locator,
                                String pattern)
                         throws Exception
Throws:
Exception

waitForEval

public void waitForEval(String script,
                        String pattern)
                 throws Exception
Throws:
Exception

waitForExpression

public void waitForExpression(String script,
                              String pattern)
                       throws Exception
Throws:
Exception

waitForHtmlSource

public void waitForHtmlSource(String pattern)
                       throws Exception
Throws:
Exception

waitForLocation

public void waitForLocation(String pattern)
                     throws Exception
Throws:
Exception

waitForMouseSpeed

public void waitForMouseSpeed(String pattern)
                       throws Exception
Throws:
Exception

waitForNotAlert

public void waitForNotAlert(String pattern)
                     throws Exception
Throws:
Exception

waitForNotAllButtons

public void waitForNotAllButtons(String pattern)
                          throws Exception
Throws:
Exception

waitForNotAllFields

public void waitForNotAllFields(String pattern)
                         throws Exception
Throws:
Exception

waitForNotAllLinks

public void waitForNotAllLinks(String pattern)
                        throws Exception
Throws:
Exception

waitForNotAllWindowIds

public void waitForNotAllWindowIds(String pattern)
                            throws Exception
Throws:
Exception

waitForNotAllWindowNames

public void waitForNotAllWindowNames(String pattern)
                              throws Exception
Throws:
Exception

waitForNotAllWindowTitles

public void waitForNotAllWindowTitles(String pattern)
                               throws Exception
Throws:
Exception

waitForNotAttribute

public void waitForNotAttribute(String attributeLocator,
                                String pattern)
                         throws Exception
Throws:
Exception

waitForNotAttributeFromAllWindows

public void waitForNotAttributeFromAllWindows(String attributeName,
                                              String pattern)
                                       throws Exception
Throws:
Exception

waitForNotBodyText

public void waitForNotBodyText(String pattern)
                        throws Exception
Throws:
Exception

waitForNotChecked

public void waitForNotChecked(String locator)
                       throws Exception
Throws:
Exception

waitForNotConfirmation

public void waitForNotConfirmation(String locator)
                            throws Exception
Throws:
Exception

waitForNotCookie

public void waitForNotCookie(String pattern)
                      throws Exception
Throws:
Exception

waitForNotCursorPosition

public void waitForNotCursorPosition(String locator,
                                     String pattern)
                              throws Exception
Throws:
Exception

waitForNotEditable

public void waitForNotEditable(String locator)
                        throws Exception
Throws:
Exception

waitForNotElementHeight

public void waitForNotElementHeight(String locator,
                                    String pattern)
                             throws Exception
Throws:
Exception

waitForNotElementIndex

public void waitForNotElementIndex(String locator,
                                   String pattern)
                            throws Exception
Throws:
Exception

waitForNotElementPositionLeft

public void waitForNotElementPositionLeft(String locator,
                                          String pattern)
                                   throws Exception
Throws:
Exception

waitForNotElementPositionTop

public void waitForNotElementPositionTop(String locator,
                                         String pattern)
                                  throws Exception
Throws:
Exception

waitForNotElementWidth

public void waitForNotElementWidth(String locator,
                                   String pattern)
                            throws Exception
Throws:
Exception

waitForNotEval

public void waitForNotEval(String script,
                           String pattern)
                    throws Exception
Throws:
Exception

waitForNotExpression

public void waitForNotExpression(String expression,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForNotHtmlSource

public void waitForNotHtmlSource(String pattern)
                          throws Exception
Throws:
Exception

waitForNotLocation

public void waitForNotLocation(String pattern)
                        throws Exception
Throws:
Exception

waitForNotMouseSpeed

public void waitForNotMouseSpeed(String pattern)
                          throws Exception
Throws:
Exception

waitForNotOrdered

public void waitForNotOrdered(String locator1,
                              String locator2)
                       throws Exception
Throws:
Exception

waitForNotPrompt

public void waitForNotPrompt(String pattern)
                      throws Exception
Throws:
Exception

waitForNotSelectedId

public void waitForNotSelectedId(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForNotSelectedIndex

public void waitForNotSelectedIndex(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

waitForNotSelectedLabel

public void waitForNotSelectedLabel(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

waitForNotSelectedValue

public void waitForNotSelectedValue(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

waitForNotSomethingSelected

public void waitForNotSomethingSelected(String selectLocator)
                                 throws Exception
Throws:
Exception

waitForNotTable

public void waitForNotTable(String tableCellAddress,
                            String pattern)
                     throws Exception
Throws:
Exception

waitForNotText

public void waitForNotText(String locator,
                           String pattern)
                    throws Exception
Throws:
Exception

waitForNotTitle

public void waitForNotTitle(String pattern)
                     throws Exception
Throws:
Exception

waitForNotValue

public void waitForNotValue(String locator,
                            String pattern)
                     throws Exception
Throws:
Exception

waitForNotVisible

public void waitForNotVisible(String locator)
                       throws Exception
Throws:
Exception

waitForOrdered

public void waitForOrdered(String locator1,
                           String locator2)
                    throws Exception
Throws:
Exception

waitForPrompt

public void waitForPrompt(String pattern)
                   throws Exception
Throws:
Exception

waitForPromptNotPresent

public void waitForPromptNotPresent()
                             throws Exception
Throws:
Exception

waitForPromptPresent

public void waitForPromptPresent()
                          throws Exception
Throws:
Exception

waitForSelectedId

public void waitForSelectedId(String selectLocator,
                              String pattern)
                       throws Exception
Throws:
Exception

waitForSelectedIndex

public void waitForSelectedIndex(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForSelectedLabel

public void waitForSelectedLabel(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForSelectedValue

public void waitForSelectedValue(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForSomethingSelected

public void waitForSomethingSelected(String selectLocator)
                              throws Exception
Throws:
Exception

waitForTable

public void waitForTable(String tableCellAddress,
                         String pattern)
                  throws Exception
Throws:
Exception

waitForText

public void waitForText(String locator,
                        String pattern)
                 throws Exception
Throws:
Exception

waitForTextNotPresent

public void waitForTextNotPresent(String pattern)
                           throws Exception
Throws:
Exception

waitForTextPresent

public void waitForTextPresent(String pattern)
                        throws Exception
Throws:
Exception

waitForTitle

public void waitForTitle(String pattern)
                  throws Exception
Throws:
Exception

waitForValue

public void waitForValue(String locator,
                         String pattern)
                  throws Exception
Throws:
Exception

waitForVisible

public void waitForVisible(String locator)
                    throws Exception
Throws:
Exception

waitForXpathCount

public void waitForXpathCount(String xpath,
                              String pattern)
                       throws Exception
Throws:
Exception

waitForNotSelectedIds

public void waitForNotSelectedIds(String selectLocator,
                                  String pattern)
                           throws Exception
Throws:
Exception

waitForSelectedIds

public void waitForSelectedIds(String selectLocator,
                               String pattern)
                        throws Exception
Throws:
Exception

waitForNotSelectOptions

public void waitForNotSelectOptions(String selectLocator,
                                    String pattern)
                             throws Exception
Throws:
Exception

waitForSelectOptions

public void waitForSelectOptions(String selectLocator,
                                 String pattern)
                          throws Exception
Throws:
Exception

waitForNotSelectedIndexes

public void waitForNotSelectedIndexes(String selectLocator,
                                      String pattern)
                               throws Exception
Throws:
Exception

waitForSelectedIndexes

public void waitForSelectedIndexes(String selectLocator,
                                   String pattern)
                            throws Exception
Throws:
Exception

waitForSelectedLabels

public void waitForSelectedLabels(String selectLocator,
                                  String pattern)
                           throws Exception
Throws:
Exception

waitForNotSelectedLabels

public void waitForNotSelectedLabels(String selectLocator,
                                     String pattern)
                              throws Exception
Throws:
Exception

waitForNotSelectedValues

public void waitForNotSelectedValues(String selectLocator,
                                     String pattern)
                              throws Exception
Throws:
Exception

waitForSelectedValues

public void waitForSelectedValues(String selectLocator,
                                  String pattern)
                           throws Exception
Throws:
Exception

controlKeyDownAndWait

public void controlKeyDownAndWait()
                           throws Exception
Throws:
Exception

controlKeyUpAndWait

public void controlKeyUpAndWait()
                         throws Exception
Throws:
Exception

addSelectionAndWait

public void addSelectionAndWait(String locator,
                                String optionLocator)
                         throws Exception
Throws:
Exception

altKeyDownAndWait

public void altKeyDownAndWait()
                       throws Exception
Throws:
Exception

altKeyUpAndWait

public void altKeyUpAndWait()
                     throws Exception
Throws:
Exception

checkAndWait

public void checkAndWait(String locator)
                  throws Exception
Throws:
Exception

chooseOkOnNextConfirmationAndWait

public void chooseOkOnNextConfirmationAndWait()
                                       throws Exception
Throws:
Exception

removeSelectionAndWait

public void removeSelectionAndWait(String locator,
                                   String optionLocator)
                            throws Exception
Throws:
Exception

setSpeedAndWait

public void setSpeedAndWait(String value)
                     throws Exception
Throws:
Exception

shiftKeyDownAndWait

public void shiftKeyDownAndWait()
                         throws Exception
Throws:
Exception

shiftKeyUpAndWait

public void shiftKeyUpAndWait()
                       throws Exception
Throws:
Exception

uncheckAndWait

public void uncheckAndWait(String locator)
                    throws Exception
Throws:
Exception

windowFocusAndWait

public void windowFocusAndWait()
                        throws Exception
Throws:
Exception

windowMaximizeAndWait

public void windowMaximizeAndWait()
                           throws Exception
Throws:
Exception

clickAtAndWait

public void clickAtAndWait(String locator,
                           String coordString)
                    throws Exception
Throws:
Exception

createCookieAndWait

public void createCookieAndWait(String nameValuePair,
                                String optionsString)
                         throws Exception
Throws:
Exception

deleteCookieAndWait

public void deleteCookieAndWait(String name,
                                String optionsString)
                         throws Exception
Throws:
Exception

doubleClickAtAndWait

public void doubleClickAtAndWait(String locator,
                                 String coordString)
                          throws Exception
Throws:
Exception

dragAndDropAndWait

public void dragAndDropAndWait(String locator,
                               String movementsString)
                        throws Exception
Throws:
Exception

dragAndDropToObjectAndWait

public void dragAndDropToObjectAndWait(String locatorOfObjectToBeDragged,
                                       String locatorOfDragDestinationObject)
                                throws Exception
Throws:
Exception

dragdropAndWait

public void dragdropAndWait(String locator,
                            String movementsString)
                     throws Exception
Throws:
Exception

echo

public void echo(String message)

fireEventAndWait

public void fireEventAndWait(String locator,
                             String eventName)
                      throws Exception
Throws:
Exception

goBackAndWait

public void goBackAndWait()
                   throws Exception
Throws:
Exception

highlightAndWait

public void highlightAndWait(String locator)
                      throws Exception
Throws:
Exception

keyDownAndWait

public void keyDownAndWait(String locator,
                           String keySequence)
                    throws Exception
Throws:
Exception

keyPressAndWait

public void keyPressAndWait(String locator,
                            String keySequence)
                     throws Exception
Throws:
Exception

keyUpAndWait

public void keyUpAndWait(String locator,
                         String keySequence)
                  throws Exception
Throws:
Exception

metaKeyDownAndWait

public void metaKeyDownAndWait()
                        throws Exception
Throws:
Exception

metaKeyUpAndWait

public void metaKeyUpAndWait()
                      throws Exception
Throws:
Exception

mouseDownAndWait

public void mouseDownAndWait(String locator)
                      throws Exception
Throws:
Exception

mouseDownAtAndWait

public void mouseDownAtAndWait(String locator,
                               String coordString)
                        throws Exception
Throws:
Exception

mouseMoveAndWait

public void mouseMoveAndWait(String locator)
                      throws Exception
Throws:
Exception

mouseMoveAtAndWait

public void mouseMoveAtAndWait(String locator,
                               String coordString)
                        throws Exception
Throws:
Exception

mouseOutAndWait

public void mouseOutAndWait(String locator)
                     throws Exception
Throws:
Exception

mouseOverAndWait

public void mouseOverAndWait(String locator)
                      throws Exception
Throws:
Exception

mouseUpAndWait

public void mouseUpAndWait(String locator)
                    throws Exception
Throws:
Exception

mouseUpAtAndWait

public void mouseUpAtAndWait(String locator,
                             String coordString)
                      throws Exception
Throws:
Exception

openWindowAndWait

public void openWindowAndWait(String url,
                              String windowID)
                       throws Exception
Throws:
Exception

refreshAndWait

public void refreshAndWait()
                    throws Exception
Throws:
Exception

removeAllSelectionsAndWait

public void removeAllSelectionsAndWait(String locator)
                                throws Exception
Throws:
Exception

selectAndWait

public void selectAndWait(String selectLocator,
                          String optionLocator)
                   throws Exception
Throws:
Exception

setBrowserLogLevelAndWait

public void setBrowserLogLevelAndWait(String logLevel)
                               throws Exception
Throws:
Exception

setCursorPositionAndWait

public void setCursorPositionAndWait(String locator,
                                     String position)
                              throws Exception
Throws:
Exception

submitAndWait

public void submitAndWait(String formLocator)
                   throws Exception
Throws:
Exception

typeAndWait

public void typeAndWait(String locator,
                        String value)
                 throws Exception
Throws:
Exception

typeKeysAndWait

public void typeKeysAndWait(String locator,
                            String value)
                     throws Exception
Throws:
Exception

setMouseSpeedAndWait

public void setMouseSpeedAndWait(String pixels)
                          throws Exception
Throws:
Exception


Copyright © 2010. All Rights Reserved.