Class SetupDriver

    • Constructor Detail

      • SetupDriver

        public SetupDriver()
    • Method Detail

      • setupLocalDriver

        public org.openqa.selenium.WebDriver setupLocalDriver​(Browser runLocallyBrowser,
                                                              String version)

        Sets up and returns a WebDriver to run test. This driver will run the test on the Browser provided in the RunLocally annotation.

        Parameters:
        runLocallyBrowser - Browser to run test on
        version - version of the browser
        Returns:
        WebDriver properly setup
      • setupLocalDriver

        public org.openqa.selenium.WebDriver setupLocalDriver​(Browser runLocallyBrowser)

        Sets up and returns a WebDriver to run test. This driver will run the test on the Browser provided in the RunLocally annotation.

        Parameters:
        runLocallyBrowser - Browser to run test on
        Returns:
        WebDriver properly setup
      • getDesiredCapabilities

        public org.openqa.selenium.remote.DesiredCapabilities getDesiredCapabilities()
        Used to determine which capabilities should be used when setting up a WebDriver for this test. Typically set by a test runner or left at its default (Firefox 24). If you want to run a test on a single browser other than Firefox 24 you can override this method.
        Returns:
        the requested browser capabilities
      • setDesiredCapabilities

        public void setDesiredCapabilities​(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
        Sets the requested browser capabilities (typically browser name and version)
        Parameters:
        desiredCapabilities - to be set