public class CssLocator extends AbstractElementLocator<CssLocator> implements CompoundableLocator<CssLocator>
A element locator using CSS selectors.
Can be used to compose new locators.
| Constructor and Description |
|---|
CssLocator(String cssSelector)
Initiates element locator by using CSS selectors.
|
| Modifier and Type | Method and Description |
|---|---|
CssLocator |
getChild(CssLocator elementLocator) |
CssLocator |
getDescendant(CssLocator elementLocator) |
ElementLocationStrategy |
getLocationStrategy() |
format, getAttributegetRawLocator, inSeleniumRepresentation, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitformat, getAttributegetRawLocatorinSeleniumRepresentationpublic CssLocator(String cssSelector)
cssSelector - CSS selectorpublic ElementLocationStrategy getLocationStrategy()
getLocationStrategy in interface ElementLocator<CssLocator>getLocationStrategy in interface Locator<CssLocator>public CssLocator getChild(CssLocator elementLocator)
getChild in interface CompoundableLocator<CssLocator>public CssLocator getDescendant(CssLocator elementLocator)
getDescendant in interface CompoundableLocator<CssLocator>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.