public class Eyes extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Eyes.WebDriverAction |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET_NAME |
static double |
DEFAULT_DEVICE_PIXEL_RATIO |
protected com.applitools.eyes.EyesScreenshot |
lastScreenshot |
protected com.applitools.eyes.Logger |
logger |
protected com.applitools.eyes.PositionProvider |
positionProvider |
protected com.applitools.eyes.RunningSession |
runningSession |
protected com.applitools.utils.PropertyHandler<com.applitools.eyes.ScaleProvider> |
scaleProviderHandler |
protected com.applitools.eyes.ServerConnector |
serverConnector |
protected com.applitools.eyes.SessionStartInfo |
sessionStartInfo |
static double |
UNKNOWN_DEVICE_PIXEL_RATIO |
protected static int |
USE_DEFAULT_TIMEOUT |
protected com.applitools.eyes.RectangleSize |
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 |
|---|---|
void |
abortIfNotClosed() |
protected void |
addMouseTrigger(com.applitools.eyes.MouseAction action,
com.applitools.eyes.Region control,
com.applitools.eyes.Location cursor)
Adds a mouse trigger.
|
protected void |
addMouseTrigger(com.applitools.eyes.MouseAction action,
org.openqa.selenium.WebElement element)
Adds a mouse trigger.
|
protected void |
addMouseTriggerBase(com.applitools.eyes.MouseAction arg0,
com.applitools.eyes.Region arg1,
com.applitools.eyes.Location arg2) |
protected void |
addTextTrigger(com.applitools.eyes.Region control,
String text)
Adds a keyboard trigger.
|
protected void |
addTextTrigger(org.openqa.selenium.WebElement element,
String text)
Adds a keyboard trigger.
|
protected void |
addTextTriggerBase(com.applitools.eyes.Region arg0,
String arg1) |
protected void |
addUserInput(com.applitools.eyes.Trigger arg0) |
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(com.applitools.eyes.Region region) |
void |
checkRegion(com.applitools.eyes.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 com.applitools.eyes.MatchResult |
checkWindowBase(com.applitools.eyes.RegionProvider arg0,
String arg1,
boolean arg2) |
protected com.applitools.eyes.MatchResult |
checkWindowBase(com.applitools.eyes.RegionProvider arg0,
String arg1,
boolean arg2,
int arg3) |
protected void |
clearUserInputs() |
com.applitools.eyes.TestResults |
close() |
com.applitools.eyes.TestResults |
close(boolean arg0) |
protected void |
closeResponseTime(boolean arg0) |
String |
getAgentId() |
String |
getApiKey() |
protected com.applitools.eyes.AppEnvironment |
getAppEnvironment()
This override also checks for mobile operating system.
|
String |
getAppName() |
String |
getBaseAgentId() |
String |
getBaselineName() |
com.applitools.eyes.BatchInfo |
getBatch() |
String |
getBranchName() |
com.applitools.eyes.ImageMatchSettings |
getDefaultMatchSettings() |
static URI |
getDefaultServerUrl() |
double |
getDevicePixelRatio() |
com.applitools.eyes.FailureReports |
getFailureReports() |
boolean |
getForceFullPageScreenshot() |
protected String |
getFullAgentId() |
boolean |
getHideScrollbars() |
String |
getHostApp() |
String |
getHostOS() |
protected String |
getInferredEnvironment() |
boolean |
getIsDisabled() |
boolean |
getIsOpen() |
com.applitools.eyes.LogHandler |
getLogHandler() |
com.applitools.eyes.MatchLevel |
getMatchLevel() |
int |
getMatchTimeout() |
String |
getParentBranchName() |
protected com.applitools.eyes.PositionProvider |
getPositionProvider() |
com.applitools.eyes.ProxySettings |
getProxy() |
ImageRotation |
getRotation() |
boolean |
getSaveFailedTests() |
boolean |
getSaveNewTests() |
protected com.applitools.eyes.ScaleMethod |
getScaleMethod() |
double |
getScaleRatio() |
protected com.applitools.eyes.EyesScreenshot |
getScreenshot() |
boolean |
getScrollToRegion() |
URI |
getServerUrl() |
StitchMode |
getStitchMode() |
protected String |
getTitle() |
protected com.applitools.eyes.Trigger[] |
getUserInputs() |
protected com.applitools.eyes.RectangleSize |
getViewportSize() |
com.applitools.eyes.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,
com.applitools.eyes.RectangleSize viewportSize) |
protected org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
com.applitools.eyes.RectangleSize viewportSize,
com.applitools.eyes.SessionType sessionType)
Starts a test.
|
protected org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
com.applitools.eyes.SessionType sessionType) |
void |
openBase(String arg0,
String arg1,
com.applitools.eyes.RectangleSize arg2,
com.applitools.eyes.SessionType arg3) |
void |
setAgentId(String arg0) |
void |
setApiKey(String arg0) |
void |
setAppEnvironment(String arg0,
String arg1)
Deprecated.
|
void |
setAppName(String arg0) |
void |
setBaselineName(String arg0) |
void |
setBatch(com.applitools.eyes.BatchInfo arg0) |
void |
setBranchName(String arg0) |
void |
setDefaultMatchSettings(com.applitools.eyes.ImageMatchSettings arg0) |
void |
setFailureReports(com.applitools.eyes.FailureReports arg0) |
void |
setForceFullPageScreenshot(boolean shouldForce) |
void |
setHideScrollbars(boolean shouldHide) |
void |
setHostApp(String arg0) |
void |
setHostOS(String arg0) |
void |
setIsDisabled(boolean arg0) |
void |
setLogHandler(com.applitools.eyes.LogHandler arg0) |
void |
setMatchLevel(com.applitools.eyes.MatchLevel arg0) |
void |
setMatchTimeout(int arg0) |
void |
setParentBranchName(String arg0) |
protected void |
setPositionProvider(com.applitools.eyes.PositionProvider arg0) |
void |
setProxy(com.applitools.eyes.ProxySettings arg0) |
void |
setRotation(ImageRotation rotation) |
void |
setSaveFailedTests(boolean arg0) |
void |
setSaveNewTests(boolean arg0) |
protected void |
setScaleMethod(com.applitools.eyes.ScaleMethod arg0) |
void |
setScaleRatio(Double arg0) |
void |
setScrollToRegion(boolean shouldScroll) |
void |
setServerUrl(URI arg0) |
void |
setStitchMode(StitchMode mode) |
protected void |
setViewportSize(com.applitools.eyes.RectangleSize size) |
void |
setViewportSize(org.openqa.selenium.WebDriver driver,
com.applitools.eyes.RectangleSize size) |
void |
setWaitBeforeScreenshots(int waitBeforeScreenshots) |
protected void |
startSession() |
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,
com.applitools.eyes.RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
com.applitools.eyes.RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
com.applitools.eyes.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,
com.applitools.eyes.RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
com.applitools.eyes.RectangleSize viewportSize) |
void |
testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
com.applitools.eyes.RectangleSize viewportSize) |
protected com.applitools.eyes.MatchWindowDataWithScreenshot |
testResponseTimeBase(com.applitools.eyes.RegionProvider arg0,
Runnable arg1,
int arg2,
int arg3,
long arg4) |
void |
testWindow(org.openqa.selenium.WebDriver driver,
String testName) |
void |
testWindow(org.openqa.selenium.WebDriver driver,
String testName,
com.applitools.eyes.RectangleSize viewportSize)
|
void |
testWindow(org.openqa.selenium.WebDriver driver,
String appName,
String testName) |
void |
testWindow(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
com.applitools.eyes.RectangleSize viewportSize)
Runs a test on the current window.
|
protected void |
updateScalingParams()
Updates the state of scaling related parameters.
|
public static final double UNKNOWN_DEVICE_PIXEL_RATIO
public static final double DEFAULT_DEVICE_PIXEL_RATIO
protected static final int USE_DEFAULT_TIMEOUT
public static final String DEFAULT_CHARSET_NAME
protected com.applitools.eyes.ServerConnector serverConnector
protected com.applitools.eyes.RunningSession runningSession
protected com.applitools.eyes.SessionStartInfo sessionStartInfo
protected com.applitools.eyes.RectangleSize viewportSize
protected com.applitools.eyes.EyesScreenshot lastScreenshot
protected com.applitools.utils.PropertyHandler<com.applitools.eyes.ScaleProvider> scaleProviderHandler
protected com.applitools.eyes.PositionProvider positionProvider
protected com.applitools.eyes.Logger logger
public Eyes(URI serverUrl)
serverUrl - The Eyes server URL.public Eyes()
public String getBaseAgentId()
public 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,
com.applitools.eyes.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,
com.applitools.eyes.RectangleSize viewportSize,
com.applitools.eyes.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,
com.applitools.eyes.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,
com.applitools.eyes.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,
com.applitools.eyes.RectangleSize viewportSize)
testWindow(WebDriver, String, String, RectangleSize).
appName defaults to null (which means the name set in
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,
com.applitools.eyes.RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
int deadline,
com.applitools.eyes.RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
Eyes.WebDriverAction action,
com.applitools.eyes.RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
int timeout,
com.applitools.eyes.RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
int deadline,
com.applitools.eyes.RectangleSize viewportSize)
public void testResponseTime(org.openqa.selenium.WebDriver driver,
String appName,
String testName,
com.applitools.eyes.RectangleSize viewportSize)
public void checkRegion(com.applitools.eyes.Region region)
public void checkRegion(com.applitools.eyes.Region region,
int matchTimeout,
String tag)
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 void 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(com.applitools.eyes.MouseAction action,
com.applitools.eyes.Region control,
com.applitools.eyes.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(com.applitools.eyes.MouseAction action,
org.openqa.selenium.WebElement element)
action - Mouse action.element - The WebElement on which the click was called.protected void addTextTrigger(com.applitools.eyes.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 com.applitools.eyes.RectangleSize getViewportSize()
public com.applitools.eyes.RectangleSize getViewportSize(org.openqa.selenium.WebDriver driver)
protected void setViewportSize(com.applitools.eyes.RectangleSize size)
public void setViewportSize(org.openqa.selenium.WebDriver driver,
com.applitools.eyes.RectangleSize size)
protected com.applitools.eyes.EyesScreenshot getScreenshot()
protected String getTitle()
protected String getInferredEnvironment()
protected com.applitools.eyes.AppEnvironment getAppEnvironment()
public void setAgentId(String arg0)
public String getAgentId()
public void setApiKey(String arg0)
public String getApiKey()
public void setServerUrl(URI arg0)
public URI getServerUrl()
public void setProxy(com.applitools.eyes.ProxySettings arg0)
public com.applitools.eyes.ProxySettings getProxy()
public void setIsDisabled(boolean arg0)
public boolean getIsDisabled()
public void setAppName(String arg0)
public String getAppName()
public void setBranchName(String arg0)
public String getBranchName()
public void setParentBranchName(String arg0)
public String getParentBranchName()
protected void clearUserInputs()
protected com.applitools.eyes.Trigger[] getUserInputs()
public void setMatchTimeout(int arg0)
public int getMatchTimeout()
public void setSaveNewTests(boolean arg0)
public boolean getSaveNewTests()
public void setSaveFailedTests(boolean arg0)
public boolean getSaveFailedTests()
public void setBatch(com.applitools.eyes.BatchInfo arg0)
public com.applitools.eyes.BatchInfo getBatch()
public void setFailureReports(com.applitools.eyes.FailureReports arg0)
public com.applitools.eyes.FailureReports getFailureReports()
public void setDefaultMatchSettings(com.applitools.eyes.ImageMatchSettings arg0)
public com.applitools.eyes.ImageMatchSettings getDefaultMatchSettings()
public void setMatchLevel(com.applitools.eyes.MatchLevel arg0)
public com.applitools.eyes.MatchLevel getMatchLevel()
protected String getFullAgentId()
public boolean getIsOpen()
public static URI getDefaultServerUrl()
public void setLogHandler(com.applitools.eyes.LogHandler arg0)
public com.applitools.eyes.LogHandler getLogHandler()
public void setScaleRatio(Double arg0)
public double getScaleRatio()
protected void setScaleMethod(com.applitools.eyes.ScaleMethod arg0)
protected com.applitools.eyes.ScaleMethod getScaleMethod()
public com.applitools.eyes.TestResults close()
public com.applitools.eyes.TestResults close(boolean arg0)
protected void closeResponseTime(boolean arg0)
public void abortIfNotClosed()
public void setHostOS(String arg0)
public String getHostOS()
public void setHostApp(String arg0)
public String getHostApp()
public void setBaselineName(String arg0)
public String getBaselineName()
@Deprecated public void setAppEnvironment(String arg0, String arg1)
protected com.applitools.eyes.PositionProvider getPositionProvider()
protected void setPositionProvider(com.applitools.eyes.PositionProvider arg0)
protected com.applitools.eyes.MatchResult checkWindowBase(com.applitools.eyes.RegionProvider arg0,
String arg1,
boolean arg2)
protected com.applitools.eyes.MatchResult checkWindowBase(com.applitools.eyes.RegionProvider arg0,
String arg1,
boolean arg2,
int arg3)
protected com.applitools.eyes.MatchWindowDataWithScreenshot testResponseTimeBase(com.applitools.eyes.RegionProvider arg0,
Runnable arg1,
int arg2,
int arg3,
long arg4)
public void openBase(String arg0, String arg1, com.applitools.eyes.RectangleSize arg2, com.applitools.eyes.SessionType arg3)
protected void addUserInput(com.applitools.eyes.Trigger arg0)
protected void addTextTriggerBase(com.applitools.eyes.Region arg0,
String arg1)
protected void addMouseTriggerBase(com.applitools.eyes.MouseAction arg0,
com.applitools.eyes.Region arg1,
com.applitools.eyes.Location arg2)
protected void startSession()
Copyright © 2015. All rights reserved.