Package org.fluentlenium.utils
Class ImageUtils
- java.lang.Object
-
- org.fluentlenium.utils.ImageUtils
-
public class ImageUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_WHILE_CONVERTING_IMAGE
-
Constructor Summary
Constructors Constructor Description ImageUtils(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebDriver
getDriver()
byte[]
handleAlertAndTakeScreenshot()
static java.awt.image.BufferedImage
toBufferedImage(java.lang.String fileName)
-
-
-
Field Detail
-
ERROR_WHILE_CONVERTING_IMAGE
public static final java.lang.String ERROR_WHILE_CONVERTING_IMAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDriver
public org.openqa.selenium.WebDriver getDriver()
-
handleAlertAndTakeScreenshot
public byte[] handleAlertAndTakeScreenshot()
-
toBufferedImage
public static java.awt.image.BufferedImage toBufferedImage(java.lang.String fileName) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
-