org.jboss.test.selenium.locator.option
Class OptionLabelLocator

java.lang.Object
  extended by org.jboss.test.selenium.locator.AbstractLocator<T>
      extended by org.jboss.test.selenium.locator.option.AbstractOptionLocator<OptionLabelLocator>
          extended by org.jboss.test.selenium.locator.option.OptionLabelLocator
All Implemented Interfaces:
Locator<OptionLabelLocator>, OptionLocator<OptionLabelLocator>

public class OptionLabelLocator
extends AbstractOptionLocator<OptionLabelLocator>

Locates select options based on their labels, i.e. the visible text.

Can be regular expression: "regexp:^[Oo]ther"

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
OptionLabelLocator(String label)
           
 
Method Summary
 OptionLocationStrategy getLocationStrategy()
          Returns the location strategy for this element
 
Methods inherited from class org.jboss.test.selenium.locator.AbstractLocator
format, 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
format, getAsString, getRawLocator
 

Constructor Detail

OptionLabelLocator

public OptionLabelLocator(String label)
Method Detail

getLocationStrategy

public OptionLocationStrategy 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.