Skip to content

Commit

Permalink
Fix ChromeOptionsFunctionalTest.canSetAcceptInsecureCerts (#7447)
Browse files Browse the repository at this point in the history
Replace OSS ACCEPT_SSL_CERTS capability with W3C ACCEPT_INSECURE_CERTS.
  • Loading branch information
JohnChen0 authored and shs96c committed Aug 1, 2019
1 parent 52cbeb4 commit 5af55c7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.openqa.selenium.chrome;

import static org.assertj.core.api.Assertions.assertThat;
import static org.openqa.selenium.remote.CapabilityType.ACCEPT_SSL_CERTS;
import static org.openqa.selenium.remote.CapabilityType.ACCEPT_INSECURE_CERTS;
import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;

Expand Down Expand Up @@ -74,13 +74,12 @@ public void optionsStayEqualAfterSerialization() {

@NeedsLocalEnvironment
@Test
@NotYetImplemented(value = CHROME, reason = "Broken in Chrome 75")
public void canSetAcceptInsecureCerts() {
ChromeOptions options = new ChromeOptions();
options.setAcceptInsecureCerts(true);
driver = new ChromeDriver(options);

assertThat(driver.getCapabilities().getCapability(ACCEPT_SSL_CERTS)).isEqualTo(true);
assertThat(driver.getCapabilities().getCapability(ACCEPT_INSECURE_CERTS)).isEqualTo(true);
}

@NeedsLocalEnvironment
Expand Down

0 comments on commit 5af55c7

Please sign in to comment.