|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.selenium.DefaultSelenium org.jboss.arquillian.ajocado.framework.ExtendedSelenium
public class ExtendedSelenium
Selenium API extended by useful commands.
Field Summary |
---|
Fields inherited from class com.thoughtworks.selenium.DefaultSelenium |
---|
commandProcessor |
Constructor Summary | |
---|---|
ExtendedSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.thoughtworks.selenium.DefaultSelenium |
---|
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, windowMaximize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor)
Method Detail |
---|
public void open(String url)
open
in interface com.thoughtworks.selenium.Selenium
open
in class com.thoughtworks.selenium.DefaultSelenium
public 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 recognize
IllegalStateException
- 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 locator
public boolean isAttributePresent(String elementLocator, String attributeName)
elementLocator
- an element locatorattributeName
- a name of an attribute
public Number getJQueryCount(String jqueryLocator)
jqueryLocator
- jQuery locator of an element
public void doCommand(String command, String param1, String param2)
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |