-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ts
More file actions
42 lines (36 loc) · 1.13 KB
/
Copy pathconfig.ts
File metadata and controls
42 lines (36 loc) · 1.13 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
39
40
41
import { ProtractorBrowser, Config, WebDriver } from 'protractor';
import { configure, getLogger } from 'log4js';
export const logger = getLogger();
export let config: Config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'chrome',
chromeOptions: {
'w3c': false,
args: [ "--safe-mode" ]
}
},
chromeDriver: '75.0.3770.90',
framework: 'jasmine',
specs: ['./specs/**/*.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 90000
},
onPrepare: () => {
logger.level = 'trace';
let globals = require('protractor');
let browser = globals.browser;
// browser.manage().window().maximize();
browser.manage().timeouts().implicitlyWait(5000);
jasmine.getEnv().addReporter({
specStarted: function (result) {
console.log('Starting Test Name:' + result.fullName);
}
});
jasmine.getEnv().addReporter({
specDone: function (result) {
console.log('Done Test Name:' + result.fullName);
}
});
}
}