org.openqa.selenium.support
Class ByIdOrName

java.lang.Object
  extended by org.openqa.selenium.By
      extended by org.openqa.selenium.support.ByIdOrName

public class ByIdOrName
extends By


Constructor Summary
ByIdOrName(java.lang.String idOrName)
           
 
Method Summary
 WebElement findElement(SearchContext context)
           
 java.util.List<WebElement> findElements(SearchContext context)
           
 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

ByIdOrName

public ByIdOrName(java.lang.String idOrName)
Method Detail

findElement

public WebElement findElement(SearchContext context)
Overrides:
findElement in class By

findElements

public java.util.List<WebElement> findElements(SearchContext context)
Specified by:
findElements in class By

toString

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


Copyright © 2010. All Rights Reserved.