Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.locator.option
Class OptionLocatorFactory

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.option.OptionLocatorFactory

public final class OptionLocatorFactory
extends Object

Utility class simplifying creation of option locators of various types providing it's factories.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
static OptionIdLocator optionId(String id)
          Locates the select option with specified id.
static OptionIndexLocator optionIndex(int index)
          Locates the select option based on its index (offset from zero).
static OptionLabelLocator optionLabel(String label)
           Locates select options based on their labels, i.e.
static OptionValueLocator optionValue(String value)
          Locates select options based on their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

optionId

public static OptionIdLocator optionId(String id)
Locates the select option with specified id.

Parameters:
id - the id of select option
Returns:
the locator for the select option with given id

optionIndex

public static OptionIndexLocator optionIndex(int index)
Locates the select option based on its index (offset from zero).

Parameters:
index - the index of select option (offset from zero)
Returns:
the locator for the select option with given id

optionLabel

public static OptionLabelLocator optionLabel(String label)

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

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

Parameters:
label - the label for the select options (visible text).
Returns:
the locator for the select options matching given label

optionValue

public static OptionValueLocator optionValue(String value)
Locates select options based on their values.

Parameters:
value - the value matching select options
Returns:
the locator for the select options matching given value

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.