Class SeleniumScreenshotRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class SeleniumScreenshotRule
    extends Object
    implements org.junit.rules.TestRule
    Allows to take screenshots in case of an selenium test error.
    • Field Detail

      • webDriver

        protected org.openqa.selenium.WebDriver webDriver
    • Constructor Detail

      • SeleniumScreenshotRule

        public SeleniumScreenshotRule​(org.openqa.selenium.WebDriver driver)
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule