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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to