Skip to content

Commit 758be08

Browse files
committed
[JS] Add code sample for exclude switches
1 parent 6b9f76b commit 758be08

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/javascript/test/browser/chromeSpecificCaps.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,15 @@ suite(function (env) {
1313
await driver.get('https://www.google.com');
1414
await driver.quit();
1515
});
16+
17+
it('exclude switches', async function () {
18+
let driver = await env
19+
.builder()
20+
.setChromeOptions(options.excludeSwitches('enable-automation'))
21+
.build();
22+
23+
await driver.get('https://www.google.com');
24+
await driver.quit();
25+
});
1626
});
1727
});

0 commit comments

Comments
 (0)