page

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Message  string
	Location string
	Level    string
	Time     time.Time
}

type Page

type Page struct {
	Session interface {
		Delete() error
		GetWindow() (*api.Window, error)
		GetWindows() ([]*api.Window, error)
		SetWindow(window *api.Window) error
		SetWindowByName(name string) error
		DeleteWindow() error
		GetScreenshot() ([]byte, error)
		SetCookie(cookie map[string]interface{}) error
		DeleteCookie(name string) error
		DeleteCookies() error
		GetURL() (string, error)
		SetURL(url string) error
		GetTitle() (string, error)
		GetSource() (string, error)
		Frame(frame *api.Element) error
		FrameParent() error
		Execute(body string, arguments []interface{}, result interface{}) error
		Forward() error
		Back() error
		Refresh() error
		GetAlertText() (string, error)
		SetAlertText(text string) error
		AcceptAlert() error
		DismissAlert() error
		NewLogs(logType string) ([]api.Log, error)
		GetLogTypes() ([]string, error)
	}
	// contains filtered or unexported fields
}

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) HTML

func (p *Page) HTML() (string, error)

func (*Page) LogTypes

func (p *Page) LogTypes() ([]string, error)

func (*Page) Navigate

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

func (*Page) NextWindow

func (p *Page) NextWindow() error

func (*Page) PopupText

func (p *Page) PopupText() (string, error)

func (*Page) ReadAllLogs

func (p *Page) ReadAllLogs(logType string) ([]agouti.Log, error)

Patch to allow Page to work with new matchers after core deprecation

func (*Page) ReadLogs

func (p *Page) ReadLogs(logType string, all ...bool) ([]Log, 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 map[string]interface{}) 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

func (*Page) Title

func (p *Page) Title() (string, error)

func (*Page) URL

func (p *Page) URL() (string, error)

func (*Page) WindowCount

func (p *Page) WindowCount() (int, error)

Jump to

Keyboard shortcuts

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