@@ -0,0 +1,2177 @@
+/*%0D%0A * (C) Copyright 2022 Boni Garcia (https://bonigarcia.github.io/)%0D%0A *%0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A *%0D%0A *   http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A *%0D%0A */%0D%0Apackage io.github.bonigarcia.wdm.test.basic;%0D%0A%0D%0Aimport static org.assertj.core.api.Assertions.assertThat;%0D%0Aimport static org.assertj.core.api.Assumptions.assumeThat;%0D%0A%0D%0Aimport java.nio.file.Path;%0D%0Aimport java.util.Optional;%0D%0A%0D%0Aimport org.junit.jupiter.api.AfterEach;%0D%0Aimport org.junit.jupiter.api.BeforeAll;%0D%0Aimport org.junit.jupiter.api.BeforeEach;%0D%0Aimport org.junit.jupiter.api.Test;%0D%0Aimport org.openqa.selenium.WebDriver;%0D%0Aimport org.openqa.selenium.chrome.ChromeDriver;%0D%0Aimport org.openqa.selenium.chrome.ChromeOptions;%0D%0A%0D%0Aimport io.github.bonigarcia.wdm.WebDriverManager;%0D%0A%0D%0Aclass OperaTest %7B%0D%0A%0D%0A    WebDriver driver;%0D%0A    static Optional%3CPath%3E browserPath;%0D%0A%0D%0A    @BeforeAll%0D%0A    static void setupClass() %7B%0D%0A        WebDriverManager operadriver = WebDriverManager.operadriver();%0D%0A        browserPath = operadriver.getBrowserPath();%0D%0A        assumeThat(browserPath.isPresent());%0D%0A        operadriver.setup();%0D%0A        System.setProperty(%22webdriver.chrome.driver%22,%0D%0A                operadriver.getDownloadedDriverPath());%0D%0A    %7D%0D%0A%0D%0A    @BeforeEach%0D%0A    void setupTest() %7B%0D%0A        ChromeOptions options = new ChromeOptions();%0D%0A        options.setBinary(browserPath.get().toFile());%0D%0A        driver = new ChromeDriver();%0D%0A    %7D%0D%0A%0D%0A    @AfterEach%0D%0A    void teardown() %7B%0D%0A        driver.quit();%0D%0A    %7D%0D%0A%0D%0A    @Test%0D%0A    void test() %7B%0D%0A        driver.get(%22https://bonigarcia.dev/selenium-webdriver-java/%22);%0D%0A        assertThat(driver.getTitle())%0D%0A                .isEqualTo(%22Hands-On Selenium WebDriver with Java%22);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Include Opera test using Selenium 4.1.3 and WebDriverManager 5.1.0