Skip to content

Instantly share code, notes, and snippets.

@bensullivan
bensullivan / groovy_selenium_demo.groovy
Created January 25, 2013 04:10
Groovy Selenium Demo
import org.openqa.selenium.By
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.support.ui.WebDriverWait
import static org.openqa.selenium.support.ui.ExpectedConditions.*
def browser = new FirefoxDriver()
browser.manage().window().maximize()
browser.get('http://translate.google.com/')
def wait = new WebDriverWait(browser, 10)