Class WebDriverHooks

    • Constructor Detail

      • WebDriverHooks

        public WebDriverHooks()
    • Method Detail

      • before

        public void before​(io.cucumber.core.api.Scenario scenario)
        Initialise the web driver.
        Specified by:
        before in interface CucumberHook
        Overrides:
        before in class AbstractCucumberHook
        Parameters:
        scenario - Cucumber scenario
      • after

        public void after​(io.cucumber.core.api.Scenario scenario)
        Close the web driver.
        Specified by:
        after in interface CucumberHook
        Overrides:
        after in class AbstractCucumberHook
        Parameters:
        scenario - Cucumber scenario