Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.locator
Class CssLocator

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
      extended by org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator<CssLocator>
          extended by org.jboss.arquillian.ajocado.locator.CssLocator
All Implemented Interfaces:
CompoundableLocator<CssLocator>, ElementLocator<CssLocator>, Locator<CssLocator>, SeleniumRepresentable

public class CssLocator
extends AbstractElementLocator<CssLocator>
implements CompoundableLocator<CssLocator>

A element locator using CSS selectors.

Can be used to compose new locators.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
CssLocator(String cssSelector)
          Initiates element locator by using CSS selectors.
 
Method Summary
 CssLocator getChild(CssLocator elementLocator)
           
 CssLocator getDescendant(CssLocator elementLocator)
           
 ElementLocationStrategy getLocationStrategy()
           
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.element.AbstractElementLocator
format, 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.ElementLocator
format, 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

CssLocator

public CssLocator(String cssSelector)
Initiates element locator by using CSS selectors.

Parameters:
cssSelector - CSS selector
Method Detail

getLocationStrategy

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

getChild

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

getDescendant

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

Graphene Implementation 1.0.0.CR3

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