org.jboss.arquillian.ajocado.locator
Class CssLocator
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
org.jboss.arquillian.ajocado.locator.AbstractElementLocator<CssLocator>
org.jboss.arquillian.ajocado.locator.CssLocator
- All Implemented Interfaces:
- CompoundableLocator<CssLocator>, ElementLocator<CssLocator>, Locator<CssLocator>
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. |
CssLocator
public CssLocator(String cssSelector)
- Initiates element locator by using CSS selectors.
- Parameters:
cssSelector - CSS selector
getLocationStrategy
public ElementLocationStrategy getLocationStrategy()
- Specified by:
getLocationStrategy in interface ElementLocator<CssLocator>- Specified by:
getLocationStrategy in interface Locator<CssLocator>
getChild
public CssLocator getChild(CssLocator elementLocator)
- Description copied from interface:
CompoundableLocator
- Gets a child of this locator by composing this locator with given elementLocator.
- Specified by:
getChild in interface CompoundableLocator<CssLocator>
- Parameters:
elementLocator - are added to this locator to compose new compount locator
- Returns:
- the composed locator for this locator with added elementLocator
getDescendant
public CssLocator getDescendant(CssLocator elementLocator)
- Description copied from interface:
CompoundableLocator
- Gets a descendant of this locator by composing this locator with given elementLocator.
- Specified by:
getDescendant in interface CompoundableLocator<CssLocator>
- Parameters:
elementLocator - are added to this locator to compose new compound locator
- Returns:
- the composed locator for this locator with added elementLocator
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.