120121122123124125126
/** * Returns a handle for making assertions about the specified HTML form. */ public FormAssertion form(String name) { return new FormAssertion(getRenderedHtml(), new NameChooser(name)); }
127128129130131132133134135136137
/** * Returns a handle for making assertions about an HTML form. */ public FormAssertion form() { return new FormAssertion(getRenderedHtml(), new ElementChooser() { public boolean accept(Element element) { return true; } });