Skip to content

Commit

Permalink
[JS] Add code sample for setAcceptInsecureCerts
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 committed May 4, 2024
1 parent a15dd7a commit f7a469f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/javascript/test/capabilities/pageLoading.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ suite(function (env) {
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
await driver.quit();
});
it('Should be able to accept certs', async function () {
let driver = await env
.builder()
.setChromeOptions(options.setAcceptInsecureCerts(true))
.build();

await driver.get('https://www.selenium.dev/selenium/web/blank.html');
await driver.quit();
});
});
}, { browsers: [Browser.CHROME, Browser.FIREFOX]});

0 comments on commit f7a469f

Please sign in to comment.