import geb.Browser
import org.openqa.selenium.firefox.FirefoxDriver
Browser.drive {
go "google.com"
}
I run the script above and get the following error:java.lang.NoClassDefFoundError: org/openqa/selenium/TakesScreenshot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
As it says on the documentation page (and in it’s maven info), you need:
selenium-api depends on google guava
and selenium-support depends on
junitandhamcrestYou’ll also need to add groovy to the classpath as geb uses it under the covers