Package com.canoo.webtest.plugins.pdftest.htmlunit

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFLink


      final String expectedValue = StringUtils.defaultString(getText(), getHref());

      final List links = pdfPage.getLinks();
      for (final Iterator iter = links.iterator(); iter.hasNext();)
      {
      final PDFLink element = (PDFLink) iter.next();
      if (verifyLink(element, verifier, expectedValue))
        return;
    }
     
      throw new StepFailedException("No link found matching criteria.");
View Full Code Here


        final String lineSep = System.getProperty("line.separator");
       
        LOG.debug(links.size() + " links found");
        for (final Iterator iter = links.iterator(); iter.hasNext();)
        {
      final PDFLink link = (PDFLink) iter.next();
            buf.append(link.getPage()).append("|");
            buf.append(link.getText()).append("|");
            buf.append(link.getHref()).append(lineSep);
        }
       
        LOG.debug("Defining current response with: " + buf.toString());
        ContextHelper.defineAsCurrentResponse(getContext(), buf.toString(), "text/plain", "http:" + this.getClass().getName());
    }
View Full Code Here

TOP

Related Classes of com.canoo.webtest.plugins.pdftest.htmlunit.PDFLink

Copyright © 2018 www.massapicom. 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.