Search in sources :

Example 1 with ImageEditor

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();
}
Also used : ImageEditor(com.wikia.webdriver.common.core.imageutilities.ImageEditor) Shooter(com.wikia.webdriver.common.core.imageutilities.Shooter) ImageComparison(com.wikia.webdriver.common.core.imageutilities.ImageComparison) WebElement(org.openqa.selenium.WebElement)

Aggregations

ImageComparison (com.wikia.webdriver.common.core.imageutilities.ImageComparison)1 ImageEditor (com.wikia.webdriver.common.core.imageutilities.ImageEditor)1 Shooter (com.wikia.webdriver.common.core.imageutilities.Shooter)1 WebElement (org.openqa.selenium.WebElement)1