public class ChromeBrowserTest extends ViewOrUITest
It is required to set system property with path to the driver to be able to run the test.
The test can be executed locally and on a test Hub. Chrome browser is used
only if test is executed locally. The test Hub target browsers can be
configured via getHubBrowsersToTest().
BROWSERSTACK_IDENTIFIER, BROWSERSTACK_IDENTIFIER_PROPERTY, SERVER_PORT, SERVER_PORT_PROPERTY_KEY, testName, USE_BROWSERSTACK, USE_BROWSERSTACK_PROPERTY, USE_HUB, USE_HUB_PROPERTY| Constructor and Description |
|---|
ChromeBrowserTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.openqa.selenium.chrome.ChromeOptions |
createHeadlessChromeOptions() |
protected List<org.openqa.selenium.remote.DesiredCapabilities> |
customizeCapabilities(List<org.openqa.selenium.remote.DesiredCapabilities> capabilities) |
protected List<org.openqa.selenium.remote.DesiredCapabilities> |
getBrowserCapabilities(com.vaadin.testbench.parallel.Browser... browsers)
Gets browser capabilities for the provided
browsers. |
protected List<org.openqa.selenium.remote.DesiredCapabilities> |
getHubBrowsersToTest()
Gets the browsers capabilities list to execute test on the tests Hub.
|
static void |
setChromeDriverPath()
Sets up the chrome driver path in a system variable.
|
void |
setup() |
getTestPath, getUIClass, getViewClasscheckIfServerAvailable, getBrowsersToTest, getCurrentHostAddress, getDeploymentHostname, getDeploymentPort, getHubHostname, getLocalExecution, getRootURL, getRunLocallyBrowser, getRunLocallyBrowserVersion, getTestURL, getTestURL, open, open, openForEs6Url, openProduction, openProductionWithTiming, openUrl, verifyScreenshotassertEquals, blur, checkLogsForErrors, checkLogsForErrors, clickElementWithJs, clickElementWithJs, drag, dragAndDrop, dragElementOver, executeScript, getLogEntries, getScrollX, getScrollY, hasCssClass, isElementPresent, scrollBy, scrollIntoViewAndClick, scrollToElement, waitForDevServer, waitForElementNotPresent, waitForElementPresent, waitForElementVisible, waitUntilNot, waitUntilNotgetDefaultCapabilities, getDesiredCapabilities, getHubURL, getRunOnHub, setDesiredCapabilitiesconcatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrappublic static void setChromeDriverPath()
public void setup()
throws Exception
setup in class com.vaadin.testbench.parallel.ParallelTestExceptionprotected List<org.openqa.selenium.remote.DesiredCapabilities> getHubBrowsersToTest()
AbstractTestBenchTest
This list will be used only for the tests Hub. Local test execution is
managed by LocalExecution annotation.
The method AbstractTestBenchTest.getBrowsersToTest() delegates the logic to this
method in case AbstractTestBenchTest.getLocalExecution() return value is an empty
optional (i.e. the tests Hub is used).
getHubBrowsersToTest in class AbstractTestBenchTestprotected List<org.openqa.selenium.remote.DesiredCapabilities> getBrowserCapabilities(com.vaadin.testbench.parallel.Browser... browsers)
AbstractTestBenchTestbrowsers.getBrowserCapabilities in class AbstractTestBenchTestbrowsers - a browsers listbrowsersprotected List<org.openqa.selenium.remote.DesiredCapabilities> customizeCapabilities(List<org.openqa.selenium.remote.DesiredCapabilities> capabilities)
protected org.openqa.selenium.chrome.ChromeOptions createHeadlessChromeOptions()
Copyright © 2000–2025 Vaadin Ltd. All rights reserved.