-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathwdio.env.js
More file actions
37 lines (30 loc) · 846 Bytes
/
Copy pathwdio.env.js
File metadata and controls
37 lines (30 loc) · 846 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
33
34
35
36
37
module.exports = class Env {
constructor() {
this.params = {
debug: true,
is_human: false,
is_human_pause: 3000,
env: null,
small_pause: 2000,
medium_pause: 5000,
long_pause: 10000,
base_url: 'http://localhost/vaahcms-ready/public',
version: null,
capabilities: [{
browserName: 'chrome'
}]
};
}
//-------------------------------------------------
getParams () {
if(this.params.is_human === false){
this.params.capabilities =[{
browserName: 'chrome',
'goog:chromeOptions': {
args: ['headless', 'disable-gpu']
}
}]
}
return this.params;
}
}