|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.canoo.webtest.util.FormUtil
public class FormUtil
Utilities for working with forms.
| Constructor Summary | |
|---|---|
FormUtil()
|
|
| Method Summary | |
|---|---|
static com.gargoylesoftware.htmlunit.html.HtmlForm |
findFormByIndex(com.gargoylesoftware.htmlunit.html.HtmlPage currentResp,
String indexStr)
|
static com.gargoylesoftware.htmlunit.html.HtmlForm |
findFormByName(com.gargoylesoftware.htmlunit.html.HtmlPage currentResp,
String name)
|
static com.gargoylesoftware.htmlunit.html.HtmlForm |
findFormForField(Context context,
String givenFormName,
String tag,
String type,
String name,
Step step)
Gets the form from the current response containing the desired field. |
static com.gargoylesoftware.htmlunit.html.HtmlForm |
findFormForTextField(Context context,
String givenFormName,
String name,
Step step)
Gets the form from the current response containing the desired text field. |
static boolean |
hasTextField(com.gargoylesoftware.htmlunit.html.HtmlForm form,
String name)
Indicates if the form has a "text field" (text, password or textarea) with the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormUtil()
| Method Detail |
|---|
public static boolean hasTextField(com.gargoylesoftware.htmlunit.html.HtmlForm form,
String name)
public static com.gargoylesoftware.htmlunit.html.HtmlForm findFormForField(Context context,
String givenFormName,
String tag,
String type,
String name,
Step step)
context - givenFormName - tag - the html tag corresponding to the fieldtype - the type of the input field (html attribute "type") if tag is "input"name - the name of the input field (html attribute "name")step -
null if no form found.
public static com.gargoylesoftware.htmlunit.html.HtmlForm findFormForTextField(Context context,
String givenFormName,
String name,
Step step)
context - givenFormName - name - the name of the text field of interest (<input type="text"...> or
<input type="password" ...> or <textarea ...>...</textarea>)step -
null if no form found.
public static com.gargoylesoftware.htmlunit.html.HtmlForm findFormByName(com.gargoylesoftware.htmlunit.html.HtmlPage currentResp,
String name)
public static com.gargoylesoftware.htmlunit.html.HtmlForm findFormByIndex(com.gargoylesoftware.htmlunit.html.HtmlPage currentResp,
String indexStr)
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||