Last active
April 11, 2018 14:55
-
-
Save jpoetker/4550924 to your computer and use it in GitHub Desktop.
Basic GEB script with Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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