Skip to content

Commit c974d7e

Browse files
committed
Add code sample for chrome command line args
1 parent 5bdcecb commit c974d7e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const Chrome = require('selenium-webdriver/chrome');
2+
const {suite} = require('selenium-webdriver/testing');
3+
const options = new Chrome.Options();
4+
5+
suite(function (env) {
6+
describe('Should be able to Test Command line arguments', function () {
7+
it('headless', async function () {
8+
let driver = await env
9+
.builder()
10+
.setChromeOptions(options.addArguments('headless'))
11+
.build();
12+
13+
await driver.get('https://www.google.com');
14+
await driver.quit();
15+
});
16+
});
17+
});

0 commit comments

Comments
 (0)