This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git


The following commit(s) were added to refs/heads/master by this push:
     new fce3cc2d temp hack for CI debugging
fce3cc2d is described below

commit fce3cc2db2cd2a2547b96066728f3aaf6d5004f7
Author: Paul King <[email protected]>
AuthorDate: Thu Dec 19 12:16:19 2024 +1000

    temp hack for CI debugging
---
 .../src/test/groovy/configuration/DriverConfigSpec.groovy            | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy 
b/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
index 0c5cf231..867ec224 100644
--- a/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
+++ b/doc/manual-snippets/src/test/groovy/configuration/DriverConfigSpec.groovy
@@ -41,11 +41,16 @@ class DriverConfigSpec extends Specification implements 
InlineConfigurationLoade
     def "configuring driver using closure"() {
         when:
         configScript """
+            import org.openqa.selenium.firefox.FirefoxOptions
             // tag::configuring_driver[]
             import org.openqa.selenium.firefox.FirefoxDriver
 
             driver = { new FirefoxDriver() }
             // end::configuring_driver[]
+            // to make work in headless CI env
+            def firefoxOptions = new FirefoxOptions()
+                .addArguments('headless')
+            driver = { new FirefoxDriver(firefoxOptions) }
         """
 
         then:

Reply via email to