Skip to content

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Sep 11, 2025

Closes #15065

@matrei matrei changed the title fix(deps): geb v. 7.0 -> 8.0.0 Geb 8 Sep 12, 2025
@matrei matrei marked this pull request as draft September 12, 2025 05:14
@matrei matrei marked this pull request as ready for review September 15, 2025 20:54
@matrei
Copy link
Contributor Author

matrei commented Sep 15, 2025

@JonasPammer Would you like to look over these changes?

Reinstate resetting the system property after driver construction.
Scope the `webdriver.remote.server` System property to the current thread
during `RemoteWebDriver` creation, then restore it. This avoids routing
later sessions to the wrong endpoint in parallel builds.
@JonasPammer
Copy link
Contributor

now this is what i call generics, haha. I would not even know half of these functions and groovy/thread-nanigans, especially after having used solely django at work for last few months. 🤫 😜

as long as the system env is set for when https://github.com/apache/groovy-geb/blob/4266eeeea6f59e4718339b93283327bf176563b9/module/geb-core/src/main/groovy/geb/Browser.groovy#L172 is called its still the same thing as my original thought/impl. 👍

@matrei
Copy link
Contributor Author

matrei commented Sep 16, 2025

now this is what i call generics, haha. I would not even know half of these functions and groovy/thread-nanigans, especially after having used solely django at work for last few months. 🤫 😜

as long as the system env is set for when https://github.com/apache/groovy-geb/blob/4266eeeea6f59e4718339b93283327bf176563b9/module/geb-core/src/main/groovy/geb/Browser.groovy#L172 is called its still the same thing as my original thought/impl. 👍

Haha, I thought it might be overkill as well, but what if you mix ContainerGebSpec and regular GebSpec tests in the same project?

However, I don't think our GebConfig integration is working perfectly yet. I tried switching to new RemoteWebDriver(new FirefoxOptions()) and it blows up as the container is browser specific and seems to default to chrome.

Could not start a new session. Response code 500. Message: Could not start a new session. No nodes support the capabilities in the request
Host info: host: 'f1b81917b1f3', ip: '172.17.0.4'
Build info: version: '4.34.0', revision: '2a4c61c498'
System info: [os.name](http://os.name/): 'Linux', os.arch: 'amd64', os.version: '6.10.14-linuxkit', java.version: '21.0.8'
Driver info: driver.version: unknown
Build info: version: '4.34.0', revision: '707dcb4246*'
System info: [os.name](http://os.name/): 'Linux', os.arch: 'amd64', os.version: '6.8.0-79-generic', java.version: '17.0.14'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: true, browserName: firefox, grails:gebConfigUsed: true, moz:firefoxOptions: {prefs: {remote.active-protocols: 1}}}]}]
Capabilities {acceptInsecureCerts: true, browserName: firefox, grails:gebConfigUsed: true, moz:firefoxOptions: {prefs: {remote.active-protocols: 1}}}
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Could not start a new session. No nodes support the capabilities in the request

This is now fixed in fcc4d82

JonasPammer

This comment was marked as resolved.

@matrei matrei requested a review from JonasPammer September 18, 2025 07:16
Add a more helpful error message in the case where
a `containerBrowser` property is missing from `GebConfig.groovy`.
@JonasPammer

This comment was marked as resolved.

Copy link
Contributor

@JonasPammer JonasPammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Thanks

Copy link
Contributor

@jdaugherty jdaugherty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Job! Only minor comments ...

@matrei matrei merged commit bcf4aa6 into 7.0.x Sep 24, 2025
36 checks passed
@matrei matrei deleted the geb-8 branch September 24, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geb 8
3 participants