Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (31 sloc) 1.3 KB
/*
This is the Geb configuration file.
See: http://www.gebish.org/manual/current/configuration.html
*/
import io.github.bonigarcia.wdm.ChromeDriverManager
import io.github.bonigarcia.wdm.InternetExplorerDriverManager
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.ie.InternetExplorerDriver
// http://www.gebish.org/manual/current/configuration.html#waiting_for_base_navigator
baseNavigatorWaiting = true
atCheckWaiting = true
// Use Firefox as the default driver
// See: https://github.com/SeleniumHQ/selenium/wiki/FirefoxDriver
driver = { new FirefoxDriver() }
environments {
// run as "grails -Dgeb.env=chrome test-app functional:"
// See: https://sites.google.com/a/chromium.org/chromedriver/
chrome {
// Download and configure ChromeDriver using https://github.com/bonigarcia/webdrivermanager
ChromeDriverManager.getInstance().setup()
driver = { new ChromeDriver() }
}
// run as "grails -Dgeb.env=ie test-app functional:"
// See: https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
ie {
// Download and configure InternetExplorerDriver using https://github.com/bonigarcia/webdrivermanager
InternetExplorerDriverManager.getInstance().setup()
driver = { new InternetExplorerDriver() }
}
}