forked from SeleniumHQ/seleniumhq.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusage.spec.js
More file actions
32 lines (24 loc) · 976 Bytes
/
usage.spec.js
File metadata and controls
32 lines (24 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const Chrome = require('selenium-webdriver/chrome');
const {Browser, Builder} = require("selenium-webdriver");
const options = new Chrome.Options();
describe('Usage Test', function () {
it('Creates driver wit Selenium Manager', async function () {
let driver = new Builder()
.forBrowser(Browser.CHROME)
.build();
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
await driver.quit();
});
// it('Creates driver with Selenium Manager', async function () {
// let driverPath = '/path/to/chromedriver';
// let browserPath = '/path/to/chrome';
// options.setChromeBinaryPath(browserPath)
// let service = new Chrome.ServiceBuilder().setPath(driverPath)
// let driver = new Builder()
// .forBrowser(Browser.CHROME)
// .setChromeService(service)
// .build();
// await driver.get('https://www.selenium.dev/selenium/web/blank.html');
// await driver.quit();
// });
});