org.openqa.selenium
Class By.ByCssSelector

java.lang.Object
  extended by org.openqa.selenium.By
      extended by org.openqa.selenium.By.ByCssSelector
Enclosing class:
By

public static class By.ByCssSelector
extends By


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openqa.selenium.By
By.ByClassName, By.ByCssSelector, By.ById, By.ByLinkText, By.ByName, By.ByPartialLinkText, By.ByTagName, By.ByXPath
 
Constructor Summary
By.ByCssSelector(java.lang.String selector)
           
 
Method Summary
 WebElement findElement(SearchContext context)
          Find a single element.
 java.util.List<WebElement> findElements(SearchContext context)
          Find many elements.
 java.lang.String toString()
           
 
Methods inherited from class org.openqa.selenium.By
className, cssSelector, equals, hashCode, id, linkText, name, partialLinkText, tagName, xpath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

By.ByCssSelector

public By.ByCssSelector(java.lang.String selector)
Method Detail

findElement

public WebElement findElement(SearchContext context)
Description copied from class: By
Find a single element. Override this method if necessary.

Overrides:
findElement in class By
Parameters:
context - A context to use to find the element
Returns:
The WebElement that matches the selector

findElements

public java.util.List<WebElement> findElements(SearchContext context)
Description copied from class: By
Find many elements.

Specified by:
findElements in class By
Parameters:
context - A context to use to find the element
Returns:
A list of WebElements matching the selector

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.