Hi Marcin,
first of all thanks a lot for your work investigated to Geb. I love this cool framework!
Based on your geb-example-gradle-master project from github I added the project properties to "build.gradle"
test {
if (project.hasProperty("baseUrl")) {
systemProperties("geb.build.baseUrl": project.baseUrl)
}
dependsOn drivers.collect { tasks["${it}Test"] }
enabled = false
}and deactivated the baseUrl in "GebConfig.groovy"
// To run the tests with all browsers just run “./gradlew test”
// baseUrl = "http://gebish.org"
But following error is thrown if I tried to pass the baseUrl via command line (only GebishOrgSpec was unter test, GebishOrgTest was out of the test scope)
> gradle -PbaseUrl="
http://gebish.org" chromeTest
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:compileTestGroovy UP-TO-DATE
:processTestResources
:testClasses
:downloadChromeDriver UP-TO-DATE
:unzipChromeDriver UP-TO-DATE
:chromeTest
GebishOrgSpec > can get to the current Book of Geb FAILED
org.openqa.selenium.WebDriverException at GebishOrgSpec.groovy:7
Caused by: org.openqa.selenium.remote.ScreenshotException at GebishOrgSpec.groovy:7
Caused by: org.openqa.selenium.WebDriverException
1 test completed, 1 failed
:chromeTest FAILED
FAILURE: Build failed with an exception.
Do you know what´s wrong? Do I miss any thing?
Kind regards
Tu