@@ -0,0 +1,2165 @@
+/*%0A * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A */%0Apackage io.github.bonigarcia.test.docker;%0A%0Aimport static io.github.bonigarcia.BrowserType.CHROME;%0Aimport static java.lang.System.setProperty;%0Aimport static org.hamcrest.CoreMatchers.containsString;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0Aimport static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS;%0A%0Aimport java.io.File;%0A%0Aimport org.junit.jupiter.api.AfterAll;%0Aimport org.junit.jupiter.api.BeforeAll;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.TestInstance;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0Aimport org.openqa.selenium.remote.RemoteWebDriver;%0A%0Aimport io.github.bonigarcia.DockerBrowser;%0Aimport io.github.bonigarcia.SeleniumExtension;%0A%0A@ExtendWith(SeleniumExtension.class)%0A@TestInstance(PER_CLASS)%0Apublic class DockerHtmlVncJupiterTest %7B%0A%0A    File htmlFile;%0A%0A    @BeforeAll%0A    void setup() %7B%0A        setProperty(%22sel.jup.vnc.create.redirect.html.page%22, %22true%22);%0A    %7D%0A%0A    @AfterAll%0A    void teardown() %7B%0A        setProperty(%22sel.jup.vnc.create.redirect.html.page%22, %22false%22);%0A        assertTrue(htmlFile.exists());%0A        htmlFile.delete();%0A    %7D%0A%0A    @Test%0A    public void testHtmlVnc(%0A            @DockerBrowser(type = CHROME) RemoteWebDriver driver) %7B%0A        driver.get(%22https://bonigarcia.github.io/selenium-jupiter/%22);%0A        assertThat(driver.getTitle(),%0A                containsString(%22A JUnit 5 extension for Selenium WebDriver%22));%0A%0A        htmlFile = new File(driver.getSessionId() + %22.html%22);%0A    %7D%0A%0A%7D%0A

Include test using sel.jup.vnc.create.redirect.html.page key