public class Eyes
extends com.applitools.eyes.EyesBase
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_DEVICE_PIXEL_RATIO |
protected org.openqa.selenium.WebElement |
targetElement |
static double |
UNKNOWN_DEVICE_PIXEL_RATIO |
| Constructor and Description |
|---|
Eyes() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(com.applitools.ICheckSettings... checkSettings) |
void |
check(com.applitools.ICheckSettings checkSettings) |
void |
check(String name,
com.applitools.ICheckSettings checkSettings) |
void |
checkElement(org.openqa.selenium.By selector) |
void |
checkElement(org.openqa.selenium.By selector,
int matchTimeout,
String tag) |
void |
checkElement(org.openqa.selenium.By selector,
String tag) |
void |
checkElement(org.openqa.selenium.WebElement element) |
void |
checkElement(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag) |
void |
checkElement(org.openqa.selenium.WebElement element,
String tag) |
protected com.applitools.eyes.MatchResult |
checkElement(org.openqa.selenium.WebElement element,
String name,
com.applitools.ICheckSettings checkSettings) |
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) |
protected com.applitools.eyes.MatchResult |
checkRegion(String name,
com.applitools.ICheckSettings checkSettings) |
void |
checkRegion(org.openqa.selenium.WebElement element) |
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,
boolean stitchContent) |
void |
checkWindow() |
void |
checkWindow(int matchTimeout,
String tag) |
void |
checkWindow(String tag) |
void |
checkWindow(String tag,
boolean fully) |
com.applitools.eyes.TestResults |
close(boolean throwEx) |
protected void |
ensureViewportSize() |
String |
getAgentId() |
Object |
getAgentSetup() |
protected com.applitools.eyes.AppEnvironment |
getAppEnvironment() |
protected void |
getAppOutputForOcr(BaseOcrRegion ocrRegion) |
String |
getBaseAgentId() |
String |
getBaselineBranchName() |
String |
getBaselineEnvName() |
com.applitools.eyes.BatchInfo |
getBatch() |
String |
getBranchName() |
Configuration |
getConfiguration() |
protected com.applitools.eyes.config.Configuration |
getConfigurationInstance() |
com.applitools.eyes.ImageMatchSettings |
getDefaultMatchSettings() |
double |
getDevicePixelRatio() |
org.openqa.selenium.WebDriver |
getDriver() |
String |
getEnvName() |
boolean |
getForceFullPageScreenshot() |
protected EyesAppiumScreenshot |
getFullPageScreenshot() |
String |
getHostApp() |
String |
getHostOS() |
boolean |
getIgnoreCaret() |
boolean |
getIgnoreDisplacements() |
protected String |
getInferredEnvironment() |
com.applitools.eyes.MatchLevel |
getMatchLevel() |
int |
getMatchTimeout() |
String |
getParentBranchName() |
ImageRotation |
getRotation() |
Boolean |
getSaveDiffs() |
boolean |
getSaveNewTests()
Gets save new tests.
|
protected com.applitools.eyes.EyesScreenshot |
getScreenshot(com.applitools.eyes.Region targetRegion,
com.applitools.eyes.fluent.ICheckSettingsInternal checkSettingsInternal) |
protected com.applitools.eyes.capture.ScreenshotProvider |
getScreenshotProvider() |
boolean |
getScrollToRegion()
Gets scroll to region.
|
protected EyesAppiumScreenshot |
getSimpleScreenshot() |
int |
getStitchOverlap()
Gets stitch overlap.
|
protected String |
getTitle() |
protected com.applitools.eyes.RectangleSize |
getViewportSize() |
Map<String,List<com.applitools.eyes.Region>> |
locate(VisualLocatorSettings visualLocatorSettings) |
org.openqa.selenium.WebDriver |
open(org.openqa.selenium.WebDriver driver,
com.applitools.eyes.config.Configuration configuration) |
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.
|
void |
setAgentId(String agentId) |
void |
setBaselineBranchName(String branchName) |
void |
setBaselineEnvName(String baselineEnvName) |
com.applitools.eyes.config.Configuration |
setBatch(com.applitools.eyes.BatchInfo batch) |
void |
setBranchName(String branchName) |
void |
setConfiguration(com.applitools.eyes.config.Configuration configuration) |
void |
setDefaultMatchSettings(com.applitools.eyes.ImageMatchSettings defaultMatchSettings) |
void |
setEnvName(String envName) |
void |
setForceFullPageScreenshot(boolean shouldForce) |
void |
setHostApp(String hostApp) |
void |
setHostOS(String hostOS) |
void |
setIgnoreCaret(boolean value) |
void |
setIgnoreDisplacements(boolean isIgnoreDisplacements) |
void |
setMatchLevel(com.applitools.eyes.MatchLevel matchLevel) |
void |
setMatchTimeout(int ms)
Sets the maximum time (in ms) a match operation tries to perform a match.
|
void |
setParentBranchName(String branchName) |
void |
setRotation(ImageRotation rotation) |
void |
setSaveDiffs(Boolean saveDiffs) |
void |
setSaveNewTests(boolean saveNewTests)
Set whether or not new tests are saved by default.
|
void |
setScrollToRegion(boolean shouldScroll) |
void |
setStitchOverlap(int pixels)
Sets the stitching overlap in pixels.
|
protected com.applitools.eyes.config.Configuration |
setViewportSize(com.applitools.eyes.RectangleSize size) |
boolean |
shouldStitchContent() |
protected String |
tryCaptureDom() |
protected void |
tryUpdateDevicePixelRatio() |
abort, abortAsync, abortIfNotClosed, addMouseTriggerBase, addProperty, addProperty, addTextTriggerBase, addUserInput, checkWindowBase, checkWindowBase, checkWindowBase, checkWindowBase, checkWindowBase, clearProperties, clearUserInputs, close, closeAsync, extractText, extractTextRegions, fireValidationWillStartEvent, getApiKey, getAppName, getDebugScreenshotsPath, getDebugScreenshotsPrefix, getDebugScreenshotsProvider, getDefaultServerUrl, getDevicesSizes, getFullAgentId, getIsCutProviderExplicitlySet, getIsDisabled, getIsOpen, getIsScaleProviderExplicitlySet, getLogger, getLogHandler, getMobileDeviceInfo, getPositionProvider, getProxy, getRenderingInfo, getSaveDebugScreenshots, getScaleRatio, getServerConnector, getServerUrl, getTestId, getTestName, getUserAgents, getUserInputs, getViewportSizeForOpen, isCompleted, isSendDom, logSessionResultsAndThrowException, openBase, openCompleted, openLogger, performMatch, prepareForMatch, prepareForOpen, prepareStopSession, setApiKey, setDebugScreenshotsPath, setDebugScreenshotsPrefix, setEffectiveViewportSize, setExplicitViewportSize, setImageCut, setIsDisabled, setIsDisabled, setLogHandler, setPositionProvider, setProxy, setSaveDebugScreenshots, setScaleRatio, setSendDom, setServerConnector, setServerUrl, setServerUrl, setTestId, shouldCaptureDom, stopSession, tryCaptureAndPostDom, validateResultpublic static final double UNKNOWN_DEVICE_PIXEL_RATIO
public static final double DEFAULT_DEVICE_PIXEL_RATIO
protected org.openqa.selenium.WebElement targetElement
public org.openqa.selenium.WebDriver open(org.openqa.selenium.WebDriver driver,
com.applitools.eyes.config.Configuration configuration)
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).public void checkWindow()
public void checkWindow(String tag)
public void checkWindow(int matchTimeout,
String tag)
public void checkWindow(String tag, boolean fully)
public void check(String name, com.applitools.ICheckSettings checkSettings)
protected void ensureViewportSize()
public ImageRotation getRotation()
public void setRotation(ImageRotation rotation)
rotation - The image rotation data.public void setForceFullPageScreenshot(boolean shouldForce)
public boolean getForceFullPageScreenshot()
public void setScrollToRegion(boolean shouldScroll)
public boolean getScrollToRegion()
public boolean shouldStitchContent()
public String getBaseAgentId()
getBaseAgentId in class com.applitools.eyes.EyesBaseprotected String tryCaptureDom()
tryCaptureDom in class com.applitools.eyes.EyesBaseprotected com.applitools.eyes.RectangleSize getViewportSize()
getViewportSize in class com.applitools.eyes.EyesBaseprotected com.applitools.eyes.config.Configuration setViewportSize(com.applitools.eyes.RectangleSize size)
setViewportSize in class com.applitools.eyes.EyesBaseprotected String getInferredEnvironment()
getInferredEnvironment in class com.applitools.eyes.EyesBasepublic org.openqa.selenium.WebDriver getDriver()
protected com.applitools.eyes.AppEnvironment getAppEnvironment()
This override also checks for mobile operating system.
getAppEnvironment in class com.applitools.eyes.EyesBasepublic double getDevicePixelRatio()
protected void tryUpdateDevicePixelRatio()
public void check(com.applitools.ICheckSettings... checkSettings)
public void check(com.applitools.ICheckSettings checkSettings)
public com.applitools.eyes.TestResults close(boolean throwEx)
close in class com.applitools.eyes.EyesBaseprotected void getAppOutputForOcr(BaseOcrRegion ocrRegion)
getAppOutputForOcr in class com.applitools.eyes.EyesBaseprotected com.applitools.eyes.capture.ScreenshotProvider getScreenshotProvider()
getScreenshotProvider in class com.applitools.eyes.EyesBasepublic void setMatchTimeout(int ms)
ms - Total number of ms to wait for a match.public int getMatchTimeout()
(RegionProvider, String, boolean, int) waits for a match.protected com.applitools.eyes.EyesScreenshot getScreenshot(com.applitools.eyes.Region targetRegion,
com.applitools.eyes.fluent.ICheckSettingsInternal checkSettingsInternal)
getScreenshot in class com.applitools.eyes.EyesBaseprotected String getTitle()
getTitle in class com.applitools.eyes.EyesBaseprotected com.applitools.eyes.MatchResult checkElement(org.openqa.selenium.WebElement element,
String name,
com.applitools.ICheckSettings checkSettings)
public void checkElement(org.openqa.selenium.WebElement element)
public void checkElement(org.openqa.selenium.WebElement element,
String tag)
public void checkElement(org.openqa.selenium.WebElement element,
int matchTimeout,
String tag)
public void checkElement(org.openqa.selenium.By selector)
public void checkElement(org.openqa.selenium.By selector,
String tag)
public void checkElement(org.openqa.selenium.By selector,
int matchTimeout,
String tag)
public void setSaveNewTests(boolean saveNewTests)
saveNewTests - True if new tests should be saved by default. False otherwise.public boolean getSaveNewTests()
public void setSaveDiffs(Boolean saveDiffs)
public Boolean getSaveDiffs()
public void setDefaultMatchSettings(com.applitools.eyes.ImageMatchSettings defaultMatchSettings)
public com.applitools.eyes.ImageMatchSettings getDefaultMatchSettings()
public int getStitchOverlap()
public void setStitchOverlap(int pixels)
pixels - The width (in pixels) of the overlap.protected EyesAppiumScreenshot getFullPageScreenshot()
protected EyesAppiumScreenshot getSimpleScreenshot()
protected com.applitools.eyes.MatchResult checkRegion(String name, com.applitools.ICheckSettings checkSettings)
public void checkRegion(com.applitools.eyes.Region region)
public void checkRegion(com.applitools.eyes.Region region,
int matchTimeout,
String tag)
throws com.applitools.eyes.exceptions.TestFailedException
com.applitools.eyes.exceptions.TestFailedExceptionpublic void checkRegion(org.openqa.selenium.WebElement element)
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 Map<String,List<com.applitools.eyes.Region>> locate(VisualLocatorSettings visualLocatorSettings)
public Configuration getConfiguration()
getConfiguration in class com.applitools.eyes.EyesBasepublic void setBranchName(String branchName)
public String getBranchName()
public void setParentBranchName(String branchName)
public String getParentBranchName()
public com.applitools.eyes.config.Configuration setBatch(com.applitools.eyes.BatchInfo batch)
setBatch in class com.applitools.eyes.EyesBaseprotected com.applitools.eyes.config.Configuration getConfigurationInstance()
getConfigurationInstance in class com.applitools.eyes.EyesBasepublic com.applitools.eyes.BatchInfo getBatch()
public void setAgentId(String agentId)
public String getAgentId()
public void setHostOS(String hostOS)
public String getHostOS()
public void setHostApp(String hostApp)
public String getHostApp()
public boolean getIgnoreCaret()
public void setIgnoreCaret(boolean value)
public void setMatchLevel(com.applitools.eyes.MatchLevel matchLevel)
public com.applitools.eyes.MatchLevel getMatchLevel()
public void setEnvName(String envName)
public String getEnvName()
public void setBaselineEnvName(String baselineEnvName)
public String getBaselineEnvName()
getBaselineEnvName in class com.applitools.eyes.EyesBasepublic void setBaselineBranchName(String branchName)
public String getBaselineBranchName()
public void setIgnoreDisplacements(boolean isIgnoreDisplacements)
public boolean getIgnoreDisplacements()
public void setConfiguration(com.applitools.eyes.config.Configuration configuration)
public Object getAgentSetup()
getAgentSetup in class com.applitools.eyes.EyesBaseCopyright © 2022. All rights reserved.