diff --git a/README.md b/README.md index 2c44964..0bc7565 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ You can also verify the project in production mode by running: mvn verify -Pproduction -Or deploy the deploy the application in production executing: +Or deploy the application in production executing: mvn jetty:run-war -Pproduction @@ -56,4 +56,4 @@ The screenshot comparison example in `src/test/java/com/vaadin/testbenchexample/ JUnit5 is supported since TestBench 9, examples can be found at `src/test/java/com/vaadin/testbenchexample/junit5`. ### TestBench together with Selenium-Jupiter -It is possible to use TestBench together with Selenium-Jupiter JUnit5 extension, see example test at `src/test/java/com/vaadin/testbenchexample/junit5/SimpleCaseSeleniumIT`. \ No newline at end of file +It is possible to use TestBench together with Selenium-Jupiter JUnit5 extension, see example test at `src/test/java/com/vaadin/testbenchexample/junit5/SimpleCaseSeleniumIT`. diff --git a/src/test/java/com/vaadin/testbenchexample/AbstractIT.java b/src/test/java/com/vaadin/testbenchexample/AbstractIT.java index 403bfd8..1de468d 100644 --- a/src/test/java/com/vaadin/testbenchexample/AbstractIT.java +++ b/src/test/java/com/vaadin/testbenchexample/AbstractIT.java @@ -24,7 +24,7 @@ public abstract class AbstractIT extends TestBenchTestCase { public void setUp() throws Exception { ChromeOptions options = new ChromeOptions(); if (Boolean.getBoolean("com.vaadin.testbench.Parameters.headless")) { - options.addArguments("--headless"); + options.addArguments("--headless=new"); } setDriver(TestBench.createDriver(new ChromeDriver(options))); getDriver().get("http://" + IPAddress.findSiteLocalAddress() + ":8080"); diff --git a/src/test/java/com/vaadin/testbenchexample/junit5/AbstractJUnit5IT.java b/src/test/java/com/vaadin/testbenchexample/junit5/AbstractJUnit5IT.java index be50e2b..761cbad 100644 --- a/src/test/java/com/vaadin/testbenchexample/junit5/AbstractJUnit5IT.java +++ b/src/test/java/com/vaadin/testbenchexample/junit5/AbstractJUnit5IT.java @@ -24,7 +24,7 @@ public abstract class AbstractJUnit5IT extends BrowserTestBase implements Driver public WebDriver createDriver() { ChromeOptions options = new ChromeOptions(); if (Boolean.getBoolean("com.vaadin.testbench.Parameters.headless")) { - options.addArguments("--headless"); + options.addArguments("--headless=new"); } return TestBench.createDriver(new ChromeDriver(options)); } diff --git a/src/test/java/com/vaadin/testbenchexample/junit5/SimpleCaseSeleniumIT.java b/src/test/java/com/vaadin/testbenchexample/junit5/SimpleCaseSeleniumIT.java index e66647f..206fe55 100644 --- a/src/test/java/com/vaadin/testbenchexample/junit5/SimpleCaseSeleniumIT.java +++ b/src/test/java/com/vaadin/testbenchexample/junit5/SimpleCaseSeleniumIT.java @@ -28,7 +28,7 @@ public class SimpleCaseSeleniumIT implements HasElementQuery { @BeforeEach - public void beforeEach(@Arguments("--headless") ChromeDriver driver) { // driver injection by Selenium + public void beforeEach(@Arguments("--headless=new") ChromeDriver driver) { // driver injection by Selenium this.driver = TestBench.createDriver(driver); // TestBench driver proxy this.driver.get("http://" + IPAddress.findSiteLocalAddress() + ":8080"); }