public class Eyes extends EyesBase
| Modifier and Type | Class and Description |
|---|---|
static interface |
Eyes.WebDriverAction |
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_DEVICE_PIXEL_RATIO |
static double |
UNKNOWN_DEVICE_PIXEL_RATIO |
cutProviderHandler, lastScreenshot, logger, positionProvider, runningSession, scaleProviderHandler, serverConnector, sessionStartInfo, USE_DEFAULT_TIMEOUT, viewportSize| Constructor and Description |
|---|
Eyes() |
Eyes(URI serverUrl)
Creates a new (possibly disabled) Eyes instance that interacts with the
Eyes Server at the specified url.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMouseTrigger(MouseAction action,
Region control,
Location cursor)
Adds a mouse trigger.
|
protected void |
addMouseTrigger(MouseAction action,
org.openqa.selenium.WebElement element)
Adds a mouse trigger.
|
protected void |
addTextTrigger(Region control,
String text)
Adds a keyboard trigger.
|
protected void |
addTextTrigger(org.openqa.selenium.WebElement element,
String text)
Adds a keyboard trigger.
|
protected void |
checkCurrentFrame(int matchTimeout,
String tag)
Verifies the current frame.
|
protected void |
checkElement(org.openqa.selenium.By selector)
|
protected void |
checkElement(org.openqa.selenium.By selector,
int matchTimeout,
String tag)
Takes a snapshot of the application under test and matches an element
specified by the given selector with the expected region output.
|
protected void |
checkElement(org.openqa.selenium.By selector,
String tag)
|
protected void |
checkElement(org.openqa.selenium.WebElement element)
|
protected void |
checkElement(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag)
Takes a snapshot of the application under test and matches a specific
element with the expected region output.
|
protected void |
checkElement(org.openqa.selenium.WebElement element,
String tag)
|
void |
checkFrame(int frameIndex) |
void |
checkFrame(int frameIndex,
int matchTimeout,
String tag)
Matches the frame given as parameter, by switching into the frame and
using stitching to get an image of the frame.
|
void |
checkFrame(int frameIndex,
String tag) |
void |
checkFrame(String frameNameOrId) |
void |
checkFrame(String[] framesPath) |
void |
checkFrame(String[] framePath,
int matchTimeout,
String tag)
Matches the frame given by the frames path, by switching into the frame
and using stitching to get an image of the frame.
|
void |
checkFrame(String[] framesPath,
String tag) |
void |
checkFrame(String frameNameOrId,
int matchTimeout,
String tag)
Matches the frame given as parameter, by switching into the frame and
using stitching to get an image of the frame.
|
void |
checkFrame(String frameNameOrId,
String tag) |
void |
checkFrame(org.openqa.selenium.WebElement frameReference) |
void |
checkFrame(org.openqa.selenium.WebElement frameReference,
int matchTimeout,
String tag)
Matches the frame given as parameter, by switching into the frame and
using stitching to get an image of the frame.
|
void |
checkFrame(org.openqa.selenium.WebElement frameReference,
String tag) |
void |
checkRegion(org.openqa.selenium.By selector) |
void |
checkRegion(org.openqa.selenium.By selector,
boolean stitchContent) |
void |
checkRegion(org.openqa.selenium.By selector,
int matchTimeout,
String tag) |
void |
checkRegion(org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent) |
void |
checkRegion(org.openqa.selenium.By selector,
String tag) |
void |
checkRegion(org.openqa.selenium.By selector,
String tag,
boolean stitchContent) |
void |
checkRegion(Region region) |
void |
checkRegion(Region region,
int matchTimeout,
String tag) |
void |
checkRegion(org.openqa.selenium.WebElement element) |
void |
checkRegion(org.openqa.selenium.WebElement element,
boolean stitchContent) |
void |
checkRegion(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag) |
void |
checkRegion(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag,
boolean stitchContent) |
void |
checkRegion(org.openqa.selenium.WebElement element,
String tag) |
void |
checkRegion(org.openqa.selenium.WebElement element,
String tag,
boolean stitchContent) |
void |
checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector) |
void |
checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
boolean stitchContent) |
void |
checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
int matchTimeout,
String tag) |
void |
checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
Switches into the given frame, takes a snapshot of the application under
test and matches a region specified by the given selector.
|
void |
checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
String tag) |
void |
checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
String tag,
boolean stitchContent) |
void |
checkRegionInFrame(String[] framePath,
org.openqa.selenium.By selector) |
void |
checkRegionInFrame(String[] framePath,
org.openqa.selenium.By selector,
int matchTimeout,
String tag)
|
void |
checkRegionInFrame(String[] framePath,
org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
Switches into the given frame, takes a snapshot of the application under
test and matches a region specified by the given selector.
|
void |
checkRegionInFrame(String[] framePath,
org.openqa.selenium.By selector,
String tag) |
void |
checkRegionInFrame(String frameNameOrId,
org.openqa.selenium.By selector) |
void |
checkRegionInFrame(String frameNameOrId,
org.openqa.selenium.By selector,
boolean stitchContent)
|
void |
checkRegionInFrame(String frameNameOrId,
org.openqa.selenium.By selector,
int matchTimeout,
String tag) |
void |
checkRegionInFrame(String frameNameOrId,
org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
Switches into the given frame, takes a snapshot of the application under
test and matches a region specified by the given selector.
|
void |
checkRegionInFrame(String frameNameOrId,
org.openqa.selenium.By selector,
String tag) |
void |
checkRegionInFrame(String frameNameOrId,
org.openqa.selenium.By selector,
String tag,
boolean stitchContent) |
void |
checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector) |
void |
checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
boolean stitchContent) |
void |
checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
int matchTimeout,
String tag) |
void |
checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
Switches into the given frame, takes a snapshot of the application under
test and matches a region specified by the given selector.
|
void |
checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
String tag) |
void |
checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
String tag,
boolean stitchContent) |
void |
checkWindow() |
void |
checkWindow(int matchTimeout,
String tag)
Takes a snapshot of the application under test and matches it with
the expected output.
|
void |
checkWindow(String tag)
|
protected AppEnvironment |
getAppEnvironment()
This override also checks for mobile operating system.
|
String |
getBaseAgentId() |
double |
getDevicePixelRatio() |
boolean |
getForceFullPageScreenshot() |
boolean |
getHideScrollbars() |
protected String |
getInferredEnvironment() |
ImageRotation |
getRotation() |
protected EyesScreenshot |
getScreenshot() |
boolean |
getScrollToRegion() |
StitchMode |
getStitchMode() |
protected String |
getTitle() |
protected RectangleSize |
getViewportSize() |
static RectangleSize |
getViewportSize(org.openqa.selenium.WebDriver driver) |
int |
getWaitBeforeScreenshots() |
org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName) |
org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize) |
protected org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize,
SessionType sessionType)
Starts a test.
|
protected org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
SessionType sessionType) |
void |
setForceFullPageScreenshot(boolean shouldForce) |
void |
setHideScrollbars(boolean shouldHide) |
void |
setRotation(ImageRotation rotation) |
void |
setScrollToRegion(boolean shouldScroll) |
void |
setStitchMode(StitchMode mode) |
protected void |
setViewportSize(RectangleSize size) |
static void |
setViewportSize(org.openqa.selenium.WebDriver driver,
RectangleSize size)
Set the viewport size using the driver.
|
void |
setWaitBeforeScreenshots(int waitBeforeScreenshots) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
int timeout) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
int timeout,
RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
int timeout,
RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize) |
void |
testWindow(org.openqa.selenium.WebDriver driver,
String testName) |
void |
testWindow(org.openqa.selenium.WebDriver driver,
String testName,
RectangleSize viewportSize)
|
void |
testWindow(org.openqa.selenium.WebDriver driver,
String appName,
String testName) |
void |
testWindow(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize)
Runs a test on the current window.
|
protected ScaleProviderFactory |
updateScalingParams()
Updates the state of scaling related parameters.
|
abortIfNotClosed, addMouseTriggerBase, addTextTriggerBase, addUserInput, checkWindowBase, checkWindowBase, clearUserInputs, close, close, closeResponseTime, getAgentId, getApiKey, getAppName, getBaselineEnvName, getBaselineName, getBatch, getBranchName, getDefaultMatchSettings, getDefaultServerUrl, getEnvName, getFailureReports, getFullAgentId, getHostApp, getHostOS, getIsDisabled, getIsOpen, getLogHandler, getMatchLevel, getMatchTimeout, getParentBranchName, getPositionProvider, getProxy, getSaveFailedTests, getSaveNewTests, getScaleMethod, getScaleRatio, getServerUrl, getUserInputs, openBase, setAgentId, setApiKey, setAppEnvironment, setAppName, setBaselineEnvName, setBaselineName, setBatch, setBranchName, setDefaultMatchSettings, setEnvName, setFailureReports, setHostApp, setHostOS, setImageCut, setIsDisabled, setLogHandler, setMatchLevel, setMatchTimeout, setParentBranchName, setPositionProvider, setProxy, setSaveFailedTests, setSaveNewTests, setScaleMethod, setScaleRatio, setServerUrl, startSession, testResponseTimeBasepublic static final double UNKNOWN_DEVICE_PIXEL_RATIO
public static final double DEFAULT_DEVICE_PIXEL_RATIO
public Eyes(URI serverUrl)
serverUrl - The Eyes server URL.public Eyes()
public String getBaseAgentId()
getBaseAgentId in class EyesBasepublic void setForceFullPageScreenshot(boolean shouldForce)
public boolean getForceFullPageScreenshot()
public void setWaitBeforeScreenshots(int waitBeforeScreenshots)
public int getWaitBeforeScreenshots()
public void setScrollToRegion(boolean shouldScroll)
public boolean getScrollToRegion()
public void setStitchMode(StitchMode mode)
public StitchMode getStitchMode()
public void setHideScrollbars(boolean shouldHide)
public boolean getHideScrollbars()
public ImageRotation getRotation()
public void setRotation(ImageRotation rotation)
public double getDevicePixelRatio()
public org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize)
public org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver driver,
String appName,
String testName)
protected org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize,
SessionType sessionType)
driver - The web driver that controls the browser hosting
the application under test.appName - The name of the application under test.testName - The test name.viewportSize - The required browser's viewport size
(i.e., the visible part of the document's body) or
null to use the current window's viewport.sessionType - The type of test (e.g., standard test / visual
performance test).protected org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
SessionType sessionType)
public void checkWindow()
public void checkWindow(String tag)
checkWindow(int, String).
Default match timeout is used.tag - An optional tag to be associated with the snapshot.public void checkWindow(int matchTimeout,
String tag)
matchTimeout - The amount of time to retry matching
(Milliseconds).tag - An optional tag to be associated with the snapshot.TestFailedException - Thrown if a mismatch is detected and
immediate failure reports are enabled.public void testWindow(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize)
driver - The web driver that controls the browser hosting
the application under test.appName - The name of the application under test.testName - The test name (will also be used as the tag name
for the step).viewportSize - The required browser's viewport size
(i.e., the visible part of the document's body) or
null to use the current window's viewport.public void testWindow(org.openqa.selenium.WebDriver driver,
String appName,
String testName)
public void testWindow(org.openqa.selenium.WebDriver driver,
String testName,
RectangleSize viewportSize)
testWindow(WebDriver, String, String, RectangleSize).
appName defaults to null (which means the name set in
EyesBase.setAppName(String) would be used.public void testWindow(org.openqa.selenium.WebDriver driver,
String testName)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
int timeout)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
int timeout,
RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
int timeout,
RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
RectangleSize viewportSize)
public void checkRegion(Region region)
public void checkRegion(org.openqa.selenium.WebElement element)
public void checkRegion(org.openqa.selenium.WebElement element,
boolean stitchContent)
public void checkRegion(org.openqa.selenium.WebElement element,
String tag)
public void checkRegion(org.openqa.selenium.WebElement element,
String tag,
boolean stitchContent)
public void checkRegion(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag)
public void checkRegion(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag,
boolean stitchContent)
public void checkRegion(org.openqa.selenium.By selector)
public void checkRegion(org.openqa.selenium.By selector,
boolean stitchContent)
public void checkRegion(org.openqa.selenium.By selector,
String tag)
public void checkRegion(org.openqa.selenium.By selector,
String tag,
boolean stitchContent)
public void checkRegion(org.openqa.selenium.By selector,
int matchTimeout,
String tag)
public void checkRegion(org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
public void checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector)
public void checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
boolean stitchContent)
public void checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
String tag)
public void checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
String tag,
boolean stitchContent)
public void checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
int matchTimeout,
String tag)
public void checkRegionInFrame(int frameIndex,
org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
frameIndex - The index of the frame to switch to. (The same index
as would be used in a call to
driver.switchTo().frame()).selector - A Selector specifying the region to check.matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the snapshot.stitchContent - If true, stitch the internal content of
the region (i.e., perform
checkElement(By, int, String) on the
region.public void checkRegionInFrame(String frameNameOrId, org.openqa.selenium.By selector)
public void checkRegionInFrame(String frameNameOrId, org.openqa.selenium.By selector, boolean stitchContent)
public void checkRegionInFrame(String frameNameOrId, org.openqa.selenium.By selector, String tag)
public void checkRegionInFrame(String frameNameOrId, org.openqa.selenium.By selector, String tag, boolean stitchContent)
public void checkRegionInFrame(String frameNameOrId, org.openqa.selenium.By selector, int matchTimeout, String tag)
public void checkRegionInFrame(String frameNameOrId, org.openqa.selenium.By selector, int matchTimeout, String tag, boolean stitchContent)
frameNameOrId - The name or id of the frame to switch to. (as would
be used in a call to driver.switchTo().frame()).selector - A Selector specifying the region to check.matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the snapshot.stitchContent - If true, stitch the internal content of
the region (i.e., perform
checkElement(By, int, String) on the
region.public void checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector)
public void checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
boolean stitchContent)
public void checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
String tag)
public void checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
String tag,
boolean stitchContent)
public void checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
int matchTimeout,
String tag)
public void checkRegionInFrame(org.openqa.selenium.WebElement frameReference,
org.openqa.selenium.By selector,
int matchTimeout,
String tag,
boolean stitchContent)
frameReference - The element which is the frame to switch to. (as
would be used in a call to
driver.switchTo().frame()).selector - A Selector specifying the region to check.matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the snapshot.stitchContent - If true, stitch the internal content of
the region (i.e., perform
checkElement(By, int, String) on the
region.protected ScaleProviderFactory updateScalingParams()
protected void checkCurrentFrame(int matchTimeout,
String tag)
matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the snapshot.public void checkFrame(String frameNameOrId)
public void checkFrame(String frameNameOrId, int matchTimeout, String tag)
frameNameOrId - The name or id of the frame to check. (The same
name/id as would be used in a call to
driver.switchTo().frame()).matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the match.public void checkFrame(int frameIndex)
public void checkFrame(int frameIndex,
String tag)
public void checkFrame(int frameIndex,
int matchTimeout,
String tag)
frameIndex - The index of the frame to switch to. (The same index
as would be used in a call to
driver.switchTo().frame()).matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the match.public void checkFrame(org.openqa.selenium.WebElement frameReference)
public void checkFrame(org.openqa.selenium.WebElement frameReference,
String tag)
public void checkFrame(org.openqa.selenium.WebElement frameReference,
int matchTimeout,
String tag)
frameReference - The element which is the frame to switch to. (as
would be used in a call to
driver.switchTo().frame() ).matchTimeout - The amount of time to retry matching (milliseconds).tag - An optional tag to be associated with the match.public void checkFrame(String[] framePath, int matchTimeout, String tag)
framePath - The path to the frame to check. This is a list of
frame names/IDs (where each frame is nested in the
previous frame).matchTimeout - The amount of time to retry matching (milliseconds).tag - An optional tag to be associated with the match.public void checkFrame(String[] framesPath)
public void checkRegionInFrame(String[] framePath, org.openqa.selenium.By selector, int matchTimeout, String tag, boolean stitchContent)
framePath - The path to the frame to check. This is a list of
frame names/IDs (where each frame is nested in the
previous frame).selector - A Selector specifying the region to check.matchTimeout - The amount of time to retry matching (milliseconds).tag - An optional tag to be associated with the snapshot.stitchContent - Whether or not to stitch the internal content of
the region (i.e., perform
checkElement(By, int, String) on the
region.public void checkRegionInFrame(String[] framePath, org.openqa.selenium.By selector, int matchTimeout, String tag)
public void checkRegionInFrame(String[] framePath, org.openqa.selenium.By selector, String tag)
public void checkRegionInFrame(String[] framePath, org.openqa.selenium.By selector)
protected void checkElement(org.openqa.selenium.WebElement element)
protected void checkElement(org.openqa.selenium.WebElement element,
String tag)
checkElement(WebElement, int, String).
Default match timeout is used.protected void checkElement(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag)
element - The element to check.matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the snapshot.TestFailedException - if a mismatch is detected and
immediate failure reports are enabledprotected void checkElement(org.openqa.selenium.By selector)
protected void checkElement(org.openqa.selenium.By selector,
String tag)
checkElement(By, int, String).
Default match timeout is used.protected void checkElement(org.openqa.selenium.By selector,
int matchTimeout,
String tag)
selector - Selects the element to check.matchTimeout - The amount of time to retry matching.
(Milliseconds)tag - An optional tag to be associated with the screenshot.TestFailedException - if a mismatch is detected and
immediate failure reports are enabledprotected void addMouseTrigger(MouseAction action, Region control, Location cursor)
action - Mouse action.control - The control on which the trigger is activated (context
relative coordinates).cursor - The cursor's position relative to the control.protected void addMouseTrigger(MouseAction action, org.openqa.selenium.WebElement element)
action - Mouse action.element - The WebElement on which the click was called.protected void addTextTrigger(Region control, String text)
control - The control's context-relative region.text - The trigger's text.protected void addTextTrigger(org.openqa.selenium.WebElement element,
String text)
element - The element for which we sent keys.text - The trigger's text.protected RectangleSize getViewportSize()
getViewportSize in class EyesBasepublic static RectangleSize getViewportSize(org.openqa.selenium.WebDriver driver)
protected void setViewportSize(RectangleSize size)
setViewportSize in class EyesBasepublic static void setViewportSize(org.openqa.selenium.WebDriver driver,
RectangleSize size)
open(WebDriver, String, String)
(or one of its variants) yet.driver - The driver to use for setting the viewport.size - The required viewport size.protected EyesScreenshot getScreenshot()
getScreenshot in class EyesBaseprotected String getInferredEnvironment()
getInferredEnvironment in class EyesBaseprotected AppEnvironment getAppEnvironment()
getAppEnvironment in class EyesBaseCopyright © 2016. All rights reserved.