Skip to content

Commit cc39279

Browse files
Mindstix_ AniketKMindstix_ AniketK
authored andcommitted
Removed ACCEPT SSL Certification capability for Chrome and Firefox
webdriver
1 parent cbd715d commit cc39279

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/mindstix/cb/utils/DriverUtility.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.openqa.selenium.firefox.FirefoxDriver;
1717
import org.openqa.selenium.firefox.FirefoxOptions;
1818
import org.openqa.selenium.ie.InternetExplorerDriver;
19-
import org.openqa.selenium.remote.CapabilityType;
2019
import org.openqa.selenium.remote.DesiredCapabilities;
2120
import org.openqa.selenium.remote.RemoteWebDriver;
2221
import org.slf4j.Logger;
@@ -112,8 +111,6 @@ private static WebDriver initChromeDriver() {
112111
if (mode != null) {
113112
switch (mode) {
114113
case "normal":
115-
DesiredCapabilities handlSSLErr = DesiredCapabilities.chrome();
116-
handlSSLErr.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
117114
webDriver = new ChromeDriver();
118115
break;
119116
case "headless":
@@ -161,8 +158,6 @@ private static WebDriver initFirefoxDriver() {
161158
if (mode != null) {
162159
switch (mode) {
163160
case "normal":
164-
DesiredCapabilities handlSSLErr = DesiredCapabilities.firefox();
165-
handlSSLErr.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
166161
webDriver = new FirefoxDriver();
167162
break;
168163
case "headless":

0 commit comments

Comments
 (0)