Documentation ¶
Overview ¶
Package dsl uses Ginkgo to implement a Capybara-like DSL for writing acceptance tests. This package is provided entirely for convenience. This DSL is not required to write Ginkgo acceptance tests using the core and matchers packages. Unlike the core package, the dsl 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 CustomPage(capabilities core.Capabilities) 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 determines which browser to use for the session.
func CustomPage ¶
func CustomPage(capabilities core.Capabilities) core.Page
CustomPage creates a new session with a custom set of desired capabilities using the current running WebDriver. The core.Use() function may be used to generate this set of capabilities. For Selenium, the capabilities Browser(string) method sets which browser to use for the session.
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.