/*
 * (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package io.github.bonigarcia.seljup.test.advance;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.BeforeAll;
// tag::snippet-in-doc[]
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import io.github.bonigarcia.seljup.SeleniumJupiter;
import io.github.bonigarcia.wdm.WebDriverManager;

@ExtendWith(SeleniumJupiter.class)
class MultipleConfigWdmJupiterTest {

    @BeforeAll
    static void setup() {
        WebDriverManager.chromedriver().driverVersion("2.35");
        WebDriverManager.firefoxdriver().driverVersion("0.22.0");
    }

    @Test
    void multipleConfigTest(ChromeDriver chrome, FirefoxDriver firefox) {
        String sut = "https://bonigarcia.github.io/selenium-jupiter/";
        String title = "JUnit 5 extension for Selenium";

        chrome.get(sut);
        firefox.get(sut);

        assertThat(chrome.getTitle()).contains(title);
        assertThat(firefox.getTitle()).contains(title);
    }

}

@@ -774,16 +774,55 @@
 oreAll;%0A
+import org.junit.jupiter.api.Disabled;%0A
 // tag::
@@ -1161,16 +1161,44 @@
 .class)%0A
+@Disabled(%22Redundant test%22)%0A
 class Mu
@@ -1312,28 +1312,22 @@
 r().
-driverVersion(%222.35%22
+forceDownload(
 );%0A 
@@ -1370,30 +1370,40 @@
 r().
-driverVersion(%220.22.0%22
+useLocalVersionsPropertiesFirst(
 );%0A 

Fix test using different configurations of wdm