br.com.caelum.seleniumdsl
Interface Form


public interface Form


Method Summary
 Form check(String checkbox)
          Checks a checkbox
 void click(String element)
          Clicks something on the page
 Field field(String field)
           
 boolean isChecked(String checkbox)
           
 SelectField selectField(String selectField)
           
 void submit()
          Submits this form
 Form uncheck(String checkbox)
          Unchecks a checkbox
 

Method Detail

field

Field field(String field)
Parameters:
field - the field's name or id
Returns:
the Field

click

void click(String element)
Clicks something on the page

Parameters:
element - can be the element ID, name or an xpath expression

selectField

SelectField selectField(String selectField)
Parameters:
selectField - the select's name or id
Returns:
the SelectField

check

Form check(String checkbox)
Checks a checkbox

Parameters:
checkbox - the input's name or id
Returns:
the Form

uncheck

Form uncheck(String checkbox)
Unchecks a checkbox

Parameters:
checkbox - the input's name or id
Returns:
the Form

isChecked

boolean isChecked(String checkbox)
Parameters:
checkbox - the input's name or id
Returns:
if the checkbox is checked

submit

void submit()
Submits this form



Copyright © 2008. All Rights Reserved.