org.apache.tapestry5.test
Class AbstractIntegrationTestSuite

java.lang.Object
  extended by org.testng.Assert
      extended by org.apache.tapestry5.test.AbstractIntegrationTestSuite
All Implemented Interfaces:
com.thoughtworks.selenium.Selenium

Deprecated. Use SeleniumLauncher and SeleniumTestCase instead.

public class AbstractIntegrationTestSuite
extends org.testng.Assert
implements com.thoughtworks.selenium.Selenium

A base class for creating integration tests. Ths encapsulates starting up an in-process copy of Jetty, and in-process copy of SeleniumServer, and a Selenium client.

Unless you are very, very clever, you will want to run the tests sequentially. TestNG tends to run them in an arbitrary order unless you explicitly set the order. If you have managed to get TestNG to run tests in parallel, you may see further problems caused by a single client jumping all over your web application in an unpredictable order.

This class implements the Selenium interface, and delegates all those methods to the DefaultSelenium instance it creates. It also extends the normal exception reporting for any failed command or query to produce a more detailed report to the main console.

See Also:
JettyRunner

Field Summary
static String BASE_URL
          Deprecated.  
static String DEFAULT_WEB_APP_ROOT
          Deprecated. Default directory containing the web application to be tested (this conforms to Maven's default folder).
static String DEFAULT_WEB_BROWSER_COMMAND
          Deprecated. Default browser in which to run tests - firefox
static int JETTY_PORT
          Deprecated. The port on which the internal copy of Jetty is executed.
static String PAGE_LOAD_TIMEOUT
          Deprecated. 15 seconds
static String SUBMIT
          Deprecated.  
 
Constructor Summary
  AbstractIntegrationTestSuite()
          Deprecated. Initializes the suite using DEFAULT_WEB_APP_ROOT.
protected AbstractIntegrationTestSuite(String webAppRoot)
          Deprecated.  
protected AbstractIntegrationTestSuite(String webAppRoot, String browserCommand, String... virtualHosts)
          Deprecated.  
 
Method Summary
 void addCustomRequestHeader(String key, String value)
          Deprecated.  
 void addLocationStrategy(String strategyName, String functionDefinition)
          Deprecated.  
 void addScript(String scriptContent, String scriptTagId)
          Deprecated.  
 void addSelection(String locator, String optionLocator)
          Deprecated.  
 void allowNativeXpath(String allow)
          Deprecated.  
 void altKeyDown()
          Deprecated.  
 void altKeyUp()
          Deprecated.  
 void answerOnNextPrompt(String answer)
          Deprecated.  
protected  void assertAttribute(String locator, String expected)
          Deprecated. Used when the locator identifies an attribute, not an element.
protected  void assertAttributeSeries(String idFormat, int startIndex, String... values)
          Deprecated.  
protected  void assertFieldValue(String locator, String expected)
          Deprecated.  
protected  void assertFieldValueSeries(String idFormat, int startIndex, String... values)
          Deprecated.  
protected  void assertSourcePresent(String... expected)
          Deprecated.  
protected  void assertText(String locator, String expected)
          Deprecated. Asserts the text of an element, identified by the locator.
protected  void assertTextPresent(String... text)
          Deprecated.  
protected  void assertTextSeries(String idFormat, int startIndex, String... values)
          Deprecated.  
 void assignId(String locator, String identifier)
          Deprecated.  
 void attachFile(String fieldLocator, String fileLocator)
          Deprecated.  
 void captureEntirePageScreenshot(String filename, String kwargs)
          Deprecated.  
 String captureEntirePageScreenshotToString(String kwargs)
          Deprecated.  
 String captureNetworkTraffic(String type)
          Deprecated.  
 void captureScreenshot(String filename)
          Deprecated.  
 String captureScreenshotToString()
          Deprecated.  
 void check(String locator)
          Deprecated.  
 void chooseCancelOnNextConfirmation()
          Deprecated.  
 void chooseOkOnNextConfirmation()
          Deprecated.  
 void cleanup()
          Deprecated.  
 void click(String locator)
          Deprecated.  
protected  void clickAndWait(String link)
          Deprecated.  
 void clickAt(String locator, String coordString)
          Deprecated.  
 void close()
          Deprecated.  
 void contextMenu(String locator)
          Deprecated.  
 void contextMenuAt(String locator, String coordString)
          Deprecated.  
 void controlKeyDown()
          Deprecated.  
 void controlKeyUp()
          Deprecated.  
 void createCookie(String nameValuePair, String optionsString)
          Deprecated.  
 void deleteAllVisibleCookies()
          Deprecated.  
 void deleteCookie(String name, String optionsString)
          Deprecated.  
 void deselectPopUp()
          Deprecated.  
 void doubleClick(String locator)
          Deprecated.  
 void doubleClickAt(String locator, String coordString)
          Deprecated.  
 void dragAndDrop(String locator, String movementsString)
          Deprecated.  
 void dragAndDropToObject(String locatorOfObjectToBeDragged, String locatorOfDragDestinationObject)
          Deprecated.  
 void dragdrop(String locator, String movementsString)
          Deprecated.  
 void fireEvent(String locator, String eventName)
          Deprecated.  
 void focus(String locator)
          Deprecated.  
 String getAlert()
          Deprecated.  
 String[] getAllButtons()
          Deprecated.  
 String[] getAllFields()
          Deprecated.  
 String[] getAllLinks()
          Deprecated.  
 String[] getAllWindowIds()
          Deprecated.  
 String[] getAllWindowNames()
          Deprecated.  
 String[] getAllWindowTitles()
          Deprecated.  
 String getAttribute(String attributeLocator)
          Deprecated.  
 String[] getAttributeFromAllWindows(String attributeName)
          Deprecated.  
 String getBodyText()
          Deprecated.  
 String getConfirmation()
          Deprecated.  
 String getCookie()
          Deprecated.  
 String getCookieByName(String name)
          Deprecated.  
 Number getCssCount(String str)
          Deprecated.  
 Number getCursorPosition(String locator)
          Deprecated.  
 Number getElementHeight(String locator)
          Deprecated.  
 Number getElementIndex(String locator)
          Deprecated.  
 Number getElementPositionLeft(String locator)
          Deprecated.  
 Number getElementPositionTop(String locator)
          Deprecated.  
 Number getElementWidth(String locator)
          Deprecated.  
 String getEval(String script)
          Deprecated.  
 String getExpression(String expression)
          Deprecated.  
 String getHtmlSource()
          Deprecated.  
 String getLocation()
          Deprecated.  
 String getLog()
          Deprecated.  
 Number getMouseSpeed()
          Deprecated.  
 String getPrompt()
          Deprecated.  
 String getSelectedId(String selectLocator)
          Deprecated.  
 String[] getSelectedIds(String selectLocator)
          Deprecated.  
 String getSelectedIndex(String selectLocator)
          Deprecated.  
 String[] getSelectedIndexes(String selectLocator)
          Deprecated.  
 String getSelectedLabel(String selectLocator)
          Deprecated.  
 String[] getSelectedLabels(String selectLocator)
          Deprecated.  
 String getSelectedValue(String selectLocator)
          Deprecated.  
 String[] getSelectedValues(String selectLocator)
          Deprecated.  
 String[] getSelectOptions(String selectLocator)
          Deprecated.  
 String getSpeed()
          Deprecated.  
 String getTable(String tableCellAddress)
          Deprecated.  
 String getText(String locator)
          Deprecated.  
 String getTitle()
          Deprecated.  
 String getValue(String locator)
          Deprecated.  
 String getWebappRoot()
          Deprecated.  
 boolean getWhetherThisFrameMatchFrameExpression(String currentFrameString, String target)
          Deprecated.  
 boolean getWhetherThisWindowMatchWindowExpression(String currentWindowString, String target)
          Deprecated.  
 Number getXpathCount(String xpath)
          Deprecated.  
 void goBack()
          Deprecated.  
 void highlight(String locator)
          Deprecated.  
 void ignoreAttributesWithoutValue(String ignore)
          Deprecated.  
 boolean isAlertPresent()
          Deprecated.  
 boolean isChecked(String locator)
          Deprecated.  
 boolean isConfirmationPresent()
          Deprecated.  
 boolean isCookiePresent(String name)
          Deprecated.  
 boolean isEditable(String locator)
          Deprecated.  
 boolean isElementPresent(String locator)
          Deprecated.  
 boolean isOrdered(String locator1, String locator2)
          Deprecated.  
 boolean isPromptPresent()
          Deprecated.  
 boolean isSomethingSelected(String selectLocator)
          Deprecated.  
 boolean isTextPresent(String pattern)
          Deprecated.  
 boolean isVisible(String locator)
          Deprecated.  
 void keyDown(String locator, String keySequence)
          Deprecated.  
 void keyDownNative(String keycode)
          Deprecated.  
 void keyPress(String locator, String keySequence)
          Deprecated.  
 void keyPressNative(String keycode)
          Deprecated.  
 void keyUp(String locator, String keySequence)
          Deprecated.  
 void keyUpNative(String keycode)
          Deprecated.  
 void metaKeyDown()
          Deprecated.  
 void metaKeyUp()
          Deprecated.  
 void mouseDown(String locator)
          Deprecated.  
 void mouseDownAt(String locator, String coordString)
          Deprecated.  
 void mouseDownRight(String locator)
          Deprecated.  
 void mouseDownRightAt(String locator, String coordString)
          Deprecated.  
 void mouseMove(String locator)
          Deprecated.  
 void mouseMoveAt(String locator, String coordString)
          Deprecated.  
 void mouseOut(String locator)
          Deprecated.  
 void mouseOver(String locator)
          Deprecated.  
 void mouseUp(String locator)
          Deprecated.  
 void mouseUpAt(String locator, String coordString)
          Deprecated.  
 void mouseUpRight(String locator)
          Deprecated.  
 void mouseUpRightAt(String locator, String coordString)
          Deprecated.  
 void open(String url)
          Deprecated.  
 void open(String url, String ignoreResponseCode)
          Deprecated.  
 void openWindow(String url, String windowID)
          Deprecated.  
 void refresh()
          Deprecated.  
 void removeAllSelections(String locator)
          Deprecated.  
 void removeScript(String scriptTagId)
          Deprecated.  
 void removeSelection(String locator, String optionLocator)
          Deprecated.  
 String retrieveLastRemoteControlLogs()
          Deprecated.  
 void rollup(String rollupName, String kwargs)
          Deprecated.  
 void runScript(String script)
          Deprecated.  
 void select(String selectLocator, String optionLocator)
          Deprecated.  
 void selectFrame(String locator)
          Deprecated.  
 void selectPopUp(String windowID)
          Deprecated.  
 void selectWindow(String windowID)
          Deprecated.  
 void setBrowserLogLevel(String logLevel)
          Deprecated.  
 void setContext(String context)
          Deprecated.  
 void setCursorPosition(String locator, String position)
          Deprecated.  
 void setExtensionJs(String extensionJs)
          Deprecated.  
 void setMouseSpeed(String pixels)
          Deprecated.  
 void setSpeed(String value)
          Deprecated.  
 void setTimeout(String timeout)
          Deprecated.  
 void setup(org.testng.ITestContext testContext)
          Deprecated.  
 void setWebappRoot(String webappRoot)
          Deprecated.  
 void shiftKeyDown()
          Deprecated.  
 void shiftKeyUp()
          Deprecated.  
 void showContextualBanner()
          Deprecated.  
 void showContextualBanner(String className, String methodName)
          Deprecated.  
 void shutDownSeleniumServer()
          Deprecated.  
 void start()
          Deprecated.  
 void start(Object optionsObject)
          Deprecated.  
protected  void start(String... linkText)
          Deprecated. Used to start a typical test, by opening to the base URL and clicking through a series of links.
 void start(String linkText)
          Deprecated. This does NOT invoke Selenium.start(String); it invokes start(String[]).
 void stop()
          Deprecated.  
 void submit(String formLocator)
          Deprecated.  
 void type(String locator, String value)
          Deprecated.  
 void typeKeys(String locator, String value)
          Deprecated.  
 void uncheck(String locator)
          Deprecated.  
 void useXpathLibrary(String libraryName)
          Deprecated.  
 void waitForCondition(String script, String timeout)
          Deprecated.  
protected  void waitForCSSSelectedElementToAppear(String cssRule)
          Deprecated.  
 void waitForFrameToLoad(String frameAddress, String timeout)
          Deprecated.  
 void waitForPageToLoad()
          Deprecated. Waits the default time for the page to load.
 void waitForPageToLoad(String timeout)
          Deprecated.  
 void waitForPopUp(String windowID, String timeout)
          Deprecated.  
 void windowFocus()
          Deprecated.  
 void windowMaximize()
          Deprecated.  
 
Methods inherited from class org.testng.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsNoOrder, assertEqualsNoOrder, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WEB_APP_ROOT

public static final String DEFAULT_WEB_APP_ROOT
Deprecated. 
Default directory containing the web application to be tested (this conforms to Maven's default folder).

See Also:
Constant Field Values

DEFAULT_WEB_BROWSER_COMMAND

public static final String DEFAULT_WEB_BROWSER_COMMAND
Deprecated. 
Default browser in which to run tests - firefox

See Also:
Constant Field Values

PAGE_LOAD_TIMEOUT

public static final String PAGE_LOAD_TIMEOUT
Deprecated. 
15 seconds

See Also:
Constant Field Values

JETTY_PORT

public static final int JETTY_PORT
Deprecated. 
The port on which the internal copy of Jetty is executed.

See Also:
Constant Field Values

BASE_URL

public static final String BASE_URL
Deprecated. 

SUBMIT

public static final String SUBMIT
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

AbstractIntegrationTestSuite

public AbstractIntegrationTestSuite()
Deprecated. 
Initializes the suite using DEFAULT_WEB_APP_ROOT.


AbstractIntegrationTestSuite

protected AbstractIntegrationTestSuite(String webAppRoot)
Deprecated. 
Parameters:
webAppRoot - the directory containing the web application to be tested.

AbstractIntegrationTestSuite

protected AbstractIntegrationTestSuite(String webAppRoot,
                                       String browserCommand,
                                       String... virtualHosts)
Deprecated. 
Parameters:
webAppRoot - web application root (default src/main/webapp)
browserCommand - browser command to pass to selenium. Default is *firefox, syntax for custom browsers is *custom <path_to_browser>, e.g. *custom /usr/lib/mozilla-firefox/firefox
virtualHosts - an array with virtual hosts
Method Detail

assertSourcePresent

protected final void assertSourcePresent(String... expected)
Deprecated. 

assertAttribute

protected final void assertAttribute(String locator,
                                     String expected)
Deprecated. 
Used when the locator identifies an attribute, not an element.

Parameters:
locator - identifies the attribute whose value is to be asserted
expected - expected value for the attribute

assertText

protected final void assertText(String locator,
                                String expected)
Deprecated. 
Asserts the text of an element, identified by the locator.

Parameters:
locator - identifies the element whose text value is to be asserted
expected - expected value for the element's text

assertTextPresent

protected final void assertTextPresent(String... text)
Deprecated. 

assertFieldValue

protected final void assertFieldValue(String locator,
                                      String expected)
Deprecated. 

clickAndWait

protected final void clickAndWait(String link)
Deprecated. 

assertTextSeries

protected final void assertTextSeries(String idFormat,
                                      int startIndex,
                                      String... values)
Deprecated. 

assertAttributeSeries

protected final void assertAttributeSeries(String idFormat,
                                           int startIndex,
                                           String... values)
Deprecated. 

assertFieldValueSeries

protected final void assertFieldValueSeries(String idFormat,
                                            int startIndex,
                                            String... values)
Deprecated. 

waitForCSSSelectedElementToAppear

protected void waitForCSSSelectedElementToAppear(String cssRule)
Deprecated. 

cleanup

public void cleanup()
             throws Exception
Deprecated. 
Throws:
Exception

setup

public void setup(org.testng.ITestContext testContext)
           throws Exception
Deprecated. 
Throws:
Exception

start

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

stop

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

click

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

doubleClick

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

contextMenu

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

clickAt

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

doubleClickAt

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

contextMenuAt

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

fireEvent

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

focus

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

keyPress

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

shiftKeyDown

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

shiftKeyUp

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

metaKeyDown

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

metaKeyUp

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

altKeyDown

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

altKeyUp

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

controlKeyDown

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

controlKeyUp

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

keyDown

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

keyUp

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

mouseOver

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

mouseOut

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

mouseDown

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

mouseDownAt

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

mouseUp

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

mouseUpAt

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

mouseMove

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

mouseMoveAt

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

type

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

typeKeys

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

setSpeed

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

getSpeed

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

check

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

uncheck

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

select

public void select(String selectLocator,
                   String optionLocator)
Deprecated. 
Specified by:
select in interface com.thoughtworks.selenium.Selenium

addSelection

public void addSelection(String locator,
                         String optionLocator)
Deprecated. 
Specified by:
addSelection in interface com.thoughtworks.selenium.Selenium

removeSelection

public void removeSelection(String locator,
                            String optionLocator)
Deprecated. 
Specified by:
removeSelection in interface com.thoughtworks.selenium.Selenium

removeAllSelections

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

submit

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

open

public void open(String url)
Deprecated. 
Specified by:
open in interface com.thoughtworks.selenium.Selenium

openWindow

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

selectWindow

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

selectFrame

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

getWhetherThisFrameMatchFrameExpression

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

getWhetherThisWindowMatchWindowExpression

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

waitForPageToLoad

public void waitForPageToLoad()
Deprecated. 
Waits the default time for the page to load.


waitForPopUp

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

chooseCancelOnNextConfirmation

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

chooseOkOnNextConfirmation

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

answerOnNextPrompt

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

goBack

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

refresh

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

close

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

isAlertPresent

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

isPromptPresent

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

isConfirmationPresent

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

getAlert

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

getConfirmation

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

getPrompt

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

getLocation

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

getTitle

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

getBodyText

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

getValue

public String getValue(String locator)
Deprecated. 
Specified by:
getValue in interface com.thoughtworks.selenium.Selenium

getText

public String getText(String locator)
Deprecated. 
Specified by:
getText in interface com.thoughtworks.selenium.Selenium

highlight

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

getEval

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

isChecked

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

getTable

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

getSelectedLabels

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

getSelectedLabel

public String getSelectedLabel(String selectLocator)
Deprecated. 
Specified by:
getSelectedLabel in interface com.thoughtworks.selenium.Selenium

getSelectedValues

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

getSelectedValue

public String getSelectedValue(String selectLocator)
Deprecated. 
Specified by:
getSelectedValue in interface com.thoughtworks.selenium.Selenium

getSelectedIndexes

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

getSelectedIndex

public String getSelectedIndex(String selectLocator)
Deprecated. 
Specified by:
getSelectedIndex in interface com.thoughtworks.selenium.Selenium

getSelectedIds

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

getSelectedId

public String getSelectedId(String selectLocator)
Deprecated. 
Specified by:
getSelectedId in interface com.thoughtworks.selenium.Selenium

isSomethingSelected

public boolean isSomethingSelected(String selectLocator)
Deprecated. 
Specified by:
isSomethingSelected in interface com.thoughtworks.selenium.Selenium

getSelectOptions

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

getAttribute

public String getAttribute(String attributeLocator)
Deprecated. 
Specified by:
getAttribute in interface com.thoughtworks.selenium.Selenium

isTextPresent

public boolean isTextPresent(String pattern)
Deprecated. 
Specified by:
isTextPresent in interface com.thoughtworks.selenium.Selenium

isElementPresent

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

isVisible

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

isEditable

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

getAllButtons

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

getAllLinks

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

getAllFields

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

getAttributeFromAllWindows

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

dragdrop

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

setMouseSpeed

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

getMouseSpeed

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

dragAndDrop

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

dragAndDropToObject

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

windowFocus

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

windowMaximize

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

getAllWindowIds

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

getAllWindowNames

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

getAllWindowTitles

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

getHtmlSource

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

setCursorPosition

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

getElementIndex

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

isOrdered

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

getElementPositionLeft

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

getElementPositionTop

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

getElementWidth

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

getElementHeight

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

getCursorPosition

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

getExpression

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

getXpathCount

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

assignId

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

allowNativeXpath

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

ignoreAttributesWithoutValue

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

waitForCondition

public void waitForCondition(String script,
                             String timeout)
Deprecated. 
Specified by:
waitForCondition in interface com.thoughtworks.selenium.Selenium

setTimeout

public void setTimeout(String timeout)
Deprecated. 
Specified by:
setTimeout in interface com.thoughtworks.selenium.Selenium

waitForPageToLoad

public void waitForPageToLoad(String timeout)
Deprecated. 
Specified by:
waitForPageToLoad in interface com.thoughtworks.selenium.Selenium

waitForFrameToLoad

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

getCookie

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

getCookieByName

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

isCookiePresent

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

createCookie

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

deleteCookie

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

deleteAllVisibleCookies

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

setBrowserLogLevel

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

runScript

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

addLocationStrategy

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

setContext

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

attachFile

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

captureScreenshot

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

shutDownSeleniumServer

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

keyDownNative

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

keyUpNative

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

keyPressNative

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

start

protected final void start(String... linkText)
Deprecated. 
Used to start a typical test, by opening to the base URL and clicking through a series of links.

Note: Selenium 1.0-beta-2 has introduced a method start(String) which is distinct from this implementation (which dates back to Tapestry 5.0 and Selenium 1.0-beta-1).


getWebappRoot

public String getWebappRoot()
Deprecated. 

setWebappRoot

public void setWebappRoot(String webappRoot)
Deprecated. 

setExtensionJs

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

start

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

showContextualBanner

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

showContextualBanner

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

mouseDownRight

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

mouseDownRightAt

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

captureEntirePageScreenshot

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

rollup

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

addScript

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

removeScript

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

useXpathLibrary

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

captureScreenshotToString

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

captureEntirePageScreenshotToString

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

retrieveLastRemoteControlLogs

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

mouseUpRight

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

mouseUpRightAt

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

start

public void start(String linkText)
Deprecated. 
This does NOT invoke Selenium.start(String); it invokes start(String[]). This is necesasry due to the introduction of the start() method.

Specified by:
start in interface com.thoughtworks.selenium.Selenium
Parameters:
linkText - text of link to click
Since:
5.1.0.0

addCustomRequestHeader

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

captureNetworkTraffic

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

deselectPopUp

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

selectPopUp

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

getLog

public String getLog()
Deprecated. 
Specified by:
getLog in interface com.thoughtworks.selenium.Selenium
Since:
5.2.0.0

open

public void open(String url,
                 String ignoreResponseCode)
Deprecated. 
Specified by:
open in interface com.thoughtworks.selenium.Selenium
Since:
5.2.0.0

getCssCount

public Number getCssCount(String str)
Deprecated. 
Specified by:
getCssCount in interface com.thoughtworks.selenium.Selenium


Copyright © 2003-2012 The Apache Software Foundation.