You are viewing a plain text version of this content. The canonical link for it is here.
Posted to geb-dev@groovy.apache.org by "askucins (via GitHub)" <gi...@apache.org> on 2025/08/24 12:17:35 UTC
[I] Geb fails with webdriver 4.35.0 [groovy-geb]
askucins opened a new issue, #280:
URL: https://github.com/apache/groovy-geb/issues/280
Hello,
My attempt to run basic demo-like test with the recent webdriver version (4.35.0) fails while the the same test works just fine with previous webdriver (4.34.0)
Script (`GebSmoke.groovy`)
```
@Grapes([
@Grab("org.gebish:geb-core:7.0"),
@Grab("org.seleniumhq.selenium:selenium-chrome-driver:4.35.0"),
//@Grab("org.seleniumhq.selenium:selenium-firefox-driver:4.35.0"),
@GrabExclude("org.apache.groovy:groovy-xml"),
@GrabExclude("org.apache.groovy:groovy-macro")
])
import geb.Browser
Browser.drive {
go "https://gebish.org"
assert title == "Geb - Very Groovy Browser Automation"
}
```
And here is the result:
```
askuci@nighthawk:~/tmp/geb-vs-webdriver$ groovy GebSmoke.groovy
Caught: groovy.lang.MissingMethodException: No signature of method: static geb.Browser.drive() is applicable for argument types: (GebSmoke$_run_closure1) values: [GebSmoke$_run_closure1@1df1ced0]
Possible solutions: print(java.io.PrintWriter), print(java.lang.Object), wait(), dump(), find(), grep()
groovy.lang.MissingMethodException: No signature of method: static geb.Browser.drive() is applicable for argument types: (GebSmoke$_run_closure1) values: [GebSmoke$_run_closure1@1df1ced0]
Possible solutions: print(java.io.PrintWriter), print(java.lang.Object), wait(), dump(), find(), grep()
at GebSmoke.run(GebSmoke.groovy:11)
```
The same outcome is present with firefox-driver with 4.35.0. When I'm running the same test with 4.34.0 version - there is no problem.
Here is my groovy/java setup:
```
askuci@nighthawk:~/tmp/geb-vs-webdriver$ groovy -version
Groovy Version: 4.0.28 JVM: 17.0.14 Vendor: Azul Systems, Inc. OS: Linux
askuci@nighthawk:~/tmp/geb-vs-webdriver$ java -version
openjdk version "17.0.14" 2025-01-21 LTS
OpenJDK Runtime Environment Zulu17.56+15-CA (build 17.0.14+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.56+15-CA (build 17.0.14+7-LTS, mixed mode, sharing)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: geb-dev-unsubscribe@groovy.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Geb fails with webdriver 4.35.0 [groovy-geb]
Posted by "jgosmann (via GitHub)" <gi...@apache.org>.
jgosmann commented on issue #280:
URL: https://github.com/apache/groovy-geb/issues/280#issuecomment-3228352710
same here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: geb-notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Geb fails with webdriver 4.35.0 [groovy-geb]
Posted by "askucins (via GitHub)" <gi...@apache.org>.
askucins commented on issue #280:
URL: https://github.com/apache/groovy-geb/issues/280#issuecomment-3356554419
Thanks a lot!!
I can confirm this works for me now:
```
@Grapes([
@GrabResolver(name='snapshot', root='https://repository.apache.org/content/repositories/snapshots'),
@Grab("org.apache.groovy.geb:geb-core:8.0.1-SNAPSHOT"),
//@Grab("org.apache.groovy.geb:geb-core:8.0.0"),
@Grab("org.seleniumhq.selenium:selenium-chrome-driver:4.35.0"),
//@Grab("org.seleniumhq.selenium:selenium-firefox-driver:4.35.0"),
@GrabExclude("org.apache.groovy:groovy-xml"),
@GrabExclude("org.apache.groovy:groovy-macro")
])
import geb.Browser
Browser.drive {
go "https://gebish.org"
assert title == "Geb - Very Groovy Browser Automation"
driver.quit()
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: geb-notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Geb fails with webdriver 4.35.0 [groovy-geb]
Posted by "cbmarcum (via GitHub)" <gi...@apache.org>.
cbmarcum commented on issue #280:
URL: https://github.com/apache/groovy-geb/issues/280#issuecomment-3225999465
I can confirm this also. I setup a test using a Page object and 'to GebPage' call and got:
```
No signature of method: geb.Browser.to() is applicable for argument types: (Class) values: [class com.example.GebPage]
```
Works with 4.34.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: geb-notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Geb fails with webdriver 4.35.0 [groovy-geb]
Posted by "jonnybot0 (via GitHub)" <gi...@apache.org>.
jonnybot0 closed issue #280: Geb fails with webdriver 4.35.0
URL: https://github.com/apache/groovy-geb/issues/280
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: geb-dev-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Geb fails with webdriver 4.35.0 [groovy-geb]
Posted by "martin-ober (via GitHub)" <gi...@apache.org>.
martin-ober commented on issue #280:
URL: https://github.com/apache/groovy-geb/issues/280#issuecomment-3312223226
also an issue with gebish-core 8.0.0 and selenium 4.35.0 ...
groovy.lang.MissingPropertyException: No such property: js for class: geb.Browser
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:68)
at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at geb.binding.BindingUpdater.initialize(BindingUpdater.groovy:79)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at stepdefs.env$_run_closure1.doCall(env.groovy:25)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: geb-notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org