@Test public void compareDifferentImagesUsingFile() throws Exception { driver.get("http: File localImage = new File(this.wrongLocalImage.toURI()); WebElement remoteImage = driver.findElement(By.id(locator)); CompareImages imageCompare = new CompareImages(localImage, remoteImage, driver); assertThat(imageCompare.compareImages(), is(equalTo(false))); }
public CompareImages(File localFile, WebElement remoteImage, WebDriver driver) throws Exception { this.localFileObject = new FileHandler(localFile); this.remoteImageObject = remoteImage; this.driver = driver; }
CompareImages { public CompareImages(File localFile, WebElement remoteImage, WebDriver driver) throws Exception { this.localFileObject = new FileHandler(localFile); this.remoteImageObject = remoteImage; this.driver = driver; } }
CompareImages { public CompareImages(File localFile, WebElement remoteImage, WebDriver driver) throws Exception { this.localFileObject = new FileHandler(localFile); this.remoteImageObject = remoteImage; this.driver = driver; } CompareImages(File localFile, WebElement remoteImage, WebDriver driver);  CompareImages(String localFile, WebElement remoteImage, WebDriver driver); }
CompareImages { public CompareImages(File localFile, WebElement remoteImage, WebDriver driver) throws Exception { this.localFileObject = new FileHandler(localFile); this.remoteImageObject = remoteImage; this.driver = driver; } CompareImages(File localFile, WebElement remoteImage, WebDriver driver);  CompareImages(String localFile, WebElement remoteImage, WebDriver driver); void changeLocalFileTo(File localfile); void changeLocalFileTo(String localfile); void changeRemoteImageTo(WebElement remoteImage); File getLocalImage(); WebElement getRemoteImageWebElement(); Boolean compareImages(); }
CompareImages { public CompareImages(File localFile, WebElement remoteImage, WebDriver driver) throws Exception { this.localFileObject = new FileHandler(localFile); this.remoteImageObject = remoteImage; this.driver = driver; } CompareImages(File localFile, WebElement remoteImage, WebDriver driver);  CompareImages(String localFile, WebElement remoteImage, WebDriver driver); void changeLocalFileTo(File localfile); void changeLocalFileTo(String localfile); void changeRemoteImageTo(WebElement remoteImage); File getLocalImage(); WebElement getRemoteImageWebElement(); Boolean compareImages();  }