}
/** Tests nested repeatable and use of @DataBoundContructor to process formData */
public void testNested() throws Exception {
HtmlPage p = createWebClient().goTo("self/testNested");
HtmlForm f = p.getFormByName("config");
try {
clickButton(p, f, "Add");
f.getInputByValue("").setValueAttribute("title one");
clickButton(p,f,"Add Foo");
f.getInputByValue("").setValueAttribute("txt one");
clickButton(p,f,"Add Foo");
f.getInputByValue("").setValueAttribute("txt two");
f.getInputsByName("bool").get(1).click();
clickButton(p, f, "Add");
f.getInputByValue("").setValueAttribute("title two");
f.getElementsByTagName("button").get(1).click(); // 2nd "Add Foo" button
f.getInputByValue("").setValueAttribute("txt 2.1");
} catch (Exception e) {
System.err.println("HTML at time of failure:\n" + p.getBody().asXml());
throw e;
}
bindClass = FooList.class;