Re: [geb-user] best place in code to call geb Configuration's setDefaultWaitTimeout()

2020-04-01 Thread Alexander Kriegisch
Have you tried evaluating the property from inside GebConfig, overriding the default value if the property is present? waiting { timeout = System.getProperty("gebNewTimeout")?.toInteger() ?: 30 } -- Alexander Kriegisch https://scrum-master.de Master Automator schrieb am 02.04.2020 05:03 (GM

Re: [geb-user] best place in code to call geb Configuration's setDefaultWaitTimeout()

2020-04-01 Thread Master Automator
Thanks Marcin & Alexander. Just to clarify ... We already have a default value in Geb config: waiting { timeout = 30 ... } We can run "gradlew ... specs" and specify a different timeout override value, say 42 instead of Geb config's default 30 ... like this: gradlew -DgebNewTimeout=4

Re: [geb-user] best place in code to call geb Configuration's setDefaultWaitTimeout()

2020-03-31 Thread Marcin Erdmann
That would be my suggestion as well, to put it in your Geb config script. On Tue, Mar 31, 2020 at 2:06 PM Alexander Kriegisch < alexan...@kriegisch.name> wrote: > Have you tried GebConfig.groovy? > https://gebish.org/manual/current/#default-waiting-configuration > > -- > Alexander Kriegisch > htt

Re: [geb-user] best place in code to call geb Configuration's setDefaultWaitTimeout()

2020-03-31 Thread Alexander Kriegisch
Have you tried GebConfig.groovy? https://gebish.org/manual/current/#default-waiting-configuration -- Alexander Kriegisch https://scrum-master.de Master Automator schrieb am 31.03.2020 09:13 (GMT +07:00): > In the Gradle command that runs our Geb specs, we pass in the command > line a default t

[geb-user] best place in code to call geb Configuration's setDefaultWaitTimeout()

2020-03-30 Thread Master Automator
Hello folks, Hope you are staying safe and doing ok! In the Gradle command that runs our Geb specs, we pass in the command line a default timeout for that set of specs. Currently, we use this parsed cmd line timeout arg in the setupSpec() method: - browser.getConfig().setDefaultWaitTimeo