Skip to content

Instantly share code, notes, and snippets.

@jpoetker
Last active April 11, 2018 14:55
Show Gist options
  • Save jpoetker/4550924 to your computer and use it in GitHub Desktop.
Save jpoetker/4550924 to your computer and use it in GitHub Desktop.
Basic GEB script with Chrome
@Grapes([
@Grab("org.codehaus.geb:geb-core:0.7.2"),
@Grab("org.seleniumhq.selenium:selenium-chrome-driver:2.28.0"),
@Grab("org.seleniumhq.selenium:selenium-support:2.28.0")
])
import geb.Browser
import org.openqa.selenium.chrome.ChromeDriver
b = new Browser(driver: new ChromeDriver())
b.drive {
go "http://www.google.com"
$("input", name: "q" ) << "the book of geb"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment