-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathGebConfig.groovy
More file actions
55 lines (45 loc) · 1.06 KB
/
GebConfig.groovy
File metadata and controls
55 lines (45 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import io.github.bonigarcia.wdm.WebDriverManager
import io.github.bonigarcia.wdm.config.DriverManagerType
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxOptions
environments {
firefox {
FirefoxOptions options = new FirefoxOptions()
options.setCapability("acceptInsecureCerts", true)
options.addArguments("--headless")
driver = {
DriverManagerType firefox = DriverManagerType.FIREFOX
WebDriverManager.getInstance(firefox).setup()
def tmpDriver = new FirefoxDriver(options)
tmpDriver.manage().window().maximize()
return tmpDriver
}
}
}
atCheckWaiting = true
waiting {
timeout = 15
retryInterval = 0.5
presets {
slow {
timeout = 30
retryInterval = 1
}
medium {
timeout = 22
retryInterval = 0.5
}
fast {
timeout = 10
}
waitOne {
timeout = 1
}
verySlow {
timeout = 150
retryInterval = 1
}
}
}
reportOnTestFailureOnly = true //takes screenshot only if a failure occurs
//quitCachedDriverOnShutdown = false //Use this if you want to prevent browser from closing