This seems like it should be pretty straightforward, but I am not seeing how to get access to values in my GebConfig.groovy file. I've tried the following:
userName = "myUserName"
properties = {
userName = "myUserName"
}
props {
userName = "myUserName"
}
environments {
chrome = {
driver = { new ChromeDriver() }
userName = "myUserName" //with and without {}
}
}
Yet I still can't seem to access these properties through:
browser.driver.properties.userName
Am I able to set those properties in the configuration file, and then access them in my spec? I seem to be getting the default set of properties, which is simply the System properties.
browser.driver.properties
(rather thanbrowser.config.properties
), or is this just a typo? – Chronologist