public final class WebUtilsSelenium
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static byte[] |
getSeleniumPdfAsByteArray(org.openqa.selenium.WebDriver driver,
java.lang.String url) |
Read the account statement PDF into a byte array.
|
static byte[] |
getSeleniumPdfAsByteArray(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement linkElement) |
Deprecated.
from 2.6.2.
|
static byte[] |
getSeleniumPdfAsByteArray(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement linkElement,
java.lang.String expectedFileName) |
Read the account statement PDF into a byte array.
|
static void |
scrollTo(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element) |
Scroll to an element so it is visible at the top on top
|
static void |
scrollTo(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement element,
boolean scrollTo) |
Scroll to an element so it is visible at scrollTo position
|
public static byte[] getSeleniumPdfAsByteArray(org.openqa.selenium.WebDriver driver, java.lang.String url) throws WebSiteException
driver
- the WebDriver
to uselinkElement
- the link on the page to the PDFexpectedFileName
- WebSiteException
@Deprecated public static byte[] getSeleniumPdfAsByteArray(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement linkElement) throws WebSiteException
driver
- the WebDriver
to uselinkElement
- the link on the page to the PDFexpectedFileName
- WebSiteException
public static byte[] getSeleniumPdfAsByteArray(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement linkElement, java.lang.String expectedFileName)
driver
- the WebDriver
to uselinkElement
- the link on the page to the PDFexpectedFileName
- public static void scrollTo(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element)
public static void scrollTo(org.openqa.selenium.WebDriver driver, org.openqa.selenium.WebElement element, boolean scrollTo)
scrollTo
- true top of element on top of view area, false
bottom of element on bottom of view area