Package com.gistlabs.mechanize.document

Examples of com.gistlabs.mechanize.document.AbstractDocument.images()


  public void testFollowingAnAbsoluteLink() {
    addPageRequest("http://www.test.com",
        newHtml("Test Page", "<img src=\"test.png\"/>"));
   
    AbstractDocument page = agent().get("http://www.test.com");
    Image image = page.images().find("*[src='test.png']");
    assertEquals("http://www.test.com/test.png", image.getAbsoluteSrc());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.