Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.locator
Class JQueryLocator

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
      extended by org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<T>
          extended by org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator<JQueryLocator>
              extended by org.jboss.arquillian.ajocado.locator.JQueryLocator
All Implemented Interfaces:
Iterable<JQueryLocator>, CompoundableLocator<JQueryLocator>, ElementLocator<JQueryLocator>, ExtendedLocator<JQueryLocator>, FilterableLocator<JQueryLocator>, IterableLocator<JQueryLocator>, Locator<JQueryLocator>, SeleniumRepresentable

public class JQueryLocator
extends AbstractIterableLocator<JQueryLocator>
implements ExtendedLocator<JQueryLocator>, FilterableLocator<JQueryLocator>

Locates the element using JQuery Selector syntax.

This syntax is extended in AjaxSelenium by new filters similar to :contains(text)

Version:
$Revision$
Author:
Lukas Fryc

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator
AbstractIterableLocator.ElementIterator
 
Constructor Summary
JQueryLocator(String jquerySelector)
          Instantiates a new jQuery locator.
 
Method Summary
 JQueryLocator filter(String extension)
           
 JQueryLocator format(Object... args)
           
 JQueryLocator get(int index)
           
 JQueryLocator getChild(JQueryLocator elementLocator)
           
 JQueryLocator getDescendant(JQueryLocator elementLocator)
           
 ElementLocationStrategy getLocationStrategy()
           
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractIterableLocator
iterator, size
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator
getAttribute
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.AbstractLocator
getRawLocator, inSeleniumRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.IterableLocator
iterator, size
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.element.ElementLocator
getAttribute
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getRawLocator
 
Methods inherited from interface org.jboss.arquillian.ajocado.selenium.SeleniumRepresentable
inSeleniumRepresentation
 

Constructor Detail

JQueryLocator

public JQueryLocator(String jquerySelector)
Instantiates a new jQuery locator.

Parameters:
jquerySelector - the jquery selector
Method Detail

getLocationStrategy

public ElementLocationStrategy getLocationStrategy()
Specified by:
getLocationStrategy in interface ElementLocator<JQueryLocator>
Specified by:
getLocationStrategy in interface Locator<JQueryLocator>

get

public JQueryLocator get(int index)
Specified by:
get in interface IterableLocator<JQueryLocator>

getChild

public JQueryLocator getChild(JQueryLocator elementLocator)
Specified by:
getChild in interface CompoundableLocator<JQueryLocator>

getDescendant

public JQueryLocator getDescendant(JQueryLocator elementLocator)
Specified by:
getDescendant in interface CompoundableLocator<JQueryLocator>

format

public JQueryLocator format(Object... args)
Specified by:
format in interface ElementLocator<JQueryLocator>
Specified by:
format in interface ExtendedLocator<JQueryLocator>
Specified by:
format in interface Locator<JQueryLocator>
Overrides:
format in class AbstractElementLocator<JQueryLocator>

filter

public JQueryLocator filter(String extension)
Specified by:
filter in interface FilterableLocator<JQueryLocator>

Graphene Implementation 1.0.0.CR3

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