Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9117659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:56:53+00:00 2026-06-17T04:56:53+00:00

I am learning about GEB and i would like to play around with it

  • 0

I am learning about GEB and i would like to play around with it in Groovy console. I am tying to run:

import geb.Browser

Browser.drive {
 go "http://googel.com/"
 assert title == "Google"
}

But this gives an error

unable to resolve class geb.Browser
 at line: 1, column: 1

I have downloaded Geb core jar (http://search.maven.org/#artifactdetails%7Corg.codehaus.geb%7Cgeb-core%7C0.7.2%7Cjar) and put it in the PATH, but is not importing in the groovy console. What am i doing wrong and how to run the simple Geb inline scripting?

Thank you

p.s. mac 10.7, geb 0.7.2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:56:54+00:00Added an answer on June 17, 2026 at 4:56 am

    Try putting that at the top of your file :

    @Grapes([
        @Grab("org.codehaus.geb:geb-core:0.7.2"),//always use latest version of geb and selenium drivers
        @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.46.0"),
        @Grab("org.seleniumhq.selenium:selenium-support:2.46.0")
    ])
    

    Then, you won’t have to deal with classpath issues and you’ll got geb in groovy console easily

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning about Algebraic DTs in haskell. What I would like to do
I'm learning about namespaces in PHP 5.3 and I would like to use Namespaces
I'm learning about Linux filesystems, with these sources: http://linuxgazette.net/issue21/ext2.html http://homepage.smc.edu/morgan_david/cs40/analyze-ext2.htm But I have one
Often when learning about .NET I run into things that hail from the COM
I'm currently learning about cube mapping, I found this tutorial: http://www.keithlantz.net/2011/10/lighting-and-environment-mapping-with-glsl/ He transform normal
I am learning about cookies, and I wonder about browser support when writing web
In learning about NSInvocations it seems like I've got a gap in my understanding
While learning about NSOperation, I wondered why a completion block would have any advantage
Just learning about Dependency Injection and Prism... It seems just asking around alot of
Learning about notifyAll made me question something about notify: in a typical situation we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.