@@ -0,0 +1,2229 @@
+/*%0A * (C) Copyright 2019 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.seljup.test.advance;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.chrome.ChromeDriver;%0Aimport org.openqa.selenium.chrome.ChromeOptions;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0Aimport org.openqa.selenium.firefox.FirefoxOptions;%0A%0Aimport io.github.bonigarcia.seljup.Options;%0Aimport io.github.bonigarcia.seljup.SeleniumExtension;%0A%0A@ExtendWith(SeleniumExtension.class)%0Apublic class SeveralOptionsJupiterTest %7B%0A%0A    @Options%0A    ChromeOptions chromeOptions = new ChromeOptions();%0A    %7B%0A        chromeOptions.addArguments(%22--use-fake-device-for-media-stream%22,%0A                %22--use-fake-ui-for-media-stream%22);%0A    %7D%0A%0A    @Options%0A    FirefoxOptions firefoxOptions = new FirefoxOptions();%0A    %7B%0A        firefoxOptions.addPreference(%22media.navigator.streams.fake%22, true);%0A        firefoxOptions.addPreference(%22media.navigator.permission.disabled%22,%0A                true);%0A    %7D%0A%0A    @Test%0A    void webrtcTest(ChromeDriver chrome, FirefoxDriver firefox) %7B%0A        exercise(chrome, firefox);%0A    %7D%0A%0A    void exercise(WebDriver... drivers) %7B%0A        for (WebDriver driver : drivers) %7B%0A            driver.get(%0A                    %22https://webrtc.github.io/samples/src/content/devices/input-output/%22);%0A            assertThat(driver.findElement(By.id(%22video%22)).getTagName(),%0A                    equalTo(%22video%22));%0A        %7D%0A    %7D%0A%0A%7D%0A

Add test using different @Options (for Chrome and Firefox) in the same class