public class ExtendedSelenium
extends com.thoughtworks.selenium.DefaultSelenium
| Constructor and Description |
|---|
ExtendedSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongsClass(String locator,
String className)
Checks if element given by locator is member of CSS class given by className.
|
void |
doCommand(String command,
String param1,
String param2) |
Number |
getJQueryCount(String jqueryLocator)
Returns the number of elements with given jQuery locator.
|
String |
getStyle(String locator,
String property)
Get current style value of element given by locator.
|
boolean |
isAttributePresent(String elementLocator,
String attributeName)
Verifies that the specified attribute is defined for the element.
|
void |
mouseOutAt(String locator,
String coordString)
Simulates a user hovering a mouse out of the specified element at specific coordinates relative to element.
|
void |
mouseOverAt(String locator,
String coordString)
Simulates a user hovering a mouse over the specified element at specific coordinates relative to element.
|
void |
open(String url) |
void |
scrollIntoView(String locator,
String alignToTop)
Aligns screen to top (resp.
|
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshotToString, captureNetworkTraffic, captureScreenshot, captureScreenshotToString, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCssCount, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getLog, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, rollup, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, showContextualBanner, showContextualBanner, shutDownSeleniumServer, start, start, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximizepublic ExtendedSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor)
public void open(String url)
open in interface com.thoughtworks.selenium.Seleniumopen in class com.thoughtworks.selenium.DefaultSeleniumpublic String getStyle(String locator, String property)
locator - of element from what we want to get current style valueproperty - CSS style property what we can to recognizeIllegalStateException - if is caught unrecognized throwablepublic void scrollIntoView(String locator, String alignToTop)
locator - of element which should be screen aligned toalignToTop - should be top border of screen aligned to top border of elementpublic void mouseOverAt(String locator, String coordString)
locator - element's locatorcoordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the
locator.public void mouseOutAt(String locator, String coordString)
locator - element's locatorcoordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the
locator.public boolean belongsClass(String locator, String className)
className - name of CSS classlocator - element's locatorpublic boolean isAttributePresent(String elementLocator, String attributeName)
elementLocator - an element locatorattributeName - a name of an attributepublic Number getJQueryCount(String jqueryLocator)
jqueryLocator - jQuery locator of an elementCopyright © 2013 JBoss by Red Hat. All Rights Reserved.