forked from NilukaSripalim/ui-scenario-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.ts
27 lines (22 loc) · 824 Bytes
/
conf.ts
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
import {Config, browser} from 'protractor';
export let config: Config = {
framework: 'jasmine',
capabilities: {
browserName: 'chrome',
chromeOptions: {'args': ['disable-infobars']}
},
specs: [ './specs/login.js' ],
onPrepare: () => {
let globals = require('protractor');
let browser = globals.browser;
browser.ignoreSynchronization = true;
browser.manage().window().maximize();
browser.manage().timeouts().implicitlyWait(5000);
// doing a browser.get will lead to a transpile error.
// undefined does not have a get method
},
seleniumAddress: 'http://localhost:4444/wd/hub',
// You could set no globals to true to avoid jQuery '$' and protractor '$'
// collisions on the global namespace.
noGlobals: true
};