From 4c0e7d7f9958c10ebd77d688724a7d55da41700a Mon Sep 17 00:00:00 2001 From: Ravi Kumar Gajul <51070896+ravigajul@users.noreply.github.com> Date: Wed, 19 Jun 2024 09:24:24 -0700 Subject: [PATCH 1/2] Update OptionsTest.java --- .../test/java/dev/selenium/drivers/OptionsTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java b/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java index 1b33e640dd65..15db6737ff86 100644 --- a/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java +++ b/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java @@ -47,5 +47,18 @@ public void setPageLoadStrategyNone() { driver.quit(); } } + + @Test + public void setAcceptInsecureCerts() { + ChromeOptions chromeOptions = new ChromeOptions(); + options.setAcceptInsecureCerts(true); + WebDriver driver = new ChromeDriver(chromeOptions); + try { + // Navigate to Url + driver.get("https://selenium.dev"); + } finally { + driver.quit(); + } + } } From 5a6af46c6174d7e0a0005f4bd64e52909870e24c Mon Sep 17 00:00:00 2001 From: Ravi Kumar Gajul <51070896+ravigajul@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:47:21 -0700 Subject: [PATCH 2/2] Update OptionsTest.java updated to chromeOptions.setAcceptInsecureCerts(true); from options.setAcceptInsecureCerts(true); --- .../java/src/test/java/dev/selenium/drivers/OptionsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java b/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java index 15db6737ff86..2010cd7b4964 100644 --- a/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java +++ b/examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java @@ -51,7 +51,7 @@ public void setPageLoadStrategyNone() { @Test public void setAcceptInsecureCerts() { ChromeOptions chromeOptions = new ChromeOptions(); - options.setAcceptInsecureCerts(true); + chromeOptions.setAcceptInsecureCerts(true); WebDriver driver = new ChromeDriver(chromeOptions); try { // Navigate to Url