Documentation ¶
Index ¶
- type Page
- func (_m *Page) AddInitScript(script playwright.PageAddInitScriptOptions) error
- func (_m *Page) AddScriptTag(options playwright.PageAddScriptTagOptions) (playwright.ElementHandle, error)
- func (_m *Page) AddStyleTag(options playwright.PageAddStyleTagOptions) (playwright.ElementHandle, error)
- func (_m *Page) BringToFront() error
- func (_m *Page) Check(selector string, options ...playwright.FrameCheckOptions) error
- func (_m *Page) Click(selector string, options ...playwright.PageClickOptions) error
- func (_m *Page) Close(options ...playwright.PageCloseOptions) error
- func (_m *Page) Content() (string, error)
- func (_m *Page) Context() playwright.BrowserContext
- func (_m *Page) Dblclick(expression string, options ...playwright.FrameDblclickOptions) error
- func (_m *Page) DispatchEvent(selector string, typ string, options ...playwright.PageDispatchEventOptions) error
- func (_m *Page) DragAndDrop(source string, target string, options ...playwright.FrameDragAndDropOptions) error
- func (_m *Page) Emit(name string, payload ...interface{})
- func (_m *Page) EmulateMedia(options ...playwright.PageEmulateMediaOptions) error
- func (_m *Page) EvalOnSelector(selector string, expression string, options ...interface{}) (interface{}, error)
- func (_m *Page) EvalOnSelectorAll(selector string, expression string, options ...interface{}) (interface{}, error)
- func (_m *Page) Evaluate(expression string, options ...interface{}) (interface{}, error)
- func (_m *Page) EvaluateHandle(expression string, options ...interface{}) (playwright.JSHandle, error)
- func (_m *Page) ExpectConsoleMessage(cb func() error) (playwright.ConsoleMessage, error)
- func (_m *Page) ExpectDownload(cb func() error) (playwright.Download, error)
- func (_m *Page) ExpectEvent(event string, cb func() error, predicates ...interface{}) (interface{}, error)
- func (_m *Page) ExpectFileChooser(cb func() error) (playwright.FileChooser, error)
- func (_m *Page) ExpectLoadState(state string, cb func() error) error
- func (_m *Page) ExpectNavigation(cb func() error, options ...playwright.PageWaitForNavigationOptions) (playwright.Response, error)
- func (_m *Page) ExpectPopup(cb func() error) (playwright.Page, error)
- func (_m *Page) ExpectRequest(url interface{}, cb func() error, options ...interface{}) (playwright.Request, error)
- func (_m *Page) ExpectResponse(url interface{}, cb func() error, options ...interface{}) (playwright.Response, error)
- func (_m *Page) ExpectWorker(cb func() error) (playwright.Worker, error)
- func (_m *Page) ExpectedDialog(cb func() error) (playwright.Dialog, error)
- func (_m *Page) ExposeBinding(name string, binding playwright.BindingCallFunction, handle ...bool) error
- func (_m *Page) ExposeFunction(name string, binding func(...interface{}) interface{}) error
- func (_m *Page) Fill(selector string, text string, options ...playwright.FrameFillOptions) error
- func (_m *Page) Focus(expression string, options ...playwright.FrameFocusOptions) error
- func (_m *Page) Frame(options playwright.PageFrameOptions) playwright.Frame
- func (_m *Page) Frames() []playwright.Frame
- func (_m *Page) GetAttribute(selector string, name string, options ...playwright.PageGetAttributeOptions) (string, error)
- func (_m *Page) GoBack(options ...playwright.PageGoBackOptions) (playwright.Response, error)
- func (_m *Page) GoForward(options ...playwright.PageGoForwardOptions) (playwright.Response, error)
- func (_m *Page) Goto(url string, options ...playwright.PageGotoOptions) (playwright.Response, error)
- func (_m *Page) Hover(selector string, options ...playwright.PageHoverOptions) error
- func (_m *Page) InnerHTML(selector string, options ...playwright.PageInnerHTMLOptions) (string, error)
- func (_m *Page) InnerText(selector string, options ...playwright.PageInnerTextOptions) (string, error)
- func (_m *Page) InputValue(selector string, options ...playwright.FrameInputValueOptions) (string, error)
- func (_m *Page) IsChecked(selector string, options ...playwright.FrameIsCheckedOptions) (bool, error)
- func (_m *Page) IsClosed() bool
- func (_m *Page) IsDisabled(selector string, options ...playwright.FrameIsDisabledOptions) (bool, error)
- func (_m *Page) IsEditable(selector string, options ...playwright.FrameIsEditableOptions) (bool, error)
- func (_m *Page) IsEnabled(selector string, options ...playwright.FrameIsEnabledOptions) (bool, error)
- func (_m *Page) IsHidden(selector string, options ...playwright.FrameIsHiddenOptions) (bool, error)
- func (_m *Page) IsVisible(selector string, options ...playwright.FrameIsVisibleOptions) (bool, error)
- func (_m *Page) Keyboard() playwright.Keyboard
- func (_m *Page) ListenerCount(name string) int
- func (_m *Page) Locator(selector string, options ...playwright.PageLocatorOptions) (playwright.Locator, error)
- func (_m *Page) MainFrame() playwright.Frame
- func (_m *Page) Mouse() playwright.Mouse
- func (_m *Page) On(name string, handler interface{})
- func (_m *Page) Once(name string, handler interface{})
- func (_m *Page) Opener() (playwright.Page, error)
- func (_m *Page) PDF(options ...playwright.PagePdfOptions) ([]byte, error)
- func (_m *Page) Pause() error
- func (_m *Page) Press(selector string, key string, options ...playwright.PagePressOptions) error
- func (_m *Page) QuerySelector(selector string) (playwright.ElementHandle, error)
- func (_m *Page) QuerySelectorAll(selector string) ([]playwright.ElementHandle, error)
- func (_m *Page) Reload(options ...playwright.PageReloadOptions) (playwright.Response, error)
- func (_m *Page) RemoveListener(name string, handler interface{})
- func (_m *Page) Route(url interface{}, handler func(playwright.Route, playwright.Request)) error
- func (_m *Page) Screenshot(options ...playwright.PageScreenshotOptions) ([]byte, error)
- func (_m *Page) SelectOption(selector string, values playwright.SelectOptionValues, ...) ([]string, error)
- func (_m *Page) SetChecked(selector string, checked bool, options ...playwright.FrameSetCheckedOptions) error
- func (_m *Page) SetContent(content string, options ...playwright.PageSetContentOptions) error
- func (_m *Page) SetDefaultNavigationTimeout(timeout float64)
- func (_m *Page) SetDefaultTimeout(timeout float64)
- func (_m *Page) SetExtraHTTPHeaders(headers map[string]string) error
- func (_m *Page) SetInputFiles(selector string, files []playwright.InputFile, ...) error
- func (_m *Page) SetViewportSize(width int, height int) error
- func (_m *Page) Tap(selector string, options ...playwright.FrameTapOptions) error
- func (_m *Page) TextContent(selector string, options ...playwright.FrameTextContentOptions) (string, error)
- func (_m *Page) Title() (string, error)
- func (_m *Page) Touchscreen() playwright.Touchscreen
- func (_m *Page) Type(selector string, text string, options ...playwright.PageTypeOptions) error
- func (_m *Page) URL() string
- func (_m *Page) Uncheck(selector string, options ...playwright.FrameUncheckOptions) error
- func (_m *Page) Unroute(url interface{}, handler ...func(playwright.Route, playwright.Request)) error
- func (_m *Page) Video() playwright.Video
- func (_m *Page) ViewportSize() playwright.ViewportSize
- func (_m *Page) WaitForEvent(event string, predicate ...interface{}) interface{}
- func (_m *Page) WaitForFunction(expression string, arg interface{}, ...) (playwright.JSHandle, error)
- func (_m *Page) WaitForLoadState(state ...string)
- func (_m *Page) WaitForNavigation(options ...playwright.PageWaitForNavigationOptions) (playwright.Response, error)
- func (_m *Page) WaitForRequest(url interface{}, options ...interface{}) playwright.Request
- func (_m *Page) WaitForResponse(url interface{}, options ...interface{}) playwright.Response
- func (_m *Page) WaitForSelector(selector string, options ...playwright.PageWaitForSelectorOptions) (playwright.ElementHandle, error)
- func (_m *Page) WaitForTimeout(timeout float64)
- func (_m *Page) WaitForURL(url string, options ...playwright.FrameWaitForURLOptions) error
- func (_m *Page) Workers() []playwright.Worker
- type Prompter
- func (_m *Prompter) Choose(_a0 string, _a1 []string) int
- func (_m *Prompter) ChooseWithDefault(_a0 string, _a1 string, _a2 []string) (string, error)
- func (_m *Prompter) Password(_a0 string) string
- func (_m *Prompter) RequestSecurityCode(_a0 string) string
- func (_m *Prompter) String(_a0 string, _a1 string) string
- func (_m *Prompter) StringRequired(_a0 string) string
- type Request
- func (_m *Request) AllHeaders() (map[string]string, error)
- func (_m *Request) Failure() *playwright.RequestFailure
- func (_m *Request) Frame() playwright.Frame
- func (_m *Request) HeaderValue(name string) (string, error)
- func (_m *Request) HeaderValues(name string) ([]string, error)
- func (_m *Request) Headers() map[string]string
- func (_m *Request) HeadersArray() (playwright.HeadersArray, error)
- func (_m *Request) IsNavigationRequest() bool
- func (_m *Request) Method() string
- func (_m *Request) PostData() (string, error)
- func (_m *Request) PostDataBuffer() ([]byte, error)
- func (_m *Request) PostDataJSON(v interface{}) error
- func (_m *Request) RedirectedFrom() playwright.Request
- func (_m *Request) RedirectedTo() playwright.Request
- func (_m *Request) ResourceType() string
- func (_m *Request) Response() (playwright.Response, error)
- func (_m *Request) Sizes() (*playwright.RequestSizesResult, error)
- func (_m *Request) Timing() *playwright.ResourceTiming
- func (_m *Request) URL() string
- type Response
- func (_m *Response) AllHeaders() (map[string]string, error)
- func (_m *Response) Body() ([]byte, error)
- func (_m *Response) Finished()
- func (_m *Response) Frame() playwright.Frame
- func (_m *Response) HeaderValue(name string) (string, error)
- func (_m *Response) HeaderValues(name string) ([]string, error)
- func (_m *Response) Headers() map[string]string
- func (_m *Response) HeadersArray() (playwright.HeadersArray, error)
- func (_m *Response) JSON(v interface{}) error
- func (_m *Response) Ok() bool
- func (_m *Response) Request() playwright.Request
- func (_m *Response) SecurityDetails() (*playwright.ResponseSecurityDetailsResult, error)
- func (_m *Response) ServerAddr() (*playwright.ResponseServerAddrResult, error)
- func (_m *Response) Status() int
- func (_m *Response) StatusText() string
- func (_m *Response) Text() (string, error)
- func (_m *Response) URL() string
- type U2FDevice
- func (_m *U2FDevice) Authenticate(_a0 *u2fhost.AuthenticateRequest) (*u2fhost.AuthenticateResponse, error)
- func (_m *U2FDevice) Close()
- func (_m *U2FDevice) Open() error
- func (_m *U2FDevice) Register(_a0 *u2fhost.RegisterRequest) (*u2fhost.RegisterResponse, error)
- func (_m *U2FDevice) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶ added in v2.36.5
Page is an autogenerated mock type for the Page type
func NewPage ¶ added in v2.36.5
func NewPage(t mockConstructorTestingTNewPage) *Page
NewPage creates a new instance of Page. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Page) AddInitScript ¶ added in v2.36.5
func (_m *Page) AddInitScript(script playwright.PageAddInitScriptOptions) error
AddInitScript provides a mock function with given fields: script
func (*Page) AddScriptTag ¶ added in v2.36.5
func (_m *Page) AddScriptTag(options playwright.PageAddScriptTagOptions) (playwright.ElementHandle, error)
AddScriptTag provides a mock function with given fields: options
func (*Page) AddStyleTag ¶ added in v2.36.5
func (_m *Page) AddStyleTag(options playwright.PageAddStyleTagOptions) (playwright.ElementHandle, error)
AddStyleTag provides a mock function with given fields: options
func (*Page) BringToFront ¶ added in v2.36.5
BringToFront provides a mock function with given fields:
func (*Page) Check ¶ added in v2.36.5
func (_m *Page) Check(selector string, options ...playwright.FrameCheckOptions) error
Check provides a mock function with given fields: selector, options
func (*Page) Click ¶ added in v2.36.5
func (_m *Page) Click(selector string, options ...playwright.PageClickOptions) error
Click provides a mock function with given fields: selector, options
func (*Page) Close ¶ added in v2.36.5
func (_m *Page) Close(options ...playwright.PageCloseOptions) error
Close provides a mock function with given fields: options
func (*Page) Context ¶ added in v2.36.5
func (_m *Page) Context() playwright.BrowserContext
Context provides a mock function with given fields:
func (*Page) Dblclick ¶ added in v2.36.5
func (_m *Page) Dblclick(expression string, options ...playwright.FrameDblclickOptions) error
Dblclick provides a mock function with given fields: expression, options
func (*Page) DispatchEvent ¶ added in v2.36.5
func (_m *Page) DispatchEvent(selector string, typ string, options ...playwright.PageDispatchEventOptions) error
DispatchEvent provides a mock function with given fields: selector, typ, options
func (*Page) DragAndDrop ¶ added in v2.36.5
func (_m *Page) DragAndDrop(source string, target string, options ...playwright.FrameDragAndDropOptions) error
DragAndDrop provides a mock function with given fields: source, target, options
func (*Page) EmulateMedia ¶ added in v2.36.5
func (_m *Page) EmulateMedia(options ...playwright.PageEmulateMediaOptions) error
EmulateMedia provides a mock function with given fields: options
func (*Page) EvalOnSelector ¶ added in v2.36.5
func (_m *Page) EvalOnSelector(selector string, expression string, options ...interface{}) (interface{}, error)
EvalOnSelector provides a mock function with given fields: selector, expression, options
func (*Page) EvalOnSelectorAll ¶ added in v2.36.5
func (_m *Page) EvalOnSelectorAll(selector string, expression string, options ...interface{}) (interface{}, error)
EvalOnSelectorAll provides a mock function with given fields: selector, expression, options
func (*Page) Evaluate ¶ added in v2.36.5
Evaluate provides a mock function with given fields: expression, options
func (*Page) EvaluateHandle ¶ added in v2.36.5
func (_m *Page) EvaluateHandle(expression string, options ...interface{}) (playwright.JSHandle, error)
EvaluateHandle provides a mock function with given fields: expression, options
func (*Page) ExpectConsoleMessage ¶ added in v2.36.5
func (_m *Page) ExpectConsoleMessage(cb func() error) (playwright.ConsoleMessage, error)
ExpectConsoleMessage provides a mock function with given fields: cb
func (*Page) ExpectDownload ¶ added in v2.36.5
func (_m *Page) ExpectDownload(cb func() error) (playwright.Download, error)
ExpectDownload provides a mock function with given fields: cb
func (*Page) ExpectEvent ¶ added in v2.36.5
func (_m *Page) ExpectEvent(event string, cb func() error, predicates ...interface{}) (interface{}, error)
ExpectEvent provides a mock function with given fields: event, cb, predicates
func (*Page) ExpectFileChooser ¶ added in v2.36.5
func (_m *Page) ExpectFileChooser(cb func() error) (playwright.FileChooser, error)
ExpectFileChooser provides a mock function with given fields: cb
func (*Page) ExpectLoadState ¶ added in v2.36.5
ExpectLoadState provides a mock function with given fields: state, cb
func (*Page) ExpectNavigation ¶ added in v2.36.5
func (_m *Page) ExpectNavigation(cb func() error, options ...playwright.PageWaitForNavigationOptions) (playwright.Response, error)
ExpectNavigation provides a mock function with given fields: cb, options
func (*Page) ExpectPopup ¶ added in v2.36.5
func (_m *Page) ExpectPopup(cb func() error) (playwright.Page, error)
ExpectPopup provides a mock function with given fields: cb
func (*Page) ExpectRequest ¶ added in v2.36.5
func (_m *Page) ExpectRequest(url interface{}, cb func() error, options ...interface{}) (playwright.Request, error)
ExpectRequest provides a mock function with given fields: url, cb, options
func (*Page) ExpectResponse ¶ added in v2.36.5
func (_m *Page) ExpectResponse(url interface{}, cb func() error, options ...interface{}) (playwright.Response, error)
ExpectResponse provides a mock function with given fields: url, cb, options
func (*Page) ExpectWorker ¶ added in v2.36.5
func (_m *Page) ExpectWorker(cb func() error) (playwright.Worker, error)
ExpectWorker provides a mock function with given fields: cb
func (*Page) ExpectedDialog ¶ added in v2.36.5
func (_m *Page) ExpectedDialog(cb func() error) (playwright.Dialog, error)
ExpectedDialog provides a mock function with given fields: cb
func (*Page) ExposeBinding ¶ added in v2.36.5
func (_m *Page) ExposeBinding(name string, binding playwright.BindingCallFunction, handle ...bool) error
ExposeBinding provides a mock function with given fields: name, binding, handle
func (*Page) ExposeFunction ¶ added in v2.36.5
ExposeFunction provides a mock function with given fields: name, binding
func (*Page) Fill ¶ added in v2.36.5
func (_m *Page) Fill(selector string, text string, options ...playwright.FrameFillOptions) error
Fill provides a mock function with given fields: selector, text, options
func (*Page) Focus ¶ added in v2.36.5
func (_m *Page) Focus(expression string, options ...playwright.FrameFocusOptions) error
Focus provides a mock function with given fields: expression, options
func (*Page) Frame ¶ added in v2.36.5
func (_m *Page) Frame(options playwright.PageFrameOptions) playwright.Frame
Frame provides a mock function with given fields: options
func (*Page) Frames ¶ added in v2.36.5
func (_m *Page) Frames() []playwright.Frame
Frames provides a mock function with given fields:
func (*Page) GetAttribute ¶ added in v2.36.5
func (_m *Page) GetAttribute(selector string, name string, options ...playwright.PageGetAttributeOptions) (string, error)
GetAttribute provides a mock function with given fields: selector, name, options
func (*Page) GoBack ¶ added in v2.36.5
func (_m *Page) GoBack(options ...playwright.PageGoBackOptions) (playwright.Response, error)
GoBack provides a mock function with given fields: options
func (*Page) GoForward ¶ added in v2.36.5
func (_m *Page) GoForward(options ...playwright.PageGoForwardOptions) (playwright.Response, error)
GoForward provides a mock function with given fields: options
func (*Page) Goto ¶ added in v2.36.5
func (_m *Page) Goto(url string, options ...playwright.PageGotoOptions) (playwright.Response, error)
Goto provides a mock function with given fields: url, options
func (*Page) Hover ¶ added in v2.36.5
func (_m *Page) Hover(selector string, options ...playwright.PageHoverOptions) error
Hover provides a mock function with given fields: selector, options
func (*Page) InnerHTML ¶ added in v2.36.5
func (_m *Page) InnerHTML(selector string, options ...playwright.PageInnerHTMLOptions) (string, error)
InnerHTML provides a mock function with given fields: selector, options
func (*Page) InnerText ¶ added in v2.36.5
func (_m *Page) InnerText(selector string, options ...playwright.PageInnerTextOptions) (string, error)
InnerText provides a mock function with given fields: selector, options
func (*Page) InputValue ¶ added in v2.36.5
func (_m *Page) InputValue(selector string, options ...playwright.FrameInputValueOptions) (string, error)
InputValue provides a mock function with given fields: selector, options
func (*Page) IsChecked ¶ added in v2.36.5
func (_m *Page) IsChecked(selector string, options ...playwright.FrameIsCheckedOptions) (bool, error)
IsChecked provides a mock function with given fields: selector, options
func (*Page) IsDisabled ¶ added in v2.36.5
func (_m *Page) IsDisabled(selector string, options ...playwright.FrameIsDisabledOptions) (bool, error)
IsDisabled provides a mock function with given fields: selector, options
func (*Page) IsEditable ¶ added in v2.36.5
func (_m *Page) IsEditable(selector string, options ...playwright.FrameIsEditableOptions) (bool, error)
IsEditable provides a mock function with given fields: selector, options
func (*Page) IsEnabled ¶ added in v2.36.5
func (_m *Page) IsEnabled(selector string, options ...playwright.FrameIsEnabledOptions) (bool, error)
IsEnabled provides a mock function with given fields: selector, options
func (*Page) IsHidden ¶ added in v2.36.5
func (_m *Page) IsHidden(selector string, options ...playwright.FrameIsHiddenOptions) (bool, error)
IsHidden provides a mock function with given fields: selector, options
func (*Page) IsVisible ¶ added in v2.36.5
func (_m *Page) IsVisible(selector string, options ...playwright.FrameIsVisibleOptions) (bool, error)
IsVisible provides a mock function with given fields: selector, options
func (*Page) Keyboard ¶ added in v2.36.5
func (_m *Page) Keyboard() playwright.Keyboard
Keyboard provides a mock function with given fields:
func (*Page) ListenerCount ¶ added in v2.36.5
ListenerCount provides a mock function with given fields: name
func (*Page) Locator ¶ added in v2.36.5
func (_m *Page) Locator(selector string, options ...playwright.PageLocatorOptions) (playwright.Locator, error)
Locator provides a mock function with given fields: selector, options
func (*Page) MainFrame ¶ added in v2.36.5
func (_m *Page) MainFrame() playwright.Frame
MainFrame provides a mock function with given fields:
func (*Page) Mouse ¶ added in v2.36.5
func (_m *Page) Mouse() playwright.Mouse
Mouse provides a mock function with given fields:
func (*Page) Opener ¶ added in v2.36.5
func (_m *Page) Opener() (playwright.Page, error)
Opener provides a mock function with given fields:
func (*Page) PDF ¶ added in v2.36.5
func (_m *Page) PDF(options ...playwright.PagePdfOptions) ([]byte, error)
PDF provides a mock function with given fields: options
func (*Page) Press ¶ added in v2.36.5
func (_m *Page) Press(selector string, key string, options ...playwright.PagePressOptions) error
Press provides a mock function with given fields: selector, key, options
func (*Page) QuerySelector ¶ added in v2.36.5
func (_m *Page) QuerySelector(selector string) (playwright.ElementHandle, error)
QuerySelector provides a mock function with given fields: selector
func (*Page) QuerySelectorAll ¶ added in v2.36.5
func (_m *Page) QuerySelectorAll(selector string) ([]playwright.ElementHandle, error)
QuerySelectorAll provides a mock function with given fields: selector
func (*Page) Reload ¶ added in v2.36.5
func (_m *Page) Reload(options ...playwright.PageReloadOptions) (playwright.Response, error)
Reload provides a mock function with given fields: options
func (*Page) RemoveListener ¶ added in v2.36.5
RemoveListener provides a mock function with given fields: name, handler
func (*Page) Route ¶ added in v2.36.5
func (_m *Page) Route(url interface{}, handler func(playwright.Route, playwright.Request)) error
Route provides a mock function with given fields: url, handler
func (*Page) Screenshot ¶ added in v2.36.5
func (_m *Page) Screenshot(options ...playwright.PageScreenshotOptions) ([]byte, error)
Screenshot provides a mock function with given fields: options
func (*Page) SelectOption ¶ added in v2.36.5
func (_m *Page) SelectOption(selector string, values playwright.SelectOptionValues, options ...playwright.FrameSelectOptionOptions) ([]string, error)
SelectOption provides a mock function with given fields: selector, values, options
func (*Page) SetChecked ¶ added in v2.36.5
func (_m *Page) SetChecked(selector string, checked bool, options ...playwright.FrameSetCheckedOptions) error
SetChecked provides a mock function with given fields: selector, checked, options
func (*Page) SetContent ¶ added in v2.36.5
func (_m *Page) SetContent(content string, options ...playwright.PageSetContentOptions) error
SetContent provides a mock function with given fields: content, options
func (*Page) SetDefaultNavigationTimeout ¶ added in v2.36.5
SetDefaultNavigationTimeout provides a mock function with given fields: timeout
func (*Page) SetDefaultTimeout ¶ added in v2.36.5
SetDefaultTimeout provides a mock function with given fields: timeout
func (*Page) SetExtraHTTPHeaders ¶ added in v2.36.5
SetExtraHTTPHeaders provides a mock function with given fields: headers
func (*Page) SetInputFiles ¶ added in v2.36.5
func (_m *Page) SetInputFiles(selector string, files []playwright.InputFile, options ...playwright.FrameSetInputFilesOptions) error
SetInputFiles provides a mock function with given fields: selector, files, options
func (*Page) SetViewportSize ¶ added in v2.36.5
SetViewportSize provides a mock function with given fields: width, height
func (*Page) Tap ¶ added in v2.36.5
func (_m *Page) Tap(selector string, options ...playwright.FrameTapOptions) error
Tap provides a mock function with given fields: selector, options
func (*Page) TextContent ¶ added in v2.36.5
func (_m *Page) TextContent(selector string, options ...playwright.FrameTextContentOptions) (string, error)
TextContent provides a mock function with given fields: selector, options
func (*Page) Touchscreen ¶ added in v2.36.5
func (_m *Page) Touchscreen() playwright.Touchscreen
Touchscreen provides a mock function with given fields:
func (*Page) Type ¶ added in v2.36.5
func (_m *Page) Type(selector string, text string, options ...playwright.PageTypeOptions) error
Type provides a mock function with given fields: selector, text, options
func (*Page) Uncheck ¶ added in v2.36.5
func (_m *Page) Uncheck(selector string, options ...playwright.FrameUncheckOptions) error
Uncheck provides a mock function with given fields: selector, options
func (*Page) Unroute ¶ added in v2.36.5
func (_m *Page) Unroute(url interface{}, handler ...func(playwright.Route, playwright.Request)) error
Unroute provides a mock function with given fields: url, handler
func (*Page) Video ¶ added in v2.36.5
func (_m *Page) Video() playwright.Video
Video provides a mock function with given fields:
func (*Page) ViewportSize ¶ added in v2.36.5
func (_m *Page) ViewportSize() playwright.ViewportSize
ViewportSize provides a mock function with given fields:
func (*Page) WaitForEvent ¶ added in v2.36.5
WaitForEvent provides a mock function with given fields: event, predicate
func (*Page) WaitForFunction ¶ added in v2.36.5
func (_m *Page) WaitForFunction(expression string, arg interface{}, options ...playwright.FrameWaitForFunctionOptions) (playwright.JSHandle, error)
WaitForFunction provides a mock function with given fields: expression, arg, options
func (*Page) WaitForLoadState ¶ added in v2.36.5
WaitForLoadState provides a mock function with given fields: state
func (*Page) WaitForNavigation ¶ added in v2.36.5
func (_m *Page) WaitForNavigation(options ...playwright.PageWaitForNavigationOptions) (playwright.Response, error)
WaitForNavigation provides a mock function with given fields: options
func (*Page) WaitForRequest ¶ added in v2.36.5
func (_m *Page) WaitForRequest(url interface{}, options ...interface{}) playwright.Request
WaitForRequest provides a mock function with given fields: url, options
func (*Page) WaitForResponse ¶ added in v2.36.5
func (_m *Page) WaitForResponse(url interface{}, options ...interface{}) playwright.Response
WaitForResponse provides a mock function with given fields: url, options
func (*Page) WaitForSelector ¶ added in v2.36.5
func (_m *Page) WaitForSelector(selector string, options ...playwright.PageWaitForSelectorOptions) (playwright.ElementHandle, error)
WaitForSelector provides a mock function with given fields: selector, options
func (*Page) WaitForTimeout ¶ added in v2.36.5
WaitForTimeout provides a mock function with given fields: timeout
func (*Page) WaitForURL ¶ added in v2.36.5
func (_m *Page) WaitForURL(url string, options ...playwright.FrameWaitForURLOptions) error
WaitForURL provides a mock function with given fields: url, options
func (*Page) Workers ¶ added in v2.36.5
func (_m *Page) Workers() []playwright.Worker
Workers provides a mock function with given fields:
type Prompter ¶
Prompter is an autogenerated mock type for the Prompter type
func (*Prompter) ChooseWithDefault ¶
ChooseWithDefault provides a mock function with given fields: _a0, _a1, _a2
func (*Prompter) RequestSecurityCode ¶
RequestSecurityCode provides a mock function with given fields: _a0
func (*Prompter) StringRequired ¶
StringRequired provides a mock function with given fields: _a0
type Request ¶ added in v2.36.5
Request is an autogenerated mock type for the Request type
func NewRequest ¶ added in v2.36.5
func NewRequest(t mockConstructorTestingTNewRequest) *Request
NewRequest creates a new instance of Request. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Request) AllHeaders ¶ added in v2.36.5
AllHeaders provides a mock function with given fields:
func (*Request) Failure ¶ added in v2.36.5
func (_m *Request) Failure() *playwright.RequestFailure
Failure provides a mock function with given fields:
func (*Request) Frame ¶ added in v2.36.5
func (_m *Request) Frame() playwright.Frame
Frame provides a mock function with given fields:
func (*Request) HeaderValue ¶ added in v2.36.5
HeaderValue provides a mock function with given fields: name
func (*Request) HeaderValues ¶ added in v2.36.5
HeaderValues provides a mock function with given fields: name
func (*Request) HeadersArray ¶ added in v2.36.5
func (_m *Request) HeadersArray() (playwright.HeadersArray, error)
HeadersArray provides a mock function with given fields:
func (*Request) IsNavigationRequest ¶ added in v2.36.5
IsNavigationRequest provides a mock function with given fields:
func (*Request) PostDataBuffer ¶ added in v2.36.5
PostDataBuffer provides a mock function with given fields:
func (*Request) PostDataJSON ¶ added in v2.36.5
PostDataJSON provides a mock function with given fields: v
func (*Request) RedirectedFrom ¶ added in v2.36.5
func (_m *Request) RedirectedFrom() playwright.Request
RedirectedFrom provides a mock function with given fields:
func (*Request) RedirectedTo ¶ added in v2.36.5
func (_m *Request) RedirectedTo() playwright.Request
RedirectedTo provides a mock function with given fields:
func (*Request) ResourceType ¶ added in v2.36.5
ResourceType provides a mock function with given fields:
func (*Request) Response ¶ added in v2.36.5
func (_m *Request) Response() (playwright.Response, error)
Response provides a mock function with given fields:
func (*Request) Sizes ¶ added in v2.36.5
func (_m *Request) Sizes() (*playwright.RequestSizesResult, error)
Sizes provides a mock function with given fields:
func (*Request) Timing ¶ added in v2.36.5
func (_m *Request) Timing() *playwright.ResourceTiming
Timing provides a mock function with given fields:
type Response ¶ added in v2.36.6
Response is an autogenerated mock type for the Response type
func NewResponse ¶ added in v2.36.6
func NewResponse(t mockConstructorTestingTNewResponse) *Response
NewResponse creates a new instance of Response. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Response) AllHeaders ¶ added in v2.36.6
AllHeaders provides a mock function with given fields:
func (*Response) Finished ¶ added in v2.36.6
func (_m *Response) Finished()
Finished provides a mock function with given fields:
func (*Response) Frame ¶ added in v2.36.6
func (_m *Response) Frame() playwright.Frame
Frame provides a mock function with given fields:
func (*Response) HeaderValue ¶ added in v2.36.6
HeaderValue provides a mock function with given fields: name
func (*Response) HeaderValues ¶ added in v2.36.6
HeaderValues provides a mock function with given fields: name
func (*Response) HeadersArray ¶ added in v2.36.6
func (_m *Response) HeadersArray() (playwright.HeadersArray, error)
HeadersArray provides a mock function with given fields:
func (*Response) Request ¶ added in v2.36.6
func (_m *Response) Request() playwright.Request
Request provides a mock function with given fields:
func (*Response) SecurityDetails ¶ added in v2.36.6
func (_m *Response) SecurityDetails() (*playwright.ResponseSecurityDetailsResult, error)
SecurityDetails provides a mock function with given fields:
func (*Response) ServerAddr ¶ added in v2.36.6
func (_m *Response) ServerAddr() (*playwright.ResponseServerAddrResult, error)
ServerAddr provides a mock function with given fields:
func (*Response) StatusText ¶ added in v2.36.6
StatusText provides a mock function with given fields:
type U2FDevice ¶
U2FDevice is an autogenerated mock type for the U2FDevice type
func (*U2FDevice) Authenticate ¶
func (_m *U2FDevice) Authenticate(_a0 *u2fhost.AuthenticateRequest) (*u2fhost.AuthenticateResponse, error)
Authenticate provides a mock function with given fields: _a0
func (*U2FDevice) Close ¶
func (_m *U2FDevice) Close()
Close provides a mock function with given fields:
func (*U2FDevice) Register ¶
func (_m *U2FDevice) Register(_a0 *u2fhost.RegisterRequest) (*u2fhost.RegisterResponse, error)
Register provides a mock function with given fields: _a0