I managed to compile using
gradle-6.8.3 and
groovyVersion = '2.5.13'
gebVersion = '4.0'
seleniumVersion = '4.0.0-beta-2'
chromeDriverVersion = '89.0.4389.23'
firefoxDriverVersion = '0.29.0'
ieDriverVersion = '3.150.0'
but noticed that .present does not work anymore, also PageChangeListener got deprecated.
I only changed the versions in order to compile succesfully, did not change the structure.
None of my testscripts work anymore, e.g.
waitFor { MasterModule.cookieButtonUserCentrics.displayed }
does not seem to be working, altough the element is shown on the screenshot, putting sleep before the waitFor does not help.
condition did not pass in 15 seconds (failed with exception)
geb.waiting.WaitTimeoutException: condition did not pass in 15 seconds (failed with exception)
at geb.waiting.Wait.waitFor(Wait.groovy:124)
at geb.waiting.DefaultWaitingSupport.doWaitFor(DefaultWaitingSupport.groovy:50)
at geb.waiting.DefaultWaitingSupport.waitFor(DefaultWaitingSupport.groovy:37)
at geb.Page.waitFor(Page.groovy:116)
at geb.Browser.methodMissing(Browser.groovy:225)
at geb.spock.GebSpec.methodMissing(GebSpec.groovy:1)
at com.bechtle.test.functional.specifications.next.shared.MasterTestSpec.Test: Initialization(MasterTestSpec.groovy:127)
Caused by: groovy.lang.MissingPropertyException: No such property: cookieButtonUserCentrics for class: com.bechtle.test.functional.modules.next.hardware.MasterModule
at com.bechtle.test.functional.specifications.next.shared.MasterTestSpec.Test: Initialization_closure36(MasterTestSpec.groovy:127)
at com.bechtle.test.functional.specifications.next.shared.MasterTestSpec.Test: Initialization_closure36(MasterTestSpec.groovy)
at geb.waiting.Wait.waitFor(Wait.groovy:113)
... 6 more
Did so many things change with Geb version 4.0?
Thank you Marcin for your support!