Class FixedTopBarShootingStrategy

  • All Implemented Interfaces:
    java.io.Serializable

    public class FixedTopBarShootingStrategy
    extends ru.yandex.qatools.ashot.screentaker.ShootingStrategy
    Takes 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 navbar
      FixedTopBarShootingStrategy​(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.BufferedImage getScreenshot​(org.openqa.selenium.WebDriver wd)  
      • Methods inherited from class ru.yandex.qatools.ashot.screentaker.ShootingStrategy

        simple
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Method Detail

      • getScreenshot

        public java.awt.image.BufferedImage getScreenshot​(org.openqa.selenium.WebDriver wd)
        Specified by:
        getScreenshot in class ru.yandex.qatools.ashot.screentaker.ShootingStrategy