org.jboss.test.selenium.locator
Class NameLocator

java.lang.Object
  extended by org.jboss.test.selenium.locator.AbstractLocator<T>
      extended by org.jboss.test.selenium.locator.AbstractElementLocator<NameLocator>
          extended by org.jboss.test.selenium.locator.NameLocator
All Implemented Interfaces:
ElementLocator<NameLocator>, Locator<NameLocator>

public class NameLocator
extends AbstractElementLocator<NameLocator>

Locates the first element with the specified @name attribute.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
NameLocator(String name)
           
 
Method Summary
 ElementLocationStrategy getLocationStrategy()
          Returns the location strategy for this element
 
Methods inherited from class org.jboss.test.selenium.locator.AbstractElementLocator
format, getAttribute
 
Methods inherited from class org.jboss.test.selenium.locator.AbstractLocator
getAsString, getRawLocator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.test.selenium.locator.Locator
getAsString, getRawLocator
 

Constructor Detail

NameLocator

public NameLocator(String name)
Method Detail

getLocationStrategy

public ElementLocationStrategy getLocationStrategy()
Description copied from interface: Locator
Returns the location strategy for this element

Returns:
the location strategy for this element


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.