public final class Form extends org.testatoo.core.component.Component implements Coreattrs, I18n, org.testatoo.core.nature.Container
| Constructor and Description |
|---|
Form(HtmlEvaluator evaluator,
String id)
Class constructor specifying the evaluator to use and the id of the "form" element we want to test.
|
| Modifier and Type | Method and Description |
|---|---|
String |
accept()
To get the accept attribute of the form.
|
String |
acceptCharset()
To get the acceptcharset attribute of the form.
|
String |
action()
To get the action attribute of the form.
|
String |
classname()
To get the class attribute of an html element
|
Boolean |
contains(org.testatoo.core.component.Component... components)
To know if the form contains all the given components.
|
Direction |
direction()
To get the direction attribute of the html element
|
String |
enctype()
To get the enctype attribute of the form (when method is post).
|
String |
language()
To get the language attribute of the html element
|
Method |
method()
To get the method attribute of the form (get or post).
|
String |
name()
To get the name attribute of the form.
|
void |
reset()
To reset the form
|
String |
style()
To get the style attribute of an html element
|
void |
submit()
To submit the form
|
String |
title()
To get the title attribute of an html element
|
String |
toString()
To get the string describing the form
|
checkIsExpectedComponent, equals, hasFocus, hashCode, id, isDisabled, isEnabled, isVisiblepublic Form(HtmlEvaluator evaluator, String id)
evaluator - a UI Test engine specific html evaluatorid - the id (unique) of the "form" elementorg.testatoo.core.ComponentException - if the given id does not correspond to a "form" elementpublic String classname()
Coreattrsclassname in interface CoreattrsCoreAttributeSupportpublic String style()
Coreattrsstyle in interface CoreattrsCoreAttributeSupportpublic String title()
Coreattrstitle in interface CoreattrsCoreAttributeSupportpublic String language()
I18nlanguage in interface I18nI18nAttributeSupportpublic Direction direction()
I18ndirection in interface I18nI18nAttributeSupportpublic Boolean contains(org.testatoo.core.component.Component... components)
contains in interface org.testatoo.core.nature.Containercomponents - components we want to know if contained in the formpublic String action()
public void reset()
public void submit()
public Method method()
public String enctype()
public String accept()
public String name()
public String acceptCharset()
public String toString()
toString in class org.testatoo.core.component.ComponentCopyright © 2008-2012 Ovea. All Rights Reserved.