Skip to content

Commit 111a303

Browse files
committed
When running tests against the remote server, ignore two tests that use
required capabilities. The remote server only supports desired capabilities on new session requests.
1 parent 3a69b83 commit 111a303

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/client/test/org/openqa/selenium/ProxySettingTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import static org.openqa.selenium.testing.Ignore.Driver.OPERA;
3232
import static org.openqa.selenium.testing.Ignore.Driver.OPERA_MOBILE;
3333
import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
34+
import static org.openqa.selenium.testing.Ignore.Driver.REMOTE;
3435
import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
3536

3637
import com.google.common.base.Charsets;
@@ -167,7 +168,7 @@ public void canUsePACThatOnlyProxiesCertainHosts() throws Exception {
167168
"Heading", driver.findElement(By.tagName("h1")).getText());
168169
}
169170

170-
@Ignore({ANDROID, CHROME, HTMLUNIT, IE, IPHONE, OPERA, OPERA_MOBILE, PHANTOMJS, SAFARI})
171+
@Ignore({ANDROID, CHROME, HTMLUNIT, IE, IPHONE, OPERA, OPERA_MOBILE, PHANTOMJS, REMOTE, SAFARI})
171172
@NeedsLocalEnvironment
172173
@Test
173174
public void canConfigureProxyWithRequiredCapability() {
@@ -182,7 +183,7 @@ public void canConfigureProxyWithRequiredCapability() {
182183
assertTrue("Proxy should have been called", proxyServer.hasBeenCalled("simpleTest.html"));
183184
}
184185

185-
@Ignore({ANDROID, CHROME, HTMLUNIT, IE, IPHONE, OPERA, OPERA_MOBILE, PHANTOMJS, SAFARI})
186+
@Ignore({ANDROID, CHROME, HTMLUNIT, IE, IPHONE, OPERA, OPERA_MOBILE, PHANTOMJS, REMOTE, SAFARI})
186187
@NeedsLocalEnvironment
187188
@Test
188189
public void requiredProxyCapabilityShouldHavePriority() {

0 commit comments

Comments
 (0)