org.aludratest.service.gui.component
Interface Checkbox

All Superinterfaces:
Element<Checkbox>, GUIComponent
All Known Implementing Classes:
CheckboxImpl

public interface Checkbox
extends Element<Checkbox>

Represents a checkbox in a GUI.

Author:
Joerg Langnickel, Volker Bergmann

Method Summary
 void assertChecked()
          Asserts that the checkbox is checked.
 void assertChecked(String text)
          Asserts that the checkbox is in the in the state expected by the passed text If the text is null or marked as null the operation is not executed.
 void deselect()
          Unselects the checkbox.
 boolean isChecked()
          Returns if the checkbox is currently checked or not.
 void select()
          Selects the checkbox.
 void select(String selectString)
          Selects or deselects a Checkbox due to overgiven String If the text is null or marked as null the operation is not executed.
 
Methods inherited from interface org.aludratest.service.gui.component.Element
assertEnabled, assertFocus, assertNotEnabled, assertNotPresent, assertPresent, assertVisible, click, click, doubleClick, focus, getLocator, isEnabled, isEnabled, isNotPresent, isNotPresent, isPresent, isPresent, isPresentAndInForeground, isVisible, isVisible, waitingUntilTaskCompletion, waitingUntilTaskCompletion
 

Method Detail

select

void select(String selectString)
Selects or deselects a Checkbox due to overgiven String If the text is null or marked as null the operation is not executed.

Parameters:
selectString -

select

void select()
Selects the checkbox.


deselect

void deselect()
Unselects the checkbox.


assertChecked

void assertChecked()
Asserts that the checkbox is checked.


assertChecked

void assertChecked(String text)
Asserts that the checkbox is in the in the state expected by the passed text If the text is null or marked as null the operation is not executed.

Parameters:
text - "true" or "false". Anything else (non-null) will be interpreted as false

isChecked

boolean isChecked()
Returns if the checkbox is currently checked or not.

Returns:
true if the checkbox is currently checked (has a checkmark in its box), false otherwise.


Copyright © 2015 aludratest.org. All rights reserved.