com.atlassian.selenium.visualcomparison
Class VisualComparer
java.lang.Object
com.atlassian.selenium.visualcomparison.VisualComparer
public class VisualComparer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisualComparer
public VisualComparer(VisualComparableClient client)
getWaitforJQueryTimeout
public long getWaitforJQueryTimeout()
setWaitforJQueryTimeout
public void setWaitforJQueryTimeout(long waitforJQueryTimeout)
setScreenResolutions
public void setScreenResolutions(ScreenResolution[] resolutions)
getScreenResolutions
public ScreenResolution[] getScreenResolutions()
setRefreshAfterResize
public void setRefreshAfterResize(boolean refreshAfterResize)
getRefreshAfterResize
public boolean getRefreshAfterResize()
setUIStringReplacements
public void setUIStringReplacements(Map<String,String> uiStringReplacements)
getUIStringReplacements
public Map<String,String> getUIStringReplacements()
enableReportGeneration
public void enableReportGeneration(String reportOutputPath)
disableReportGeneration
public void disableReportGeneration()
setTempPath
public void setTempPath(String tempPath)
getTempPath
public String getTempPath()
getIgnoreAreas
public List<BoundingBox> getIgnoreAreas()
getIgnoreSingleLineDiffs
public boolean getIgnoreSingleLineDiffs()
setIgnoreSingleLineDiffs
public void setIgnoreSingleLineDiffs(boolean ignoreSingleLineDiffs)
setIgnoreAreas
public void setIgnoreAreas(List<BoundingBox> ignoreAreas)
assertUIMatches
public void assertUIMatches(String id,
String baselineImagePath)
uiMatches
public boolean uiMatches(String id,
String baselineImagePath)
throws Exception
- Throws:
Exception
takeScreenshots
public ArrayList<Screenshot> takeScreenshots(String id)
throws IOException
- Throws:
IOException
loadBaselineScreenshots
public ArrayList<Screenshot> loadBaselineScreenshots(String id,
String baselineImagePath)
throws IOException
- Throws:
IOException
replaceUIHtml
protected void replaceUIHtml(String id,
String newContent)
compareScreenshots
public boolean compareScreenshots(ArrayList<Screenshot> oldScreenshots,
ArrayList<Screenshot> newScreenshots)
throws Exception
- Throws:
Exception
getScreenshotDiff
public ScreenshotDiff getScreenshotDiff(Screenshot oldScreenshot,
Screenshot newScreenshot)
throws Exception
- Throws:
Exception
Copyright © 2014 Atlassian. All rights reserved.