We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bdcecb commit c974d7eCopy full SHA for c974d7e
examples/javascript/test/browser/chromeSpecificCaps.spec.js
@@ -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