Ejemplo n.º 1
0
 /** Executes a block of code in a running server, with a test browser. */
 public static void running(
     TestServer server, Class<? extends WebDriver> webDriver, final Callback<TestBrowser> block) {
   running(server, play.api.test.WebDriverFactory.apply(webDriver), block);
 }
Ejemplo n.º 2
0
 /**
  * A test browser (Using Selenium WebDriver) with the FluentLenium API
  * (https://github.com/Fluentlenium/FluentLenium).
  *
  * @param webDriver The WebDriver instance to use.
  * @param baseUrl The base url to use for relative requests.
  */
 public TestBrowser(Class<? extends WebDriver> webDriver, String baseUrl) throws Exception {
   this(play.api.test.WebDriverFactory.apply(webDriver), baseUrl);
 }