-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotractor.conf.js
More file actions
39 lines (35 loc) · 1.06 KB
/
protractor.conf.js
File metadata and controls
39 lines (35 loc) · 1.06 KB
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
33
34
35
36
37
38
var HtmlReporter = require('protractor-beautiful-reporter');
exports.config = {
framework: 'jasmine',
capabilities: {
browserName: 'chrome',
// shardTestFiles: true,
// maxInstances: 5,
chromeOptions: {
args: [ "--headless", "--disable-gpu" ]
}
},
specs: [
'./src/specs/*.spec.js'
],
directConnect: true,
// seleniumAddress: 'http://localhost:4444/wd/hub',
// You could set no globals to true to avoid jQuery '$' and protractor '$'
// collisions on the global namespace.
noGlobals: false,
getPageTimeout: 180000,
allScriptsTimeout: 180000,
onPrepare() {
// let browser = globals.browser;
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'Reports/screenshots',
screenshotsSubfolder: 'images'
}).getJasmine2Reporter());
browser.driver.manage().window().maximize();
browser.driver.manage().window().setPosition(0, 0);
browser.manage().timeouts().implicitlyWait(5000);
},
onComplete() {
browser.close();
}
}