// Click the add link
resp = resp.getLinkWith(Util.getBundle("view", "buttonAddAddress")).click();
// Enter the new data in the form
WebForm form = resp.getForms()[1];
// Make sure this is a new form
assertEquals(form.getParameterValue("{actionForm.name}"), "");
// Set the new values
form.setParameter( "{actionForm.name}", "TestAddress" );
form.setParameter( "{actionForm.addr1}", "1234 Main Street" );
form.setParameter( "{actionForm.addr2}", "Apt 123" );
form.setParameter( "{actionForm.city}", "Seattle" );
form.setParameter( "{actionForm.state}", "WA" );
form.setParameter( "{actionForm.zip}", "98104" );
form.setParameter( "{actionForm.country}", "USA" );
form.setParameter( "{actionForm.phone}", "206-333-1234" );
// Submit
resp = form.submit();
// Make sure the address took
WebTable table = resp.getTableWithID("address_TestAddress");
assertNotNull(table);
TableCell cell = table.getTableCell(0, 0);