예제 #1
0
 public boolean htmlContains(String subString) throws Exception {
   String html = requester.html();
   html = html.replaceAll("\n", " ");
   html = html.replaceAll("\r", " ");
   html = html.replaceAll("\\s+", " ");
   return (html.indexOf(subString) != -1);
 }
예제 #2
0
 public String content() throws Exception {
   return requester.html();
 }