Skip to content

Commit a9ea48e

Browse files
committed
[JS] Add code sample for chrome browser binary
1 parent f20f5df commit a9ea48e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,15 @@ suite(function (env) {
3535
// As tests runs in ci, quitting the driver instance to avoid any failures
3636
await driver.quit();
3737
});
38+
39+
xit('Keep browser open - set detach to true ', async function () {
40+
let driver = await env
41+
.builder()
42+
.setChromeOptions(options.setChromeBinaryPath(`Path to chrome binary`))
43+
.build();
44+
45+
await driver.get('https://www.google.com');
46+
await driver.quit();
47+
});
3848
});
3949
});

0 commit comments

Comments
 (0)