public interface ExtendedTypedSelenium extends TypedSelenium
Extends the common Selenium API by other useful functions.
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongsClass(ElementLocator<?> elementLocator,
String className)
Checks if element given by locator is member of CSS class given by className.
|
void |
check(ElementLocator<?> locator,
boolean checked)
Check a toggle-button (checkbox/radio) on or off.
|
void |
doCommand(String command,
String param1,
String param2)
Invokes selenium command.
|
int |
getCount(IterableLocator<?> locator)
Returns the number of elements that match the specified locator.
|
<R,T extends CssResolver<R>> |
getStyle(ElementLocator<?> elementLocator,
T cssResolver)
Get current style value of element given by locator.
|
boolean |
isAttributePresent(AttributeLocator<?> attributeLocator)
Verifies that the specified attribute is defined for the element.
|
boolean |
isStarted()
Indicates if selenium session was already successfully started.
|
void |
mouseOutAt(ElementLocator<?> elementLocator,
Point point)
Simulates a user hovering a mouse out of the specified element at specific coordinates relative to element.
|
void |
mouseOverAt(ElementLocator<?> elementLocator,
Point point)
Simulates a user hovering a mouse over the specified element at specific coordinates relative to element.
|
void |
scrollIntoView(ElementLocator<?> elementLocator,
boolean alignToTop)
Aligns screen to top (resp.
|
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, captureEntirePageScreenshot, captureNetworkTraffic, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, containsScript, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, fireEvent, focus, getAlert, getAllCookies, getAllWindowIds, getAttribute, getAttribute, getBodyText, getConfirmation, getCookieByName, getCursorPosition, getElementDimension, getElementHeight, getElementIndex, getElementPosition, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getText, getTitle, getValue, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDown, keyDownNative, keyPress, keyPress, keyPressNative, keyUp, keyUp, keyUpNative, logToBrowser, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForCondition, waitForFrameToLoad, waitForFrameToLoad, waitForPageToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximizeboolean isStarted()
<R,T extends CssResolver<R>> R getStyle(ElementLocator<?> elementLocator, T cssResolver)
R - the returning type (which was resolved by given resolver)T - the type of resolver CssResolverelementLocator - of element from what we want to get current style valuecssResolver - CSS style property resolver, see CssResolverIllegalStateException - if is caught unrecognized throwablevoid scrollIntoView(ElementLocator<?> elementLocator, boolean alignToTop)
elementLocator - of element which should be screen aligned toalignToTop - should be top border of screen aligned to top border of elementvoid mouseOverAt(ElementLocator<?> elementLocator, Point point)
elementLocator - element's locatorpoint - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the
locator.void mouseOutAt(ElementLocator<?> elementLocator, Point point)
elementLocator - element's locatorpoint - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the
locator.boolean belongsClass(ElementLocator<?> elementLocator, String className)
className - name of CSS classelementLocator - element's locatorboolean isAttributePresent(AttributeLocator<?> attributeLocator)
attributeLocator - an attribute locatorint getCount(IterableLocator<?> locator)
TypedSeleniumgetCount in interface TypedSeleniumvoid check(ElementLocator<?> locator, boolean checked)
Check a toggle-button (checkbox/radio) on or off.
locator - an element locatorchecked - if true, toggle-button will be checked on, otherwise checked offCopyright © 2013 JBoss by Red Hat. All Rights Reserved.