/src/main/java/org/htmlunit/WebAssert.java
if ( !( s.matches( regex) ) ) {   final String msg = ( ( ( "Page title '" + s) + "' does not match the regular expression '") + regex) + "'.";   throw new AssertionError( msg) ; }
[Delete]
throw new AssertionError(msg); } } public static void assertTitleMatches(final HtmlPage page, final String regex) { final String s = page.getTitleText(); if (!s.matches(regex)) { <extra_id_0> throw new AssertionError(msg); } } public static void assertElementPresent(final HtmlPage page, final String id) { try { page.getHtmlElementById(id);