| java.lang.Object org.uispec4j.AbstractUIComponent org.uispec4j.TextBox
All known Subclasses: org.uispec4j.TextBoxHandlerForLabel, org.uispec4j.AbstractTextBoxHandlerForTextComponent,
Inner Class :interface Handler | |
SWING_CLASSES | final public static Class[] SWING_CLASSES(Code) | | |
clickOnHyperlink | public void clickOnHyperlink(String link)(Code) | | Simulates a click on an hyperlink given a part of the link text.
An exception will be thrown if zero or more than one hyperlinks are
found with this text.
|
getDescriptionTypeName | public String getDescriptionTypeName()(Code) | | |
htmlEquals | public Assertion htmlEquals(String html)(Code) | | Checks the displayed text in cases where HTML text is used. This is
different from
TextBox.textIsEmpty() in that whitespaces, carriage return
and other formatting adjustments are ignored.
|
iconEquals | public Assertion iconEquals(Icon icon)(Code) | | Checks the icon displayed by the component. Please note that equals()
not being defined for Icon implementations, you will have to provide a pointer
to the actual Icon instance that is used in the production code. This make
this method mostly suited to unit testing.
|
insertText | public void insertText(String text, int position)(Code) | | Inserts text at the given position without pressing Enter.
|
pressKey | public void pressKey(Key key)(Code) | | Simulates pressing a key while the focus is in the text box.
Warning: the default cursor position is 0.
|
setText | public void setText(String text)(Code) | | Replaces the text box contents and simulates pressing the Enter key.
|
textContains | public Assertion textContains(String[] orderedTexts)(Code) | | Checks that the text box contains a number of substrings, in a given order.
This method is useful for checking key information in the displayed string,
without being too dependent on the actual wording.
|
|
|