Ajocado API 1.0.0.Alpha2

org.jboss.arquillian.ajocado.locator
Class ElementLocationStrategy

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocationStrategy
      extended by org.jboss.arquillian.ajocado.locator.ElementLocationStrategy
All Implemented Interfaces:
LocationStrategy

public class ElementLocationStrategy
extends AbstractLocationStrategy

Strategy for locating element on the page.

Version:
$Revision$
Author:
Lukas Fryc

Field Summary
static ElementLocationStrategy CSS
          Strategy for locating by CSS selectors.
static ElementLocationStrategy DOM
          Strategy for locating by given JavaScript expression.
static ElementLocationStrategy ID
          Strategy for locating elements by given id attribute.
static ElementLocationStrategy IDENTIFIER
          Strategy for locating elements by given id or by name as a fallback
static ElementLocationStrategy JQUERY
          Strategy for locating elements using JQuery Selector syntax.
static ElementLocationStrategy LINK
          Strategy for locating elements by text of the link (anchor)
static ElementLocationStrategy NAME
          Strategy for locating elements by given name attribute.
static ElementLocationStrategy XPATH
          Strategy for locating elements by given xpath xpression.
 
Constructor Summary
ElementLocationStrategy(String strategyName)
           
 
Method Summary
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.AbstractLocationStrategy
getStrategyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSS

public static final ElementLocationStrategy CSS
Strategy for locating by CSS selectors.


DOM

public static final ElementLocationStrategy DOM
Strategy for locating by given JavaScript expression.


IDENTIFIER

public static final ElementLocationStrategy IDENTIFIER
Strategy for locating elements by given id or by name as a fallback


ID

public static final ElementLocationStrategy ID
Strategy for locating elements by given id attribute.


JQUERY

public static final ElementLocationStrategy JQUERY
Strategy for locating elements using JQuery Selector syntax.


LINK

public static final ElementLocationStrategy LINK
Strategy for locating elements by text of the link (anchor)


NAME

public static final ElementLocationStrategy NAME
Strategy for locating elements by given name attribute.


XPATH

public static final ElementLocationStrategy XPATH
Strategy for locating elements by given xpath xpression.

Constructor Detail

ElementLocationStrategy

public ElementLocationStrategy(String strategyName)

Ajocado API 1.0.0.Alpha2

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