|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.testng.Assert
org.apache.tapestry5.test.AbstractIntegrationTestSuite
SeleniumLauncher
and SeleniumTestCase
instead.
public class AbstractIntegrationTestSuite
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.
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.
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 |
---|
public static final String DEFAULT_WEB_APP_ROOT
public static final String DEFAULT_WEB_BROWSER_COMMAND
public static final String PAGE_LOAD_TIMEOUT
public static final int JETTY_PORT
public static final String BASE_URL
public static final String SUBMIT
Constructor Detail |
---|
public AbstractIntegrationTestSuite()
DEFAULT_WEB_APP_ROOT
.
protected AbstractIntegrationTestSuite(String webAppRoot)
webAppRoot
- the directory containing the web application to be tested.protected AbstractIntegrationTestSuite(String webAppRoot, String browserCommand, String... virtualHosts)
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/firefoxvirtualHosts
- an array with virtual hostsMethod Detail |
---|
protected final void assertSourcePresent(String... expected)
protected final void assertAttribute(String locator, String expected)
locator
- identifies the attribute whose value is to be assertedexpected
- expected value for the attributeprotected final void assertText(String locator, String expected)
locator
- identifies the element whose text value is to be assertedexpected
- expected value for the element's textprotected final void assertTextPresent(String... text)
protected final void assertFieldValue(String locator, String expected)
protected final void clickAndWait(String link)
protected final void assertTextSeries(String idFormat, int startIndex, String... values)
protected final void assertAttributeSeries(String idFormat, int startIndex, String... values)
protected final void assertFieldValueSeries(String idFormat, int startIndex, String... values)
protected void waitForCSSSelectedElementToAppear(String cssRule)
public void cleanup() throws Exception
Exception
public void setup(org.testng.ITestContext testContext) throws Exception
Exception
public void start()
start
in interface com.thoughtworks.selenium.Selenium
public void stop()
stop
in interface com.thoughtworks.selenium.Selenium
public void click(String locator)
click
in interface com.thoughtworks.selenium.Selenium
public void doubleClick(String locator)
doubleClick
in interface com.thoughtworks.selenium.Selenium
public void contextMenu(String locator)
contextMenu
in interface com.thoughtworks.selenium.Selenium
public void clickAt(String locator, String coordString)
clickAt
in interface com.thoughtworks.selenium.Selenium
public void doubleClickAt(String locator, String coordString)
doubleClickAt
in interface com.thoughtworks.selenium.Selenium
public void contextMenuAt(String locator, String coordString)
contextMenuAt
in interface com.thoughtworks.selenium.Selenium
public void fireEvent(String locator, String eventName)
fireEvent
in interface com.thoughtworks.selenium.Selenium
public void focus(String locator)
focus
in interface com.thoughtworks.selenium.Selenium
public void keyPress(String locator, String keySequence)
keyPress
in interface com.thoughtworks.selenium.Selenium
public void shiftKeyDown()
shiftKeyDown
in interface com.thoughtworks.selenium.Selenium
public void shiftKeyUp()
shiftKeyUp
in interface com.thoughtworks.selenium.Selenium
public void metaKeyDown()
metaKeyDown
in interface com.thoughtworks.selenium.Selenium
public void metaKeyUp()
metaKeyUp
in interface com.thoughtworks.selenium.Selenium
public void altKeyDown()
altKeyDown
in interface com.thoughtworks.selenium.Selenium
public void altKeyUp()
altKeyUp
in interface com.thoughtworks.selenium.Selenium
public void controlKeyDown()
controlKeyDown
in interface com.thoughtworks.selenium.Selenium
public void controlKeyUp()
controlKeyUp
in interface com.thoughtworks.selenium.Selenium
public void keyDown(String locator, String keySequence)
keyDown
in interface com.thoughtworks.selenium.Selenium
public void keyUp(String locator, String keySequence)
keyUp
in interface com.thoughtworks.selenium.Selenium
public void mouseOver(String locator)
mouseOver
in interface com.thoughtworks.selenium.Selenium
public void mouseOut(String locator)
mouseOut
in interface com.thoughtworks.selenium.Selenium
public void mouseDown(String locator)
mouseDown
in interface com.thoughtworks.selenium.Selenium
public void mouseDownAt(String locator, String coordString)
mouseDownAt
in interface com.thoughtworks.selenium.Selenium
public void mouseUp(String locator)
mouseUp
in interface com.thoughtworks.selenium.Selenium
public void mouseUpAt(String locator, String coordString)
mouseUpAt
in interface com.thoughtworks.selenium.Selenium
public void mouseMove(String locator)
mouseMove
in interface com.thoughtworks.selenium.Selenium
public void mouseMoveAt(String locator, String coordString)
mouseMoveAt
in interface com.thoughtworks.selenium.Selenium
public void type(String locator, String value)
type
in interface com.thoughtworks.selenium.Selenium
public void typeKeys(String locator, String value)
typeKeys
in interface com.thoughtworks.selenium.Selenium
public void setSpeed(String value)
setSpeed
in interface com.thoughtworks.selenium.Selenium
public String getSpeed()
getSpeed
in interface com.thoughtworks.selenium.Selenium
public void check(String locator)
check
in interface com.thoughtworks.selenium.Selenium
public void uncheck(String locator)
uncheck
in interface com.thoughtworks.selenium.Selenium
public void select(String selectLocator, String optionLocator)
select
in interface com.thoughtworks.selenium.Selenium
public void addSelection(String locator, String optionLocator)
addSelection
in interface com.thoughtworks.selenium.Selenium
public void removeSelection(String locator, String optionLocator)
removeSelection
in interface com.thoughtworks.selenium.Selenium
public void removeAllSelections(String locator)
removeAllSelections
in interface com.thoughtworks.selenium.Selenium
public void submit(String formLocator)
submit
in interface com.thoughtworks.selenium.Selenium
public void open(String url)
open
in interface com.thoughtworks.selenium.Selenium
public void openWindow(String url, String windowID)
openWindow
in interface com.thoughtworks.selenium.Selenium
public void selectWindow(String windowID)
selectWindow
in interface com.thoughtworks.selenium.Selenium
public void selectFrame(String locator)
selectFrame
in interface com.thoughtworks.selenium.Selenium
public boolean getWhetherThisFrameMatchFrameExpression(String currentFrameString, String target)
getWhetherThisFrameMatchFrameExpression
in interface com.thoughtworks.selenium.Selenium
public boolean getWhetherThisWindowMatchWindowExpression(String currentWindowString, String target)
getWhetherThisWindowMatchWindowExpression
in interface com.thoughtworks.selenium.Selenium
public void waitForPageToLoad()
public void waitForPopUp(String windowID, String timeout)
waitForPopUp
in interface com.thoughtworks.selenium.Selenium
public void chooseCancelOnNextConfirmation()
chooseCancelOnNextConfirmation
in interface com.thoughtworks.selenium.Selenium
public void chooseOkOnNextConfirmation()
chooseOkOnNextConfirmation
in interface com.thoughtworks.selenium.Selenium
public void answerOnNextPrompt(String answer)
answerOnNextPrompt
in interface com.thoughtworks.selenium.Selenium
public void goBack()
goBack
in interface com.thoughtworks.selenium.Selenium
public void refresh()
refresh
in interface com.thoughtworks.selenium.Selenium
public void close()
close
in interface com.thoughtworks.selenium.Selenium
public boolean isAlertPresent()
isAlertPresent
in interface com.thoughtworks.selenium.Selenium
public boolean isPromptPresent()
isPromptPresent
in interface com.thoughtworks.selenium.Selenium
public boolean isConfirmationPresent()
isConfirmationPresent
in interface com.thoughtworks.selenium.Selenium
public String getAlert()
getAlert
in interface com.thoughtworks.selenium.Selenium
public String getConfirmation()
getConfirmation
in interface com.thoughtworks.selenium.Selenium
public String getPrompt()
getPrompt
in interface com.thoughtworks.selenium.Selenium
public String getLocation()
getLocation
in interface com.thoughtworks.selenium.Selenium
public String getTitle()
getTitle
in interface com.thoughtworks.selenium.Selenium
public String getBodyText()
getBodyText
in interface com.thoughtworks.selenium.Selenium
public String getValue(String locator)
getValue
in interface com.thoughtworks.selenium.Selenium
public String getText(String locator)
getText
in interface com.thoughtworks.selenium.Selenium
public void highlight(String locator)
highlight
in interface com.thoughtworks.selenium.Selenium
public String getEval(String script)
getEval
in interface com.thoughtworks.selenium.Selenium
public boolean isChecked(String locator)
isChecked
in interface com.thoughtworks.selenium.Selenium
public String getTable(String tableCellAddress)
getTable
in interface com.thoughtworks.selenium.Selenium
public String[] getSelectedLabels(String selectLocator)
getSelectedLabels
in interface com.thoughtworks.selenium.Selenium
public String getSelectedLabel(String selectLocator)
getSelectedLabel
in interface com.thoughtworks.selenium.Selenium
public String[] getSelectedValues(String selectLocator)
getSelectedValues
in interface com.thoughtworks.selenium.Selenium
public String getSelectedValue(String selectLocator)
getSelectedValue
in interface com.thoughtworks.selenium.Selenium
public String[] getSelectedIndexes(String selectLocator)
getSelectedIndexes
in interface com.thoughtworks.selenium.Selenium
public String getSelectedIndex(String selectLocator)
getSelectedIndex
in interface com.thoughtworks.selenium.Selenium
public String[] getSelectedIds(String selectLocator)
getSelectedIds
in interface com.thoughtworks.selenium.Selenium
public String getSelectedId(String selectLocator)
getSelectedId
in interface com.thoughtworks.selenium.Selenium
public boolean isSomethingSelected(String selectLocator)
isSomethingSelected
in interface com.thoughtworks.selenium.Selenium
public String[] getSelectOptions(String selectLocator)
getSelectOptions
in interface com.thoughtworks.selenium.Selenium
public String getAttribute(String attributeLocator)
getAttribute
in interface com.thoughtworks.selenium.Selenium
public boolean isTextPresent(String pattern)
isTextPresent
in interface com.thoughtworks.selenium.Selenium
public boolean isElementPresent(String locator)
isElementPresent
in interface com.thoughtworks.selenium.Selenium
public boolean isVisible(String locator)
isVisible
in interface com.thoughtworks.selenium.Selenium
public boolean isEditable(String locator)
isEditable
in interface com.thoughtworks.selenium.Selenium
public String[] getAllButtons()
getAllButtons
in interface com.thoughtworks.selenium.Selenium
public String[] getAllLinks()
getAllLinks
in interface com.thoughtworks.selenium.Selenium
public String[] getAllFields()
getAllFields
in interface com.thoughtworks.selenium.Selenium
public String[] getAttributeFromAllWindows(String attributeName)
getAttributeFromAllWindows
in interface com.thoughtworks.selenium.Selenium
public void dragdrop(String locator, String movementsString)
dragdrop
in interface com.thoughtworks.selenium.Selenium
public void setMouseSpeed(String pixels)
setMouseSpeed
in interface com.thoughtworks.selenium.Selenium
public Number getMouseSpeed()
getMouseSpeed
in interface com.thoughtworks.selenium.Selenium
public void dragAndDrop(String locator, String movementsString)
dragAndDrop
in interface com.thoughtworks.selenium.Selenium
public void dragAndDropToObject(String locatorOfObjectToBeDragged, String locatorOfDragDestinationObject)
dragAndDropToObject
in interface com.thoughtworks.selenium.Selenium
public void windowFocus()
windowFocus
in interface com.thoughtworks.selenium.Selenium
public void windowMaximize()
windowMaximize
in interface com.thoughtworks.selenium.Selenium
public String[] getAllWindowIds()
getAllWindowIds
in interface com.thoughtworks.selenium.Selenium
public String[] getAllWindowNames()
getAllWindowNames
in interface com.thoughtworks.selenium.Selenium
public String[] getAllWindowTitles()
getAllWindowTitles
in interface com.thoughtworks.selenium.Selenium
public String getHtmlSource()
getHtmlSource
in interface com.thoughtworks.selenium.Selenium
public void setCursorPosition(String locator, String position)
setCursorPosition
in interface com.thoughtworks.selenium.Selenium
public Number getElementIndex(String locator)
getElementIndex
in interface com.thoughtworks.selenium.Selenium
public boolean isOrdered(String locator1, String locator2)
isOrdered
in interface com.thoughtworks.selenium.Selenium
public Number getElementPositionLeft(String locator)
getElementPositionLeft
in interface com.thoughtworks.selenium.Selenium
public Number getElementPositionTop(String locator)
getElementPositionTop
in interface com.thoughtworks.selenium.Selenium
public Number getElementWidth(String locator)
getElementWidth
in interface com.thoughtworks.selenium.Selenium
public Number getElementHeight(String locator)
getElementHeight
in interface com.thoughtworks.selenium.Selenium
public Number getCursorPosition(String locator)
getCursorPosition
in interface com.thoughtworks.selenium.Selenium
public String getExpression(String expression)
getExpression
in interface com.thoughtworks.selenium.Selenium
public Number getXpathCount(String xpath)
getXpathCount
in interface com.thoughtworks.selenium.Selenium
public void assignId(String locator, String identifier)
assignId
in interface com.thoughtworks.selenium.Selenium
public void allowNativeXpath(String allow)
allowNativeXpath
in interface com.thoughtworks.selenium.Selenium
public void ignoreAttributesWithoutValue(String ignore)
ignoreAttributesWithoutValue
in interface com.thoughtworks.selenium.Selenium
public void waitForCondition(String script, String timeout)
waitForCondition
in interface com.thoughtworks.selenium.Selenium
public void setTimeout(String timeout)
setTimeout
in interface com.thoughtworks.selenium.Selenium
public void waitForPageToLoad(String timeout)
waitForPageToLoad
in interface com.thoughtworks.selenium.Selenium
public void waitForFrameToLoad(String frameAddress, String timeout)
waitForFrameToLoad
in interface com.thoughtworks.selenium.Selenium
public String getCookie()
getCookie
in interface com.thoughtworks.selenium.Selenium
public String getCookieByName(String name)
getCookieByName
in interface com.thoughtworks.selenium.Selenium
public boolean isCookiePresent(String name)
isCookiePresent
in interface com.thoughtworks.selenium.Selenium
public void createCookie(String nameValuePair, String optionsString)
createCookie
in interface com.thoughtworks.selenium.Selenium
public void deleteCookie(String name, String optionsString)
deleteCookie
in interface com.thoughtworks.selenium.Selenium
public void deleteAllVisibleCookies()
deleteAllVisibleCookies
in interface com.thoughtworks.selenium.Selenium
public void setBrowserLogLevel(String logLevel)
setBrowserLogLevel
in interface com.thoughtworks.selenium.Selenium
public void runScript(String script)
runScript
in interface com.thoughtworks.selenium.Selenium
public void addLocationStrategy(String strategyName, String functionDefinition)
addLocationStrategy
in interface com.thoughtworks.selenium.Selenium
public void setContext(String context)
setContext
in interface com.thoughtworks.selenium.Selenium
public void attachFile(String fieldLocator, String fileLocator)
attachFile
in interface com.thoughtworks.selenium.Selenium
public void captureScreenshot(String filename)
captureScreenshot
in interface com.thoughtworks.selenium.Selenium
public void shutDownSeleniumServer()
shutDownSeleniumServer
in interface com.thoughtworks.selenium.Selenium
public void keyDownNative(String keycode)
keyDownNative
in interface com.thoughtworks.selenium.Selenium
public void keyUpNative(String keycode)
keyUpNative
in interface com.thoughtworks.selenium.Selenium
public void keyPressNative(String keycode)
keyPressNative
in interface com.thoughtworks.selenium.Selenium
protected final void start(String... linkText)
public String getWebappRoot()
public void setWebappRoot(String webappRoot)
public void setExtensionJs(String extensionJs)
setExtensionJs
in interface com.thoughtworks.selenium.Selenium
public void start(Object optionsObject)
start
in interface com.thoughtworks.selenium.Selenium
public void showContextualBanner()
showContextualBanner
in interface com.thoughtworks.selenium.Selenium
public void showContextualBanner(String className, String methodName)
showContextualBanner
in interface com.thoughtworks.selenium.Selenium
public void mouseDownRight(String locator)
mouseDownRight
in interface com.thoughtworks.selenium.Selenium
public void mouseDownRightAt(String locator, String coordString)
mouseDownRightAt
in interface com.thoughtworks.selenium.Selenium
public void captureEntirePageScreenshot(String filename, String kwargs)
captureEntirePageScreenshot
in interface com.thoughtworks.selenium.Selenium
public void rollup(String rollupName, String kwargs)
rollup
in interface com.thoughtworks.selenium.Selenium
public void addScript(String scriptContent, String scriptTagId)
addScript
in interface com.thoughtworks.selenium.Selenium
public void removeScript(String scriptTagId)
removeScript
in interface com.thoughtworks.selenium.Selenium
public void useXpathLibrary(String libraryName)
useXpathLibrary
in interface com.thoughtworks.selenium.Selenium
public String captureScreenshotToString()
captureScreenshotToString
in interface com.thoughtworks.selenium.Selenium
public String captureEntirePageScreenshotToString(String kwargs)
captureEntirePageScreenshotToString
in interface com.thoughtworks.selenium.Selenium
public String retrieveLastRemoteControlLogs()
retrieveLastRemoteControlLogs
in interface com.thoughtworks.selenium.Selenium
public void mouseUpRight(String locator)
mouseUpRight
in interface com.thoughtworks.selenium.Selenium
public void mouseUpRightAt(String locator, String coordString)
mouseUpRightAt
in interface com.thoughtworks.selenium.Selenium
public void start(String linkText)
Selenium.start(String)
; it invokes
start(String[])
. This is necesasry due to the introduction of the start() method.
start
in interface com.thoughtworks.selenium.Selenium
linkText
- text of link to clickpublic void addCustomRequestHeader(String key, String value)
addCustomRequestHeader
in interface com.thoughtworks.selenium.Selenium
public String captureNetworkTraffic(String type)
captureNetworkTraffic
in interface com.thoughtworks.selenium.Selenium
public void deselectPopUp()
deselectPopUp
in interface com.thoughtworks.selenium.Selenium
public void selectPopUp(String windowID)
selectPopUp
in interface com.thoughtworks.selenium.Selenium
public String getLog()
getLog
in interface com.thoughtworks.selenium.Selenium
public void open(String url, String ignoreResponseCode)
open
in interface com.thoughtworks.selenium.Selenium
public Number getCssCount(String str)
getCssCount
in interface com.thoughtworks.selenium.Selenium
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |