|
21 | 21 | import static org.assertj.core.api.AssertionsForClassTypes.assertThatThrownBy; |
22 | 22 | import static org.junit.jupiter.api.Assertions.fail; |
23 | 23 | import static org.junit.jupiter.api.Assumptions.assumeTrue; |
24 | | -import static org.mockito.Mockito.atLeastOnce; |
25 | 24 | import static org.mockito.Mockito.doThrow; |
26 | 25 | import static org.mockito.Mockito.mock; |
27 | | -import static org.mockito.Mockito.spy; |
28 | | -import static org.mockito.Mockito.verify; |
29 | 26 | import static org.openqa.selenium.WaitingConditions.elementValueToEqual; |
30 | 27 | import static org.openqa.selenium.firefox.FirefoxAssumptions.assumeDefaultBrowserLocationUsed; |
31 | 28 | import static org.openqa.selenium.remote.CapabilityType.ACCEPT_INSECURE_CERTS; |
|
43 | 40 | import org.mockito.ArgumentMatchers; |
44 | 41 | import org.openqa.selenium.By; |
45 | 42 | import org.openqa.selenium.Capabilities; |
46 | | -import org.openqa.selenium.Dimension; |
47 | 43 | import org.openqa.selenium.HasCapabilities; |
48 | 44 | import org.openqa.selenium.ImmutableCapabilities; |
49 | 45 | import org.openqa.selenium.JavascriptExecutor; |
@@ -96,17 +92,6 @@ public void canStartDriverWithNoParameters() { |
96 | 92 | .isEqualTo("firefox"); |
97 | 93 | } |
98 | 94 |
|
99 | | - @Test |
100 | | - @NoDriverBeforeTest |
101 | | - public void canStartDriverWithSpecifiedBinary() { |
102 | | - FirefoxBinary binary = spy(new FirefoxBinary()); |
103 | | - FirefoxOptions options = new FirefoxOptions().setBinary(binary); |
104 | | - |
105 | | - localDriver = new WebDriverBuilder().get(options); |
106 | | - |
107 | | - verify(binary, atLeastOnce()).getPath(); |
108 | | - } |
109 | | - |
110 | 95 | @Test |
111 | 96 | void shouldGetMeaningfulExceptionOnBrowserDeath() throws Exception { |
112 | 97 | RemoteWebDriver driver2 = (RemoteWebDriver) new WebDriverBuilder().get(); |
@@ -175,20 +160,6 @@ public void shouldBeAbleToStartANewInstanceEvenWithVerboseLogging() { |
175 | 160 | new FirefoxDriver(service, (FirefoxOptions) FIREFOX.getCapabilities()).quit(); |
176 | 161 | } |
177 | 162 |
|
178 | | - @Test |
179 | | - @NoDriverBeforeTest |
180 | | - public void shouldBeAbleToPassCommandLineOptions() { |
181 | | - FirefoxBinary binary = new FirefoxBinary(); |
182 | | - binary.addCommandLineOptions("-width", "800", "-height", "600"); |
183 | | - |
184 | | - localDriver = new WebDriverBuilder().get(new FirefoxOptions().setBinary(binary)); |
185 | | - Dimension size = localDriver.manage().window().getSize(); |
186 | | - assertThat(size.width).isGreaterThanOrEqualTo(800); |
187 | | - assertThat(size.width).isLessThan(850); |
188 | | - assertThat(size.height).isGreaterThanOrEqualTo(600); |
189 | | - assertThat(size.height).isLessThan(650); |
190 | | - } |
191 | | - |
192 | 163 | @Test |
193 | 164 | @NoDriverBeforeTest |
194 | 165 | public void canPassCapabilities() { |
|
0 commit comments