Interface TestBenchBrowserFactory

All Known Implementing Classes:
DefaultBrowserFactory

public interface TestBenchBrowserFactory

Interface used to create DesiredCapabilities configurations suitable for test cases.

This interface should be implemented and used in test cases through the BrowserFactory annotation. Classes that implement this interface must have a constructor with zero arguments.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.openqa.selenium.remote.DesiredCapabilities
    create(Browser browser)
     
    org.openqa.selenium.remote.DesiredCapabilities
    create(Browser browser, String version)
     
    org.openqa.selenium.remote.DesiredCapabilities
    create(Browser browser, String version, org.openqa.selenium.Platform platform)
     
  • Method Details

    • create

      org.openqa.selenium.remote.DesiredCapabilities create(Browser browser)
      Parameters:
      browser - generic browser to run the test on
      Returns:
      DesiredCapabilities with given browser, and default version and platform
    • create

      org.openqa.selenium.remote.DesiredCapabilities create(Browser browser, String version)
      Parameters:
      browser - generic browser to run the test on
      version - browser version
      Returns:
      DesiredCapabilities with given browser and version, and default platform
    • create

      org.openqa.selenium.remote.DesiredCapabilities create(Browser browser, String version, org.openqa.selenium.Platform platform)
      Parameters:
      browser - generic browser to run the test on
      version - browser version
      platform - platform in which to run the test
      Returns:
      DesiredCapabilities with given browser, version and platform