@@ -0,0 +1,2117 @@
+/*%0A * (C) Copyright 2018 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.wdm.test;%0A%0Aimport static java.util.Arrays.asList;%0Aimport static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.io.File;%0Aimport java.util.Collection;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.junit.runners.Parameterized.Parameter;%0Aimport org.junit.runners.Parameterized.Parameters;%0A%0Aimport io.github.bonigarcia.wdm.WebDriverManager;%0A%0A/**%0A * Test using wdm in interactive mode (from the shell).%0A *%0A * @author Boni Garcia (boni.gg@gmail.com)%0A * @since 2.1.2%0A */%0A@RunWith(Parameterized.class)%0Apublic class InteractiveTest %7B%0A%0A    public static final String EXT = IS_OS_WINDOWS ? %22.exe%22 : %22%22;%0A%0A    @Parameter(0)%0A    public String argument;%0A%0A    @Parameter(1)%0A    public String driver;%0A%0A    @Parameters(name = %22%7Bindex%7D: %7B0%7D%22)%0A    public static Collection%3CObject%5B%5D%3E data() %7B%0A        return asList(new Object%5B%5D%5B%5D %7B %7B %22chrome%22, %22chromedriver%22 + EXT %7D,%0A                %7B %22firefox%22, %22geckodriver%22 + EXT %7D,%0A                %7B %22opera%22, %22operadriver%22 + EXT %7D,%0A                %7B %22phantomjs%22, %22phantomjs%22 + EXT %7D,%0A                %7B %22edge%22, %22MicrosoftWebDriver.exe%22 %7D,%0A                %7B %22iexplorer%22, %22IEDriverServer.exe%22 %7D %7D);%0A    %7D%0A%0A    @Test%0A    public void testInteractive() %7B%0A        WebDriverManager.main(new String%5B%5D %7B argument %7D);%0A        File binary = new File(driver);%0A        assertTrue(binary.exists());%0A        binary.delete();%0A    %7D%0A%0A%7D%0A

Include test for interactive mode (from the shell)