/** * 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. * @throws Exception if the webdriver cannot be created. */ public TestBrowser(Class<? extends WebDriver> webDriver, String baseUrl) throws Exception { this(play.api.test.WebDriverFactory.apply(webDriver), baseUrl); }
/** * 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. * @throws Exception if the webdriver cannot be created. */ public TestBrowser(Class<? extends WebDriver> webDriver, String baseUrl) throws Exception { this(play.api.test.WebDriverFactory.apply(webDriver), baseUrl); }
/** * 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); }
/** * Executes a block of code in a running server, with a test browser. * * @param server the test server. * @param webDriver the web driver class. * @param block the block of code to execute. */ public static void running(TestServer server, Class<? extends WebDriver> webDriver, final Consumer<TestBrowser> block) { running(server, play.api.test.WebDriverFactory.apply(webDriver), block); }
/** * 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); }
/** * Executes a block of code in a running server, with a test browser. * * @param server the test server. * @param webDriver the web driver class. * @param block the block of code to execute. */ public static void running(TestServer server, Class<? extends WebDriver> webDriver, final Consumer<TestBrowser> block) { running(server, play.api.test.WebDriverFactory.apply(webDriver), block); }
/** * 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); }