{"action":"created","issue":{"url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock/issues/6","repository_url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock","labels_url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock/issues/6/comments","events_url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock/issues/6/events","html_url":"https://github.com/brianjbayer/sample-login-geb-spock/issues/6","id":354366417,"node_id":"MDU6SXNzdWUzNTQzNjY0MTc=","number":6,"title":"firefoxHeadless in GebConfig does not work","user":{"login":"GuopingJia","id":22815524,"node_id":"MDQ6VXNlcjIyODE1NTI0","avatar_url":"https://avatars1.githubusercontent.com/u/22815524?v=4","gravatar_id":"","url":"https://api.github.com/users/GuopingJia","html_url":"https://github.com/GuopingJia","followers_url":"https://api.github.com/users/GuopingJia/followers","following_url":"https://api.github.com/users/GuopingJia/following{/other_user}","gists_url":"https://api.github.com/users/GuopingJia/gists{/gist_id}","starred_url":"https://api.github.com/users/GuopingJia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuopingJia/subscriptions","organizations_url":"https://api.github.com/users/GuopingJia/orgs","repos_url":"https://api.github.com/users/GuopingJia/repos","events_url":"https://api.github.com/users/GuopingJia/events{/privacy}","received_events_url":"https://api.github.com/users/GuopingJia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-27T15:29:46Z","updated_at":"2018-09-12T13:09:04Z","closed_at":null,"author_association":"NONE","body":"Below setup for firefoxHeadless in GebConfig does not work:\r\n\r\n    firefoxHeadless {\r\n        driver = {\r\n            FirefoxOptions o = new FirefoxOptions()\r\n            o.addArguments('--headless')\r\n            new FirefoxDriver(o)\r\n        }\r\n\r\nAll the tests failed with WebDriverException/DriverCreationException:\r\n\r\n    geb.driver.DriverCreationException at NCSLoginPageSpec.groovy:37\r\n        Caused by: org.openqa.selenium.WebDriverException at NCSLoginPageSpec.groovy:37\r\n    geb.driver.DriverCreationException\r\n        Caused by: org.openqa.selenium.WebDriverException\r\n    geb.driver.DriverCreationException\r\n        Caused by: org.openqa.selenium.WebDriverException\r\n"},"comment":{"url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock/issues/comments/420641792","html_url":"https://github.com/brianjbayer/sample-login-geb-spock/issues/6#issuecomment-420641792","issue_url":"https://api.github.com/repos/brianjbayer/sample-login-geb-spock/issues/6","id":420641792,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDY0MTc5Mg==","user":{"login":"GuopingJia","id":22815524,"node_id":"MDQ6VXNlcjIyODE1NTI0","avatar_url":"https://avatars1.githubusercontent.com/u/22815524?v=4","gravatar_id":"","url":"https://api.github.com/users/GuopingJia","html_url":"https://github.com/GuopingJia","followers_url":"https://api.github.com/users/GuopingJia/followers","following_url":"https://api.github.com/users/GuopingJia/following{/other_user}","gists_url":"https://api.github.com/users/GuopingJia/gists{/gist_id}","starred_url":"https://api.github.com/users/GuopingJia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuopingJia/subscriptions","organizations_url":"https://api.github.com/users/GuopingJia/orgs","repos_url":"https://api.github.com/users/GuopingJia/repos","events_url":"https://api.github.com/users/GuopingJia/events{/privacy}","received_events_url":"https://api.github.com/users/GuopingJia/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T13:09:04Z","updated_at":"2018-09-12T13:09:04Z","author_association":"NONE","body":"Thank you for spending time trying this out in your env. \r\n\r\nI've retried everything, including the setHeadless(). Unfortunately, it still had the same issue. All tests failed with DriverCreationException/WebDriverException. \r\n\r\nHere I post the detailed failure stacktrace. As mentioned, all tests work well with firefox. They are having the same GebConfig, excepting the setup for 'headless' option.\r\n\r\nBelow \"org.openqa.selenium.WebDriverException: connection refused\" really worried me. Not sure why there is no any issue in firefox ?\r\n\r\ngeb.driver.DriverCreationException: failed to create driver from callback 'script1536756625577751647493$_run_closure1$_closure6$_closure12@28f2192e'\r\n        at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)\r\n        at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy:85)\r\n        at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy)\r\n        at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32)\r\n        at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:84)\r\n        at geb.Configuration.createDriver(Configuration.groovy:382)\r\n        at geb.Configuration.getDriver(Configuration.groovy:371)\r\n        at geb.Browser.getDriver(Browser.groovy:111)\r\n        at geb.report.PageSourceReporter.getPageSource(PageSourceReporter.groovy:42)\r\n        at geb.report.PageSourceReporter.writePageSource(PageSourceReporter.groovy:38)\r\n        at geb.report.PageSourceReporter.writeReport(PageSourceReporter.groovy:29)\r\n        at geb.report.CompositeReporter.writeReport(CompositeReporter.groovy:31)\r\n        at geb.Browser.report(Browser.groovy:931)\r\n        at geb.spock.GebReportingSpec.report(GebReportingSpec.groovy:59)\r\n        at geb.spock.GebReportingSpec.cleanup(GebReportingSpec.groovy:46)\r\nCaused by: org.openqa.selenium.WebDriverException: connection refused\r\nCommand duration or timeout: 60.27 seconds\r\nBuild info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T18:33:54.468Z'\r\nSystem info: host: 'guoping-HP-Z640-Workstation', ip: '10.38.145.28', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-53-generic', java.version: '1.8.0_144'\r\nDriver info: driver.version: FirefoxDriver\r\n        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)\r\n        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)\r\n        at org.openqa.selenium.remote.Gecko013ProtocolResponse.lambda$new$0(Gecko013ProtocolResponse.java:39)\r\n        at org.openqa.selenium.remote.Gecko013ProtocolResponse.lambda$getResponseFunction$2(Gecko013ProtocolResponse.java:90)\r\n        at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)\r\n        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\r\n        at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)\r\n        at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)\r\n        at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)\r\n        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)\r\n        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n        at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)\r\n        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n        at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)\r\n        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)\r\n        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)\r\n        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)\r\n        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:142)\r\n        at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:120)\r\n        at script1536756625577751647493$_run_closure1.closure6$_closure12(script1536756625577751647493.groovy:83)\r\n        at script1536756625577751647493$_run_closure1.closure6$_closure12(script1536756625577751647493.groovy)\r\n        at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:29)\r\n        ... 14 more"}}
{"actor":{"display_login":"GuopingJia"}}