|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||
Contains methods for HTML objects lookup.
| Method Summary | |
Button |
button(int index)
Returns button within this page by specified index. |
Button |
button(java.lang.String nameOrId)
Searches for a button with specified name or id. |
Button |
button(java.lang.String nameOrId,
int index)
Searches for a buttons with specified name/id and returns button having specified index. |
Button |
buttonByText(java.lang.String buttonCaption)
The search is done by visible button caption text: this means that for <button> tags this is a text within button and for all other types of button this is a text within button value. |
Checkbox |
checkbox(java.lang.String nameOrId)
Searches for checkbox with specified name or id attribute |
Checkbox |
checkbox(java.lang.String nameOrId,
java.lang.String value)
Searches for checkbox with specified name/id and value |
Checkbox[] |
checkboxes(java.lang.String nameOrId)
Searches for checkboxes with specified nameOrId or id attribute |
FileField |
fileField(java.lang.String nameOrId)
Searches for a file field with specified name or id. |
FileField |
fileField(java.lang.String nameOrId,
int index)
Searches for a file fields with specified name or id and returns field with specified order index. |
FileField[] |
fileFields(java.lang.String nameOrId)
Returns all file fields with specified name or id. |
Image |
image(java.lang.String nameOrId)
Searches for image or image button by name or id attribute value. |
Image |
imageByAlt(java.lang.String altText)
Searches for image or image button by alt attribute value. |
Image |
imageByURL(java.lang.String url)
Searches for image or image button by specified url. |
ImageMap |
imageMap(int idx)
Returns map by index on a page. |
ImageMap |
imageMap(java.lang.String nameOrId)
Searches for map by name or id attribute value. |
ImageMap[] |
imageMaps()
Returns all HTML maps found on a page. |
Image[] |
images()
Returns all images and image buttons. |
Link |
link(int index)
Returns link contained in this page by its index. |
Link |
linkById(java.lang.String id)
Searches for link by specified id attribute. |
Link |
linkByText(java.lang.String linkText)
Searches for link having specified text. |
Link |
linkByTitle(java.lang.String title)
Searches for link by title attribute value. |
Link[] |
links()
Returns all links. |
MultipleSelect |
multiSelect(java.lang.String nameOrId)
Searches for HTML multiple select with specified name or id attribute. |
PasswordField |
passwordField(java.lang.String nameOrId)
Searches for a password field with specified name or id. |
RadioButton |
radioButton(java.lang.String groupNameOrId,
int index)
Searches for group of radio buttons with specified name or id and returns radio button with specified index. |
RadioButton |
radioButton(java.lang.String groupNameOrId,
java.lang.String value)
Searches for radio button with specified name/id and value. |
RadioButton[] |
radioButtons(java.lang.String groupNameOrId)
Searches for group of radio buttons with specified name or id attribute |
SingleSelect |
singleSelect(java.lang.String nameOrId)
Searches for HTML single select (drop down) with specified name or id attribute. |
Table |
table(int index)
Returns table by index on a page. |
Table |
tableById(java.lang.String id)
Searches for table having specified value in id attribute. |
Table |
tableByText(java.lang.String textInCell)
Returns table having containing specified text in one of it's cells. |
Textarea |
textarea(java.lang.String nameOrId)
Searches for a textarea with specified name or id. |
TextField |
textField(java.lang.String nameOrId)
Searches for a text field with specified name or id. |
TextField |
textField(java.lang.String nameOrId,
int index)
Searches for a text fields with specified name or id and returns field with specified index. |
TextField[] |
textFields(java.lang.String nameOrId)
Returns all text fields with specified name or id. |
| Method Detail |
public TextField textField(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a text field
LookupException - if text field was not found
public TextField textField(java.lang.String nameOrId,
int index)
throws LookupException
nameOrId - name or id of a text fieldindex - index of a field with specified name or id to return, starts from zero
LookupException - if text field was not found
public TextField[] textFields(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a text field
LookupException - if there are no text fields with specified name or id
public PasswordField passwordField(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a password field
LookupException - if password field was not found
public Textarea textarea(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a textarea
LookupException - if textarea was not found
public FileField fileField(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a file field
LookupException - if file field was not found
public FileField fileField(java.lang.String nameOrId,
int index)
throws LookupException
nameOrId - name or id of a fieldindex - index of a field with specified name or id to return, starts from zero
LookupException - if file field was not found
public FileField[] fileFields(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a file field
LookupException - if there are no file fields with specified name or id
public Link link(int index)
throws LookupException
index - index of link on the page, starting from zero
LookupException - if link was not found.
public Link linkByText(java.lang.String linkText)
throws LookupException
linkText - text link should contain
LookupException - if link was not found
public Link linkById(java.lang.String id)
throws LookupException
id - value of id attribute
LookupException - if link was not found
public Link linkByTitle(java.lang.String title)
throws LookupException
title - value of title attribute
LookupException - if link was not foundpublic Link[] links()
public Button button(int index)
throws LookupException
index - index of a button among other buttons
LookupException - if button was not found
public Button button(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id of a button
LookupException - if button was not found
public Button button(java.lang.String nameOrId,
int index)
throws LookupException
nameOrId - name or id of a buttonindex - index of a button among other buttons with same name/id
LookupException - if button was not found
public Button buttonByText(java.lang.String buttonCaption)
throws LookupException
buttonCaption - visible caption of a button
LookupException - if button was not found
public Checkbox checkbox(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id attribute value
LookupException - if checkbox was not foundpublic Checkbox[] checkboxes(java.lang.String nameOrId)
nameOrId - name or id attribute value
LookupException - if there are no checkboxes with specified name or id
public Checkbox checkbox(java.lang.String nameOrId,
java.lang.String value)
nameOrId - name or id of checkboxvalue - value of checkbox
LookupException - if checkbox was not found
public RadioButton radioButton(java.lang.String groupNameOrId,
int index)
throws LookupException
groupNameOrId - name or id attribute valueindex - index of a radio button with specified name or id to return, starts from zero
LookupException - if radio button was not found
public RadioButton radioButton(java.lang.String groupNameOrId,
java.lang.String value)
throws LookupException
groupNameOrId - name or id of radio buttonvalue - value of radio button in the group
LookupException - if radio button was not found
public RadioButton[] radioButtons(java.lang.String groupNameOrId)
throws LookupException
groupNameOrId - name or id attribute value
LookupException - if there are no radio buttons with specified name or id
public SingleSelect singleSelect(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id attribute value
LookupException - if drop down was not found
public MultipleSelect multiSelect(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id attribute value
LookupException - if multiple select was not found
public Table table(int index)
throws LookupException
index - index of table among other not nested tables on a page, starting from zero.
LookupException - if table was not found
public Table tableByText(java.lang.String textInCell)
throws LookupException
textInCell - text expected to be in the table cell
LookupException - if table was not found
public Table tableById(java.lang.String id)
throws LookupException
id - value of id attribute
LookupException - if table was not found
public Image image(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id attribute value
LookupException - if image was not found
public Image imageByAlt(java.lang.String altText)
throws LookupException
altText - text within alt attribute
LookupException - if image was not found
public Image imageByURL(java.lang.String url)
throws LookupException,
java.lang.IllegalArgumentException
Image location will be calculated from location of the current page and value specified in src attribute (if src contains servlet session id - it will be ignored).
url - absolute or relative url of searched image
LookupException - if image was not found
java.lang.IllegalArgumentException - if url is null, or url is relative and current base URL is null.public Image[] images()
public ImageMap imageMap(java.lang.String nameOrId)
throws LookupException
nameOrId - name or id attribute value
LookupException - if map was not found
public ImageMap imageMap(int idx)
throws LookupException
idx - index of map among other maps on a page, starting from zero.
LookupException - if map was not foundpublic ImageMap[] imageMaps()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||