org.aludratest.service.gui
Interface GUICondition

All Superinterfaces:
Action, Condition
All Known Subinterfaces:
WebGUICondition
All Known Implementing Classes:
Selenium1Condition, Selenium2Condition

public interface GUICondition
extends Condition

Extends the Condition interface providing GUI related features.

Author:
Marcel Malitz, Volker Bergmann

Method Summary
 boolean containsLabels(String elementType, String elementName, GUIElementLocator locator, String... labels)
          Determines if the speficied element contains the given labels (and possibly more).
 boolean equalsLabels(String elementType, String elementName, GUIElementLocator locator, String... labels)
          Determines if the speficied element contains the given labels (and only these), in the same order as specified.
 boolean isElementChecked(String elementType, String elementName, GUIElementLocator locator)
          Determines if the specified element is checked.
 boolean isElementEditable(String elementType, String elementName, GUIElementLocator locator)
          Determines whether the specified input element is editable, i.e. is not disabled and would accept user text input.
 boolean isElementEditable(String elementType, String elementName, GUIElementLocator locator, long timeout)
          Determines whether the specified input element is editable within the given timeout, i.e. is not disabled and would accept user text input.
 boolean isElementEnabled(String elementType, String elementName, GUIElementLocator locator)
          Determines whether the specified input element is enabled, ie hasn't been disabled.
 boolean isElementEnabled(String elementType, String elementName, GUIElementLocator locator, long timeout)
          Determines whether the specified input element is enabled in the over given timeout, ie hasn't been disabled.
 boolean isElementNotPresent(String elementType, String elementName, GUIElementLocator locator)
          Determines that the specified element is not on the page
 boolean isElementNotPresent(String elementType, String elementName, GUIElementLocator locator, long timeout)
          Determines that the specified element is not on the page within timeout
 boolean isElementPresent(String elementType, String elementName, GUIElementLocator locator)
          Determines that the specified element is somewhere on the page in a given timeout
 boolean isElementPresent(String elementType, String elementName, GUIElementLocator locator, long timeout)
          Determines that the specified element is somewhere on the page in a given timeout
 boolean isElementPresentandInForeground(String elementType, String elementName, GUIElementLocator locator)
          Determines that the specified element is somewhere on the page and in foreground
 boolean isElementVisible(String elementType, String elementName, GUIElementLocator locator)
          Determines if the specified element is visible.
 boolean isElementVisible(String elementType, String elementName, GUIElementLocator locator, long timeout)
          Determines if the specified element is visible within timeout
 boolean isWindowOpen(String elementType, String elementName, WindowLocator locator)
          Determines if a specified window is open
 
Methods inherited from interface org.aludratest.service.Action
createAttachments, createDebugAttachments, setSystemConnector
 

Method Detail

isElementPresent

boolean isElementPresent(String elementType,
                         String elementName,
                         GUIElementLocator locator)
Determines that the specified element is somewhere on the page in a given timeout


isElementVisible

boolean isElementVisible(String elementType,
                         String elementName,
                         GUIElementLocator locator)
Determines if the specified element is visible.


isElementEnabled

boolean isElementEnabled(String elementType,
                         String elementName,
                         GUIElementLocator locator)
Determines whether the specified input element is enabled, ie hasn't been disabled.


isElementEditable

boolean isElementEditable(String elementType,
                          String elementName,
                          GUIElementLocator locator)
Determines whether the specified input element is editable, i.e. is not disabled and would accept user text input.

Parameters:
elementType - Type of the element, depending on the implementation.
elementName - Name of the element.
locator - Locator of the element.
Returns:
true if the element is editable, false otherwise.

isElementEditable

boolean isElementEditable(String elementType,
                          String elementName,
                          GUIElementLocator locator,
                          long timeout)
Determines whether the specified input element is editable within the given timeout, i.e. is not disabled and would accept user text input.

Parameters:
elementType - Type of the element, depending on the implementation.
elementName - Name of the element.
locator - Locator of the element.
timeout - Timeout to use.
Returns:
true if the element is editable, false otherwise.

isElementNotPresent

boolean isElementNotPresent(String elementType,
                            String elementName,
                            GUIElementLocator locator)
Determines that the specified element is not on the page


isElementPresent

boolean isElementPresent(String elementType,
                         String elementName,
                         GUIElementLocator locator,
                         long timeout)
Determines that the specified element is somewhere on the page in a given timeout


isElementVisible

boolean isElementVisible(String elementType,
                         String elementName,
                         GUIElementLocator locator,
                         long timeout)
Determines if the specified element is visible within timeout


isElementEnabled

boolean isElementEnabled(String elementType,
                         String elementName,
                         GUIElementLocator locator,
                         long timeout)
Determines whether the specified input element is enabled in the over given timeout, ie hasn't been disabled.


isElementNotPresent

boolean isElementNotPresent(String elementType,
                            String elementName,
                            GUIElementLocator locator,
                            long timeout)
Determines that the specified element is not on the page within timeout


isWindowOpen

boolean isWindowOpen(String elementType,
                     String elementName,
                     WindowLocator locator)
Determines if a specified window is open


isElementPresentandInForeground

boolean isElementPresentandInForeground(String elementType,
                                        String elementName,
                                        GUIElementLocator locator)
Determines that the specified element is somewhere on the page and in foreground


isElementChecked

boolean isElementChecked(String elementType,
                         String elementName,
                         GUIElementLocator locator)
Determines if the specified element is checked. This normally only applies to checkboxes.

Parameters:
elementType - Type of the element.
elementName - Name of the element.
locator - Locator of the element.
Returns:
true if the element is checked, false otherwise.

containsLabels

boolean containsLabels(String elementType,
                       String elementName,
                       GUIElementLocator locator,
                       String... labels)
Determines if the speficied element contains the given labels (and possibly more).

Parameters:
elementType - Type of the element.
elementName - Name of the element.
locator - Locator of the element.
labels - Labels which are expected in the element.
Returns:
true if the labels were found in the element, false otherwise.

equalsLabels

boolean equalsLabels(String elementType,
                     String elementName,
                     GUIElementLocator locator,
                     String... labels)
Determines if the speficied element contains the given labels (and only these), in the same order as specified.

Parameters:
elementType - Type of the element.
elementName - Name of the element.
locator - Locator of the element.
labels - Labels which are expected in the element.
Returns:
true if the labels equal all labels found in the element, false otherwise.


Copyright © 2015 aludratest.org. All rights reserved.