public final class WebUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG_HREF
HTML tag href
|
static java.lang.String |
TAG_TD
HTML tag tr
|
static java.lang.String |
TAG_TR
HTML tag tr
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
getPdfAsByteArray(HtmlAnchor link)
Read the account statement PDF from an HTMLUnit anchor into a byte array.
|
static byte[] |
getSeleniumPdfAsByteArray(SeleniumWebSite website,
WebElement linkElement)
Read the account statement PDF into a byte array.
|
public static final java.lang.String TAG_HREF
public static final java.lang.String TAG_TD
public static final java.lang.String TAG_TR
public static byte[] getPdfAsByteArray(HtmlAnchor link)
link
- the HMTLUnit anchor to the PDFpublic static byte[] getSeleniumPdfAsByteArray(SeleniumWebSite website, WebElement linkElement)
website
- the selenium page to load the PDF document fromlinkElement
- the link on the page to the PDF