-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow to configure implicit wait #147
base: 4.2.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution. Let's wait for @matrei to get his thoughts on the config name.
camelCase will be great 👍. That is the standard In Grails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JonasPammer! Keep'em coming! I've been away for a couple of days but I'll be more active tomorrow again.
src/testFixtures/groovy/grails/plugin/geb/GrailsGebSettings.groovy
Outdated
Show resolved
Hide resolved
src/testFixtures/groovy/grails/plugin/geb/GrailsGebSettings.groovy
Outdated
Show resolved
Hide resolved
src/testFixtures/groovy/grails/plugin/geb/GrailsGebSettings.groovy
Outdated
Show resolved
Hide resolved
src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates!
I have some more thoughts on this PR:
- There are two additional timeout values:
pageLoadTimeout(default: 300s)
andscriptTimeout(default: 30s)
. I think we should take this opportunity to add support for setting them as well. We could group them undergrails.geb.webdriver.timeouts.*
. We should also rename the our variable and config property toimplicitlyWait
to align with the name in Webdriver. - The default value in Webdriver for
implicitlyWait
is0s
. I do not know why testcontainers set it to30s
in their examples. I would like to try and set the default to0s
to resolve the issues the30s
default causes in Geb. As I understand it @JonasPammer, your testing shows that0s
works fine?
Relates to #134 (comment)
At least for my project, removing it completely results in no errors and 3 minutes (5.0.0-M2; compared to 2m20s without container) instead of 20.
I have yet to figure out a SSCCE that triggers the implicitWait
Sorry for the potential spam of PRs, I want to figure out accepted ways of how to implement things first before tackling my big goal of being able to use GebConfig.groovy (custom environmentized client/driver config + custom remote image) again