org.aludratest.service.gui.component
Interface GUIComponentFactory

All Known Implementing Classes:
DefaultGUIComponentFactory

public interface GUIComponentFactory

Factory for creating components for a GUI service. You can retrieve the component factory for a given guiService by calling

 guiService.getComponentFactory();
 

Author:
falbrech

Method Summary
 Button createButton(GUIElementLocator locator)
          Creates a new Button component for the given locator.
 Button createButton(GUIElementLocator locator, String elementName)
          Creates a new Button component for the given locator, carrying the given element name.
 Checkbox createCheckbox(GUIElementLocator locator)
          Creates a new Checkbox component for the given locator.
 Checkbox createCheckbox(GUIElementLocator locator, String elementName)
          Creates a new Checkbox component for the given locator, carrying the given element name.
 Dropdownbox createDropdownbox(GUIElementLocator locator)
          Creates a new Dropdownbox component for the given locator.
 Dropdownbox createDropdownbox(GUIElementLocator locator, String elementName)
          Creates a new Dropdownbox component for the given locator, carrying the given element name.
 FileField createFileField(GUIElementLocator locator)
          Creates a new FileField component for the given locator.
 FileField createFileField(GUIElementLocator locator, String elementName)
          Creates a new FileField component for the given locator, carrying the given element name.
 GenericElement createGenericElement(GUIElementLocator locator)
          Creates a new generic element component for the given locator.
 GenericElement createGenericElement(GUIElementLocator locator, String elementName)
          Creates a new generic element component for the given locator, carrying the given element name.
 InputField createInputField(GUIElementLocator locator)
          Creates a new InputField component for the given locator.
 InputField createInputField(GUIElementLocator locator, String elementName)
          Creates a new InputField component for the given locator, carrying the given element name.
 Label createLabel(GUIElementLocator locator)
          Creates a new Label component for the given locator.
 Label createLabel(GUIElementLocator locator, String elementName)
          Creates a new Label component for the given locator, carrying the given element name.
 Link createLink(GUIElementLocator locator)
          Creates a new Link component for the given locator.
 Link createLink(GUIElementLocator locator, String elementName)
          Creates a new Link component for the given locator, carrying the given element name.
 RadioButton createRadioButton(GUIElementLocator locator)
          Creates a new RadioButton component for the given locator.
 RadioButton createRadioButton(GUIElementLocator locator, String elementName)
          Creates a new RadioButton component for the given locator, carrying the given element name.
 Window createWindow(TitleLocator locator)
          Creates a new Window component for the given locator.
 Window createWindow(TitleLocator locator, String elementName)
          Creates a new Window component for the given locator, carrying the given element name.
 

Method Detail

createButton

Button createButton(GUIElementLocator locator)
Creates a new Button component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new Button component for the given locator.

createButton

Button createButton(GUIElementLocator locator,
                    String elementName)
Creates a new Button component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new Button component for the given locator.

createCheckbox

Checkbox createCheckbox(GUIElementLocator locator)
Creates a new Checkbox component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new Checkbox component for the given locator.

createCheckbox

Checkbox createCheckbox(GUIElementLocator locator,
                        String elementName)
Creates a new Checkbox component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new Checkbox component for the given locator.

createDropdownbox

Dropdownbox createDropdownbox(GUIElementLocator locator)
Creates a new Dropdownbox component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new Dropdownbox component for the given locator.

createDropdownbox

Dropdownbox createDropdownbox(GUIElementLocator locator,
                              String elementName)
Creates a new Dropdownbox component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new Dropdownbox component for the given locator.

createFileField

FileField createFileField(GUIElementLocator locator)
Creates a new FileField component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new FileField component for the given locator.

createFileField

FileField createFileField(GUIElementLocator locator,
                          String elementName)
Creates a new FileField component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new FileField component for the given locator.

createInputField

InputField createInputField(GUIElementLocator locator)
Creates a new InputField component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new InputField component for the given locator.

createInputField

InputField createInputField(GUIElementLocator locator,
                            String elementName)
Creates a new InputField component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new InputField component for the given locator.

createLabel

Label createLabel(GUIElementLocator locator)
Creates a new Label component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new Label component for the given locator.

createLabel

Label createLabel(GUIElementLocator locator,
                  String elementName)
Creates a new Label component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new Label component for the given locator.

createLink

Link createLink(GUIElementLocator locator)
Creates a new Link component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new Link component for the given locator.

createLink

Link createLink(GUIElementLocator locator,
                String elementName)
Creates a new Link component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new Link component for the given locator.

createRadioButton

RadioButton createRadioButton(GUIElementLocator locator)
Creates a new RadioButton component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new RadioButton component for the given locator.

createRadioButton

RadioButton createRadioButton(GUIElementLocator locator,
                              String elementName)
Creates a new RadioButton component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new RadioButton component for the given locator.

createWindow

Window createWindow(TitleLocator locator)
Creates a new Window component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new Window component for the given locator.

createWindow

Window createWindow(TitleLocator locator,
                    String elementName)
Creates a new Window component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new Window component for the given locator.

createGenericElement

GenericElement createGenericElement(GUIElementLocator locator)
Creates a new generic element component for the given locator.

Parameters:
locator - Locator for the new component.
Returns:
A new generic element component for the given locator.

createGenericElement

GenericElement createGenericElement(GUIElementLocator locator,
                                    String elementName)
Creates a new generic element component for the given locator, carrying the given element name.

Parameters:
locator - Locator for the new component.
elementName - Element name for the new component.
Returns:
A new generic element component for the given locator.


Copyright © 2015 aludratest.org. All rights reserved.