mango

package module
v0.0.0-...-c209a6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2014 License: MIT Imports: 2 Imported by: 0

README

mango

A Selenium-based integration testing framework for Go

Setup

OS X:

brew install selenium-server-standalone

Make sure selenium-server-standalone is running (run brew info for instruction)

Supported Methods

Navigating
  • Visit(pathString)
  • ClickLinkText
  • ClickCss
Properties
  • CurrentPath()
  • CurrentURL
Booleans
  • HasCss(cssString)

Tests

Make sure to run cd fixture; go run main.go in another window before running the tests. Future versions will run this test server for you in the background when you run the test suite.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mango

type Mango struct {
	Driver selenium.WebDriver
	// contains filtered or unexported fields
}

func Start

func Start(root string) Mango

func (*Mango) AttachFileCss

func (mango *Mango) AttachFileCss(css string)

func (*Mango) AttachFileLabel

func (mango *Mango) AttachFileLabel(label string)

func (*Mango) CheckCss

func (mango *Mango) CheckCss(css string)

func (*Mango) CheckLabel

func (mango *Mango) CheckLabel(label string)

func (*Mango) ChooseCss

func (mango *Mango) ChooseCss(css string)

func (*Mango) ChooseLabel

func (mango *Mango) ChooseLabel(label string)

func (*Mango) ClickButtonText

func (mango *Mango) ClickButtonText(text string)

func (*Mango) ClickCss

func (mango *Mango) ClickCss(selector string)

func (*Mango) ClickLinkText

func (mango *Mango) ClickLinkText(text string)

func (*Mango) CurrentPath

func (mango *Mango) CurrentPath() string

func (*Mango) CurrentURL

func (mango *Mango) CurrentURL() string

func (*Mango) FillInCss

func (mango *Mango) FillInCss(selector string)

func (*Mango) FillInLabel

func (mango *Mango) FillInLabel(label string)

func (*Mango) HasContent

func (mango *Mango) HasContent(content string) bool

func (*Mango) HasCss

func (mango *Mango) HasCss(css string) bool

func (*Mango) Quit

func (mango *Mango) Quit()

func (*Mango) SelectCss

func (mango *Mango) SelectCss(css string)

func (*Mango) SelectLabel

func (mango *Mango) SelectLabel(label string)

func (*Mango) UncheckCss

func (mango *Mango) UncheckCss(css string)

func (*Mango) UncheckLabel

func (mango *Mango) UncheckLabel(label string)

func (*Mango) Visit

func (mango *Mango) Visit(path string)

func (*Mango) Wait

func (mango *Mango) Wait(time int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL