use of ru.yandex.qatools.ashot.shooting.ShootingStrategy in project ashot by yandex-qatools.
the class ScalingDecoratorTest method testDpr.
@SuppressWarnings("UnusedDeclaration")
@Test
public void testDpr() throws Exception {
ShootingStrategy dpr2Strategy = new ScalingDecorator(new SimpleShootingStrategy()).withDpr(2);
Screenshot screenshot = new AShot().shootingStrategy(dpr2Strategy).takeScreenshot(getDriver());
assertThat(screenshot.getImage(), ImageTool.equalImage(loadImage("img/expected/dpr.png")));
}
Aggregations