Skip to content

Commit f7a469f

Browse files
committed
[JS] Add code sample for setAcceptInsecureCerts
1 parent a15dd7a commit f7a469f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/javascript/test/capabilities/pageLoading.spec.js

+9
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,14 @@ suite(function (env) {
3434
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
3535
await driver.quit();
3636
});
37+
it('Should be able to accept certs', async function () {
38+
let driver = await env
39+
.builder()
40+
.setChromeOptions(options.setAcceptInsecureCerts(true))
41+
.build();
42+
43+
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
44+
await driver.quit();
45+
});
3746
});
3847
}, { browsers: [Browser.CHROME, Browser.FIREFOX]});

0 commit comments

Comments
 (0)