public class MobileScreenCaptor extends ScreenCaptor
Fields inherited from class | Fields |
---|---|
class ScreenCaptor |
SCREENSHOT_EXT, logger |
Type Params | Return Type | Name and description |
---|---|---|
|
protected AppiumDriver |
getAnyAppiumDriver() |
|
public static Rectangle |
getBoundedRect(WebElement element, float scaleFactor, int statusBarHeight, int width, int height) |
|
protected boolean |
internalSwitchToContext(AppiumDriver driver, String contextName) |
|
protected boolean |
internalSwitchToNativeContext(AppiumDriver driver) |
|
public static BufferedImage |
removeStatusBar(BufferedImage screenshot, int statusBarHeight) |
|
protected void |
take(File newFile) Takes screenshot by using TakesScreenshot#getScreenshotAs(OutputType)#getScreenshotAs(OutputType). |
|
public static BufferedImage |
takeAreaScreenshot(AppiumDriver driver, Rectangle rect, List<TestObject> ignoredElements, Color hidingColor) |
|
public static BufferedImage |
takeElementScreenshot(AppiumDriver driver, WebElement element, List<TestObject> ignoredElements, Color hidingColor) |
|
protected void |
takeRawScreenshot(File fileName) |
|
protected void |
takeScreenshot(File fileName) |
|
public static void |
takeScreenshot(AppiumDriver driver, File fileName) |
|
public static BufferedImage |
takeViewportScreenshot(AppiumDriver driver, List<TestObject> ignoredElements, Color hidingColor) |
Methods inherited from class | Name |
---|---|
class ScreenCaptor |
take, takeScreenshot, takeScreenshotAndGetAttributes |
Takes screenshot by using TakesScreenshot#getScreenshotAs(OutputType)#getScreenshotAs(OutputType).
Using try with multi-catch to prevent error when generating groovy document.