Documentation
¶
Overview ¶
Agouti dsl implements a Capybara-like DSL for writing acceptance tests. This package is provided entirely for convenience. Agouti dsl is not required to write Ginkgo acceptance tests using the Agouti core and matchers packages. Unlike the core package, this package only permits a single running WebDriver.
Index ¶
- func Background(body interface{}, timeout ...float64) bool
- func Check(selection core.Selection)
- func Click(selection core.Selection)
- func CreatePage(browserName ...string) core.Page
- func DoubleClick(selection core.Selection)
- func FFeature(text string, body func()) bool
- func FScenario(description string, body func(), timeout ...float64) bool
- func Feature(text string, body func()) bool
- func Fill(selection core.Selection, text string)
- func PFeature(text string, body func()) bool
- func PScenario(description string, ignored ...interface{}) bool
- func Scenario(description string, body func(), timeout ...float64) bool
- func Select(selection core.Selection, text string)
- func StartChrome()
- func StartPhantomJS()
- func StartSelenium()
- func Step(text string, callbacks ...func())
- func StopWebdriver()
- func Submit(selection core.Selection)
- func Uncheck(selection core.Selection)
- func XFeature(text string, body func()) bool
- func XScenario(description string, ignored ...interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Background ¶
Background is equivalent to Ginkgo BeforeEach.
func CreatePage ¶
CreatePage creates a new session using the current running WebDriver. For Selenium, the browserName argument determines which browser to start the session in.
func DoubleClick ¶
DoubleClick is comparable to Expect(selection.DoubleClick()).To(Succeed())
func StartChrome ¶
func StartChrome()
StartChrome starts a ChromeDriver WebDriver service for use with CreatePage.
func StartPhantomJS ¶
func StartPhantomJS()
StartPhantomJS starts a PhantomJS WebDriver service for use with CreatePage.
func StartSelenium ¶
func StartSelenium()
StartSelenium starts a Selenium WebDriver service for use with CreatePage.
Types ¶
This section is empty.