Package at.willhaben.willtest.util
Class FixedTopBarShootingStrategy
- java.lang.Object
-
- ru.yandex.qatools.ashot.screentaker.ShootingStrategy
-
- at.willhaben.willtest.util.FixedTopBarShootingStrategy
-
- All Implemented Interfaces:
java.io.Serializable
public class FixedTopBarShootingStrategy extends ru.yandex.qatools.ashot.screentaker.ShootingStrategyTakes a screenshot of the whole website by scrolling down an combine all screenshots. Its also possible to remove a fixed header navbar.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FixedTopBarShootingStrategy(int headerToCut)Creates shootingstragety which takes screenshot of the whole page and the ability to remove a fixed header navbarFixedTopBarShootingStrategy(org.openqa.selenium.By topElementToRemove)Creates shootingstragety which takes screenshot of the whole page and the ability to remove a fixed header navbar
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagegetScreenshot(org.openqa.selenium.WebDriver wd)
-
-
-
Constructor Detail
-
FixedTopBarShootingStrategy
public FixedTopBarShootingStrategy(org.openqa.selenium.By topElementToRemove)
Creates shootingstragety which takes screenshot of the whole page and the ability to remove a fixed header navbar- Parameters:
topElementToRemove- unique identifier of the top navbar
-
FixedTopBarShootingStrategy
public FixedTopBarShootingStrategy(int headerToCut)
Creates shootingstragety which takes screenshot of the whole page and the ability to remove a fixed header navbar- Parameters:
headerToCut- size of the header to remove in px
-
-