Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.framework
Class GrapheneSeleniumImpl

java.lang.Object
  extended by org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl
      extended by org.jboss.arquillian.ajocado.framework.ExtendedTypedSeleniumImpl
          extended by org.jboss.arquillian.ajocado.framework.GrapheneSeleniumImpl
All Implemented Interfaces:
Cloneable, AjaxSelenium, ExtendedTypedSelenium, GrapheneSelenium, GrapheneInitializator, UnsupportedTypedSelenium, TypedSelenium

public class GrapheneSeleniumImpl
extends ExtendedTypedSeleniumImpl
implements GrapheneSelenium, AjaxSelenium, GrapheneInitializator

Implementation of TypedSelenium extended by methods in ExtendedTypedSeleniumImpl.

Internally using AjaxAwareInterceptor and CommandInterceptorProxyImpl.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
GrapheneSeleniumImpl(String serverHost, int serverPort, Browser browser, URL contextPathURL)
          Instantiates a new ajax selenium.
 
Method Summary
 GrapheneSelenium clone()
           
 void configureBrowser()
          Configures browser from users configuration
 void finalizeBrowser()
          Cleans browser window (by closing window or deleting all cookies)
 CommandInterceptorProxy getCommandInterceptionProxy()
           
protected static List<String> getExtensionsListFromResource(String resourceName)
          Loads the list of resource names from the given resource.
 PageExtensions getPageExtensions()
           
 RequestGuard getRequestGuard()
           
 SeleniumExtensions getSeleniumExtensions()
           
 void initializeBrowser()
          Initializes browser session and prepares it for further configuration
 void initializePageExtensions()
          Initializes Graphene extentensions for application page
 void initializeSeleniumExtensions()
          Initializes Graphene extentensions for Selenium
protected  void loadCustomLocationStrategies()
           
 void restartBrowser()
           
 
Methods inherited from class org.jboss.arquillian.ajocado.framework.ExtendedTypedSeleniumImpl
belongsClass, check, doCommand, getCount, getExtendedSelenium, getStyle, isAttributePresent, isStarted, mouseOutAt, mouseOverAt, scrollIntoView, start, 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, fireEvent, focus, getAlert, getAllButtons, getAllCookies, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, 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, 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, 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.ajocado.framework.ExtendedTypedSelenium
belongsClass, check, doCommand, getCount, getStyle, isAttributePresent, isStarted, mouseOutAt, mouseOverAt, scrollIntoView
 
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, 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, windowMaximize
 

Constructor Detail

GrapheneSeleniumImpl

public GrapheneSeleniumImpl(String serverHost,
                            int serverPort,
                            Browser browser,
                            URL contextPathURL)
Instantiates a new ajax selenium.

Parameters:
serverHost - the server host
serverPort - the server port
browser - the browser
contextPathURL - the context path url
Method Detail

getPageExtensions

public PageExtensions getPageExtensions()
Specified by:
getPageExtensions in interface GrapheneSelenium

getSeleniumExtensions

public SeleniumExtensions getSeleniumExtensions()
Specified by:
getSeleniumExtensions in interface GrapheneSelenium

getRequestGuard

public RequestGuard getRequestGuard()
Specified by:
getRequestGuard in interface GrapheneSelenium

getCommandInterceptionProxy

public CommandInterceptorProxy getCommandInterceptionProxy()
Specified by:
getCommandInterceptionProxy in interface GrapheneSelenium

clone

public GrapheneSelenium clone()
Specified by:
clone in interface GrapheneSelenium
Overrides:
clone in class Object

initializeBrowser

public void initializeBrowser()
Description copied from interface: GrapheneInitializator
Initializes browser session and prepares it for further configuration

Specified by:
initializeBrowser in interface GrapheneInitializator

configureBrowser

public void configureBrowser()
Description copied from interface: GrapheneInitializator
Configures browser from users configuration

Specified by:
configureBrowser in interface GrapheneInitializator

initializeSeleniumExtensions

public void initializeSeleniumExtensions()
Description copied from interface: GrapheneInitializator
Initializes Graphene extentensions for Selenium

Specified by:
initializeSeleniumExtensions in interface GrapheneInitializator

initializePageExtensions

public void initializePageExtensions()
Description copied from interface: GrapheneInitializator
Initializes Graphene extentensions for application page

Specified by:
initializePageExtensions in interface GrapheneInitializator

finalizeBrowser

public void finalizeBrowser()
Description copied from interface: GrapheneInitializator
Cleans browser window (by closing window or deleting all cookies)

Specified by:
finalizeBrowser in interface GrapheneInitializator

restartBrowser

public void restartBrowser()
Specified by:
restartBrowser in interface GrapheneSelenium

loadCustomLocationStrategies

protected void loadCustomLocationStrategies()

getExtensionsListFromResource

protected static List<String> getExtensionsListFromResource(String resourceName)
Loads the list of resource names from the given resource.

Parameters:
resourceName - the path to resource on classpath
Returns:
the list of resource names from the given resource.

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.