A start at writing some code to allow driving Firefox from groovy
This is the WATIR example ported to groovy. It runs fine with the current check out.
/** ported from the wair bonus examples zip file */
import firewatig.*
import groovy.util.GroovyTestCase
class ArticleExample extends GroovyTestCase {
void testSearch () {
def ff = new Firefox()
ff.go("http://www.google.com/ncr")
ff.textField("name", "q").set("pickaxe")
ff.button("value","Google Search").click()
assert(ff.text().contains("Programming Ruby: The Pragmatic Programmer's Guide"));
}
}
30 Day Summary Sep 24 2012 — Oct 24 2012
|
12 Month Summary Oct 24 2011 — Oct 24 2012
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.