web

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserAcceptanceTestSuit

func UserAcceptanceTestSuit(t *testing.T, testers Testers, serverStarter ServerStarter, local bool, options ...string)

Types

type Page

type Page struct {
	*agouti.Page
	T      *testing.T
	Driver *agouti.WebDriver
	Quit   chan struct{}
}

func (*Page) Attr

func (page *Page) Attr(s *agouti.Selection, attr, res string)

func (*Page) Click

func (page *Page) Click(xpath string, intervals ...int)

func (*Page) ClickS

func (page *Page) ClickS(s *agouti.Selection, intervals ...int)

func (*Page) Contain

func (page *Page) Contain(s string)

func (*Page) Css

func (page *Page) Css(xpath, css, res string)

func (*Page) CssS

func (page *Page) CssS(s *agouti.Selection, css, res string)

func (*Page) Destroy

func (page *Page) Destroy()

func (*Page) Display

func (page *Page) Display(xpath string)

func (*Page) Fill

func (page *Page) Fill(xpath, content string)

func (*Page) MoveMouseBy

func (page *Page) MoveMouseBy(xOffset, yOffset int)

func (*Page) NavigateTo

func (page *Page) NavigateTo(path string)

func (*Page) NoContain

func (page *Page) NoContain(s string)

func (*Page) Nondisplay

func (page *Page) Nondisplay(xpath string)

func (*Page) Text

func (page *Page) Text(xpath, text string)

func (*Page) Value

func (page *Page) Value(xpath, value string)

func (*Page) Wait

func (page *Page) Wait(t int)

type ServerStarter

type ServerStarter func(quit chan struct{})

type Testers

type Testers func(t *testing.T, page *Page)

Jump to

Keyboard shortcuts

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