assertEquals( p.asText().trim(), "You should see a JavaScript alert..." );
HtmlScript script = (HtmlScript) elementIterator.next();
assertNotNull( script );
assertEquals( script.getAttribute( "type" ), "text/javascript" );
assertEquals( script.asText().trim(), "" );
final List<String> expectedAlerts = Collections.singletonList( "Hello!" );
assertEquals( expectedAlerts, collectedAlerts );
}
}