Ajocado Implementation 1.0.0.Alpha2

org.jboss.arquillian.ajocado.framework
Class ExtendedTypedSeleniumImpl

java.lang.Object
  extended by org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl
      extended by org.jboss.arquillian.ajocado.framework.ExtendedTypedSeleniumImpl
All Implemented Interfaces:
ExtendedTypedSelenium, UnsupportedTypedSelenium, TypedSelenium
Direct Known Subclasses:
AjaxSeleniumImpl

public class ExtendedTypedSeleniumImpl
extends TypedSeleniumImpl
implements ExtendedTypedSelenium

Type-safe selenium wrapper for Selenium API with extension of some useful commands defined in ExtendedSelenium

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
ExtendedTypedSeleniumImpl()
           
 
Method Summary
 boolean belongsClass(ElementLocator<?> elementLocator, String className)
           
 void check(ElementLocator<?> locator, boolean checked)
           
 void doCommand(String command, String param1, String param2)
           
 void enableNetworkTrafficCapturing(boolean networkTrafficCapturingEnabled)
           
 int getCount(IterableLocator<?> locator)
           
protected  ExtendedSelenium getExtendedSelenium()
           
 String getStyle(ElementLocator<?> elementLocator, CssProperty property)
           
 String getStyle(ElementLocator<?> elementLocator, String property)
           
 boolean isAttributePresent(AttributeLocator<?> attributeLocator)
           
 boolean isDisplayed(ElementLocator<?> elementLocator)
           
 boolean isNetworkTrafficCapturingEnabled()
           
 boolean isStarted()
           
 void mouseOutAt(ElementLocator<?> elementLocator, Point point)
           
 void mouseOverAt(ElementLocator<?> elementLocator, Point point)
           
 void scrollIntoView(ElementLocator<?> elementLocator, boolean alignToTop)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshot, captureNetworkTraffic, captureScreenshot, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, containsScript, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllCookies, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookieByName, getCursorPosition, getElementDimension, getElementHeight, getElementIndex, getElementPosition, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, 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, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForCondition, waitForFrameToLoad, waitForFrameToLoad, waitForPageToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.ajocado.framework.TypedSelenium
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, dragdrop, fireEvent, focus, getAlert, getAllCookies, 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, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, logToBrowser, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, runScript, select, selectFrame, setBrowserLogLevel, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForCondition, waitForFrameToLoad, waitForFrameToLoad, waitForPageToLoad, waitForPageToLoad, windowFocus, windowMaximize
 

Constructor Detail

ExtendedTypedSeleniumImpl

public ExtendedTypedSeleniumImpl()
Method Detail

getExtendedSelenium

protected ExtendedSelenium getExtendedSelenium()

isStarted

public boolean isStarted()
Specified by:
isStarted in interface ExtendedTypedSelenium

start

public void start()
Specified by:
start in interface TypedSelenium
Overrides:
start in class TypedSeleniumImpl

stop

public void stop()
Specified by:
stop in interface TypedSelenium
Overrides:
stop in class TypedSeleniumImpl

enableNetworkTrafficCapturing

public void enableNetworkTrafficCapturing(boolean networkTrafficCapturingEnabled)
Specified by:
enableNetworkTrafficCapturing in interface ExtendedTypedSelenium

isNetworkTrafficCapturingEnabled

public boolean isNetworkTrafficCapturingEnabled()
Specified by:
isNetworkTrafficCapturingEnabled in interface ExtendedTypedSelenium

getStyle

public String getStyle(ElementLocator<?> elementLocator,
                       String property)
Specified by:
getStyle in interface ExtendedTypedSelenium

getStyle

public String getStyle(ElementLocator<?> elementLocator,
                       CssProperty property)
Specified by:
getStyle in interface ExtendedTypedSelenium

scrollIntoView

public void scrollIntoView(ElementLocator<?> elementLocator,
                           boolean alignToTop)
Specified by:
scrollIntoView in interface ExtendedTypedSelenium

mouseOverAt

public void mouseOverAt(ElementLocator<?> elementLocator,
                        Point point)
Specified by:
mouseOverAt in interface ExtendedTypedSelenium

mouseOutAt

public void mouseOutAt(ElementLocator<?> elementLocator,
                       Point point)
Specified by:
mouseOutAt in interface ExtendedTypedSelenium

isDisplayed

public boolean isDisplayed(ElementLocator<?> elementLocator)
Specified by:
isDisplayed in interface ExtendedTypedSelenium

belongsClass

public boolean belongsClass(ElementLocator<?> elementLocator,
                            String className)
Specified by:
belongsClass in interface ExtendedTypedSelenium

isAttributePresent

public boolean isAttributePresent(AttributeLocator<?> attributeLocator)
Specified by:
isAttributePresent in interface ExtendedTypedSelenium

getCount

public int getCount(IterableLocator<?> locator)
Specified by:
getCount in interface ExtendedTypedSelenium
Specified by:
getCount in interface TypedSelenium
Overrides:
getCount in class TypedSeleniumImpl

check

public void check(ElementLocator<?> locator,
                  boolean checked)
Specified by:
check in interface ExtendedTypedSelenium

doCommand

public void doCommand(String command,
                      String param1,
                      String param2)
Specified by:
doCommand in interface ExtendedTypedSelenium

Ajocado Implementation 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.