mocks

package
v2.0.0-...-b920a9c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	DestroyCall struct {
		Called bool
		Err    error
	}

	NavigateCall struct {
		URL string
		Err error
	}

	SetCookieCall struct {
		Cookie agouti.Cookie
		Err    error
	}

	DeleteCookieCall struct {
		Name string
		Err  error
	}

	ClearCookiesCall struct {
		Called bool
		Err    error
	}

	SizeCall struct {
		Width  int
		Height int
		Err    error
	}

	ScreenshotCall struct {
		Filename string
		Err      error
	}

	RunScriptCall struct {
		Body      string
		Arguments map[string]interface{}
		Result    interface{}
		Err       error
	}

	EnterPopupTextCall struct {
		Text string
		Err  error
	}

	ConfirmPopupCall struct {
		Called bool
		Err    error
	}

	CancelPopupCall struct {
		Called bool
		Err    error
	}

	ForwardCall struct {
		Called bool
		Err    error
	}

	BackCall struct {
		Called bool
		Err    error
	}

	RefreshCall struct {
		Called bool
		Err    error
	}

	SwitchToParentFrameCall struct {
		Called bool
		Err    error
	}

	SwitchToRootFrameCall struct {
		Called bool
		Err    error
	}

	SwitchToWindowCall struct {
		Name string
		Err  error
	}

	NextWindowCall struct {
		Called bool
		Err    error
	}

	CloseWindowCall struct {
		Called bool
		Err    error
	}
}

func (*Page) Back

func (p *Page) Back() error

func (*Page) CancelPopup

func (p *Page) CancelPopup() error

func (*Page) ClearCookies

func (p *Page) ClearCookies() error

func (*Page) CloseWindow

func (p *Page) CloseWindow() error

func (*Page) ConfirmPopup

func (p *Page) ConfirmPopup() error

func (*Page) DeleteCookie

func (p *Page) DeleteCookie(name string) error

func (*Page) Destroy

func (p *Page) Destroy() error

func (*Page) EnterPopupText

func (p *Page) EnterPopupText(text string) error

func (*Page) Forward

func (p *Page) Forward() error

func (*Page) Navigate

func (p *Page) Navigate(url string) error

func (*Page) NextWindow

func (p *Page) NextWindow() error

func (*Page) Refresh

func (p *Page) Refresh() error

func (*Page) RunScript

func (p *Page) RunScript(body string, arguments map[string]interface{}, result interface{}) error

func (*Page) Screenshot

func (p *Page) Screenshot(filename string) error

func (*Page) SetCookie

func (p *Page) SetCookie(cookie agouti.Cookie) error

func (*Page) Size

func (p *Page) Size(width, height int) error

func (*Page) SwitchToParentFrame

func (p *Page) SwitchToParentFrame() error

func (*Page) SwitchToRootFrame

func (p *Page) SwitchToRootFrame() error

func (*Page) SwitchToWindow

func (p *Page) SwitchToWindow(name string) error

type Selection

type Selection struct {
	SwitchToFrameCall struct {
		Called bool
		Err    error
	}

	ClickCall struct {
		Called bool
		Err    error
	}

	DoubleClickCall struct {
		Called bool
		Err    error
	}

	FillCall struct {
		Text string
		Err  error
	}

	CheckCall struct {
		Called bool
		Err    error
	}

	UncheckCall struct {
		Called bool
		Err    error
	}

	SelectCall struct {
		Text string
		Err  error
	}

	SubmitCall struct {
		Called bool
		Err    error
	}
}

func (*Selection) Check

func (s *Selection) Check() error

func (*Selection) Click

func (s *Selection) Click() error

func (*Selection) DoubleClick

func (s *Selection) DoubleClick() error

func (*Selection) Fill

func (s *Selection) Fill(text string) error

func (*Selection) Select

func (s *Selection) Select(text string) error

func (*Selection) Submit

func (s *Selection) Submit() error

func (*Selection) SwitchToFrame

func (s *Selection) SwitchToFrame() error

func (*Selection) Uncheck

func (s *Selection) Uncheck() error

Jump to

Keyboard shortcuts

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