use of com.wikia.webdriver.common.core.imageutilities.ImageEditor in project selenium-tests by Wikia.
the class AdsSkinHelper method init.
private void init() {
this.adsComparison = new AdsComparison();
this.imageEditor = new ImageEditor();
this.shooter = new Shooter();
this.imageComparison = new ImageComparison();
WebElement wikiaArticle = driver.findElement(By.id("WikiaPageBackground"));
WebElement globalNavigation = driver.findElement(By.id("globalNavigation"));
this.viewPortWidth = globalNavigation.getSize().getWidth();
this.startSkinY = globalNavigation.getSize().getHeight();
this.articleLeftSideX = wikiaArticle.getLocation().x;
this.articleBottomY = wikiaArticle.getLocation().y + wikiaArticle.getSize().getHeight();
this.articleRightSideX = wikiaArticle.getLocation().x + wikiaArticle.getSize().getWidth();
}
Aggregations