Documentation ¶
Index ¶
- type Log
- type Page
- func (p *Page) Back() error
- func (p *Page) CancelPopup() error
- func (p *Page) ClearCookies() error
- func (p *Page) CloseWindow() error
- func (p *Page) ConfirmPopup() error
- func (p *Page) DeleteCookie(name string) error
- func (p *Page) Destroy() error
- func (p *Page) EnterPopupText(text string) error
- func (p *Page) Forward() error
- func (p *Page) HTML() (string, error)
- func (p *Page) LogTypes() ([]string, error)
- func (p *Page) Navigate(url string) error
- func (p *Page) NextWindow() error
- func (p *Page) PopupText() (string, error)
- func (p *Page) ReadAllLogs(logType string) ([]agouti.Log, error)
- func (p *Page) ReadLogs(logType string, all ...bool) ([]Log, error)
- func (p *Page) Refresh() error
- func (p *Page) RunScript(body string, arguments map[string]interface{}, result interface{}) error
- func (p *Page) Screenshot(filename string) error
- func (p *Page) SetCookie(cookie map[string]interface{}) error
- func (p *Page) Size(width, height int) error
- func (p *Page) SwitchToParentFrame() error
- func (p *Page) SwitchToRootFrame() error
- func (p *Page) SwitchToWindow(name string) error
- func (p *Page) Title() (string, error)
- func (p *Page) URL() (string, error)
- func (p *Page) WindowCount() (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) CancelPopup ¶
func (*Page) ClearCookies ¶
func (*Page) CloseWindow ¶
func (*Page) ConfirmPopup ¶
func (*Page) DeleteCookie ¶
func (*Page) EnterPopupText ¶
func (*Page) NextWindow ¶
func (*Page) ReadAllLogs ¶
Patch to allow Page to work with new matchers after core deprecation
func (*Page) Screenshot ¶
func (*Page) SwitchToParentFrame ¶
func (*Page) SwitchToRootFrame ¶
func (*Page) SwitchToWindow ¶
func (*Page) WindowCount ¶
Click to show internal directories.
Click to hide internal directories.