mocks

package
v2.36.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper added in v2.36.14

type Helper struct {
	mock.Mock
}

Helper is an autogenerated mock type for the Helper type

func NewHelper added in v2.36.14

func NewHelper(t interface {
	mock.TestingT
	Cleanup(func())
}) *Helper

NewHelper creates a new instance of Helper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Helper) Add added in v2.36.14

func (_m *Helper) Add(_a0 *credentials.Credentials) error

Add provides a mock function with given fields: _a0

func (*Helper) Delete added in v2.36.14

func (_m *Helper) Delete(serverURL string) error

Delete provides a mock function with given fields: serverURL

func (*Helper) Get added in v2.36.14

func (_m *Helper) Get(serverURL string) (string, string, error)

Get provides a mock function with given fields: serverURL

func (*Helper) SupportsCredentialStorage added in v2.36.14

func (_m *Helper) SupportsCredentialStorage() bool

SupportsCredentialStorage provides a mock function with given fields:

type Page added in v2.36.5

type Page struct {
	mock.Mock
}

Page is an autogenerated mock type for the Page type

func NewPage added in v2.36.5

func NewPage(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Page) AddInitScript added in v2.36.5

func (_m *Page) AddInitScript(script playwright.Script) error

AddInitScript provides a mock function with given fields: script

func (*Page) AddScriptTag added in v2.36.5

AddScriptTag provides a mock function with given fields: options

func (*Page) AddStyleTag added in v2.36.5

AddStyleTag provides a mock function with given fields: options

func (*Page) BringToFront added in v2.36.5

func (_m *Page) BringToFront() error

BringToFront provides a mock function with given fields:

func (*Page) Check added in v2.36.5

func (_m *Page) Check(selector string, options ...playwright.PageCheckOptions) 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) Content added in v2.36.5

func (_m *Page) Content() (string, error)

Content provides a mock function with given fields:

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(selector string, options ...playwright.PageDblclickOptions) error

Dblclick provides a mock function with given fields: selector, options

func (*Page) DispatchEvent added in v2.36.5

func (_m *Page) DispatchEvent(selector string, typ string, eventInit interface{}, options ...playwright.PageDispatchEventOptions) error

DispatchEvent provides a mock function with given fields: selector, typ, eventInit, options

func (*Page) DragAndDrop added in v2.36.5

func (_m *Page) DragAndDrop(source string, target string, options ...playwright.PageDragAndDropOptions) error

DragAndDrop provides a mock function with given fields: source, target, options

func (*Page) Emit added in v2.36.5

func (_m *Page) Emit(name string, payload ...interface{}) bool

Emit provides a mock function with given fields: name, payload

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, arg interface{}, options ...playwright.PageEvalOnSelectorOptions) (interface{}, error)

EvalOnSelector provides a mock function with given fields: selector, expression, arg, options

func (*Page) EvalOnSelectorAll added in v2.36.5

func (_m *Page) EvalOnSelectorAll(selector string, expression string, arg ...interface{}) (interface{}, error)

EvalOnSelectorAll provides a mock function with given fields: selector, expression, arg

func (*Page) Evaluate added in v2.36.5

func (_m *Page) Evaluate(expression string, arg ...interface{}) (interface{}, error)

Evaluate provides a mock function with given fields: expression, arg

func (*Page) EvaluateHandle added in v2.36.5

func (_m *Page) EvaluateHandle(expression string, arg ...interface{}) (playwright.JSHandle, error)

EvaluateHandle provides a mock function with given fields: expression, arg

func (*Page) ExpectConsoleMessage added in v2.36.5

func (_m *Page) ExpectConsoleMessage(cb func() error, options ...playwright.PageExpectConsoleMessageOptions) (playwright.ConsoleMessage, error)

ExpectConsoleMessage provides a mock function with given fields: cb, options

func (*Page) ExpectDownload added in v2.36.5

func (_m *Page) ExpectDownload(cb func() error, options ...playwright.PageExpectDownloadOptions) (playwright.Download, error)

ExpectDownload provides a mock function with given fields: cb, options

func (*Page) ExpectEvent added in v2.36.5

func (_m *Page) ExpectEvent(event string, cb func() error, options ...playwright.PageExpectEventOptions) (interface{}, error)

ExpectEvent provides a mock function with given fields: event, cb, options

func (*Page) ExpectFileChooser added in v2.36.5

func (_m *Page) ExpectFileChooser(cb func() error, options ...playwright.PageExpectFileChooserOptions) (playwright.FileChooser, error)

ExpectFileChooser provides a mock function with given fields: cb, options

func (*Page) ExpectNavigation added in v2.36.5

func (_m *Page) ExpectNavigation(cb func() error, options ...playwright.PageExpectNavigationOptions) (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, options ...playwright.PageExpectPopupOptions) (playwright.Page, error)

ExpectPopup provides a mock function with given fields: cb, options

func (*Page) ExpectRequest added in v2.36.5

func (_m *Page) ExpectRequest(urlOrPredicate interface{}, cb func() error, options ...playwright.PageExpectRequestOptions) (playwright.Request, error)

ExpectRequest provides a mock function with given fields: urlOrPredicate, cb, options

func (*Page) ExpectRequestFinished added in v2.36.13

func (_m *Page) ExpectRequestFinished(cb func() error, options ...playwright.PageExpectRequestFinishedOptions) (playwright.Request, error)

ExpectRequestFinished provides a mock function with given fields: cb, options

func (*Page) ExpectResponse added in v2.36.5

func (_m *Page) ExpectResponse(urlOrPredicate interface{}, cb func() error, options ...playwright.PageExpectResponseOptions) (playwright.Response, error)

ExpectResponse provides a mock function with given fields: urlOrPredicate, cb, options

func (*Page) ExpectWebSocket added in v2.36.13

func (_m *Page) ExpectWebSocket(cb func() error, options ...playwright.PageExpectWebSocketOptions) (playwright.WebSocket, error)

ExpectWebSocket provides a mock function with given fields: cb, options

func (*Page) ExpectWorker added in v2.36.5

func (_m *Page) ExpectWorker(cb func() error, options ...playwright.PageExpectWorkerOptions) (playwright.Worker, error)

ExpectWorker provides a mock function with given fields: cb, options

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

func (_m *Page) ExposeFunction(name string, binding func([]interface{}) interface{}) error

ExposeFunction provides a mock function with given fields: name, binding

func (*Page) Fill added in v2.36.5

func (_m *Page) Fill(selector string, value string, options ...playwright.PageFillOptions) error

Fill provides a mock function with given fields: selector, value, options

func (*Page) Focus added in v2.36.5

func (_m *Page) Focus(selector string, options ...playwright.PageFocusOptions) error

Focus provides a mock function with given fields: selector, 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) FrameLocator added in v2.36.13

func (_m *Page) FrameLocator(selector string) playwright.FrameLocator

FrameLocator provides a mock function with given fields: selector

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) GetByAltText added in v2.36.13

func (_m *Page) GetByAltText(text interface{}, options ...playwright.PageGetByAltTextOptions) playwright.Locator

GetByAltText provides a mock function with given fields: text, options

func (*Page) GetByLabel added in v2.36.13

func (_m *Page) GetByLabel(text interface{}, options ...playwright.PageGetByLabelOptions) playwright.Locator

GetByLabel provides a mock function with given fields: text, options

func (*Page) GetByPlaceholder added in v2.36.13

func (_m *Page) GetByPlaceholder(text interface{}, options ...playwright.PageGetByPlaceholderOptions) playwright.Locator

GetByPlaceholder provides a mock function with given fields: text, options

func (*Page) GetByRole added in v2.36.13

func (_m *Page) GetByRole(role playwright.AriaRole, options ...playwright.PageGetByRoleOptions) playwright.Locator

GetByRole provides a mock function with given fields: role, options

func (*Page) GetByTestId added in v2.36.13

func (_m *Page) GetByTestId(testId interface{}) playwright.Locator

GetByTestId provides a mock function with given fields: testId

func (*Page) GetByText added in v2.36.13

func (_m *Page) GetByText(text interface{}, options ...playwright.PageGetByTextOptions) playwright.Locator

GetByText provides a mock function with given fields: text, options

func (*Page) GetByTitle added in v2.36.13

func (_m *Page) GetByTitle(text interface{}, options ...playwright.PageGetByTitleOptions) playwright.Locator

GetByTitle provides a mock function with given fields: text, 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.PageInputValueOptions) (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.PageIsCheckedOptions) (bool, error)

IsChecked provides a mock function with given fields: selector, options

func (*Page) IsClosed added in v2.36.5

func (_m *Page) IsClosed() bool

IsClosed provides a mock function with given fields:

func (*Page) IsDisabled added in v2.36.5

func (_m *Page) IsDisabled(selector string, options ...playwright.PageIsDisabledOptions) (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.PageIsEditableOptions) (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.PageIsEnabledOptions) (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.PageIsHiddenOptions) (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.PageIsVisibleOptions) (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

func (_m *Page) ListenerCount(name string) int

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

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) On added in v2.36.5

func (_m *Page) On(name string, handler interface{})

On provides a mock function with given fields: name, handler

func (*Page) OnClose added in v2.36.13

func (_m *Page) OnClose(fn func(playwright.Page))

OnClose provides a mock function with given fields: fn

func (*Page) OnConsole added in v2.36.13

func (_m *Page) OnConsole(fn func(playwright.ConsoleMessage))

OnConsole provides a mock function with given fields: fn

func (*Page) OnCrash added in v2.36.13

func (_m *Page) OnCrash(fn func(playwright.Page))

OnCrash provides a mock function with given fields: fn

func (*Page) OnDOMContentLoaded added in v2.36.13

func (_m *Page) OnDOMContentLoaded(fn func(playwright.Page))

OnDOMContentLoaded provides a mock function with given fields: fn

func (*Page) OnDialog added in v2.36.13

func (_m *Page) OnDialog(fn func(playwright.Dialog))

OnDialog provides a mock function with given fields: fn

func (*Page) OnDownload added in v2.36.13

func (_m *Page) OnDownload(fn func(playwright.Download))

OnDownload provides a mock function with given fields: fn

func (*Page) OnFileChooser added in v2.36.13

func (_m *Page) OnFileChooser(fn func(playwright.FileChooser))

OnFileChooser provides a mock function with given fields: fn

func (*Page) OnFrameAttached added in v2.36.13

func (_m *Page) OnFrameAttached(fn func(playwright.Frame))

OnFrameAttached provides a mock function with given fields: fn

func (*Page) OnFrameDetached added in v2.36.13

func (_m *Page) OnFrameDetached(fn func(playwright.Frame))

OnFrameDetached provides a mock function with given fields: fn

func (*Page) OnFrameNavigated added in v2.36.13

func (_m *Page) OnFrameNavigated(fn func(playwright.Frame))

OnFrameNavigated provides a mock function with given fields: fn

func (*Page) OnLoad added in v2.36.13

func (_m *Page) OnLoad(fn func(playwright.Page))

OnLoad provides a mock function with given fields: fn

func (*Page) OnPageError added in v2.36.13

func (_m *Page) OnPageError(fn func(*playwright.Error))

OnPageError provides a mock function with given fields: fn

func (*Page) OnPopup added in v2.36.13

func (_m *Page) OnPopup(fn func(playwright.Page))

OnPopup provides a mock function with given fields: fn

func (*Page) OnRequest added in v2.36.13

func (_m *Page) OnRequest(fn func(playwright.Request))

OnRequest provides a mock function with given fields: fn

func (*Page) OnRequestFailed added in v2.36.13

func (_m *Page) OnRequestFailed(fn func(playwright.Request))

OnRequestFailed provides a mock function with given fields: fn

func (*Page) OnRequestFinished added in v2.36.13

func (_m *Page) OnRequestFinished(fn func(playwright.Request))

OnRequestFinished provides a mock function with given fields: fn

func (*Page) OnResponse added in v2.36.13

func (_m *Page) OnResponse(fn func(playwright.Response))

OnResponse provides a mock function with given fields: fn

func (*Page) OnWebSocket added in v2.36.13

func (_m *Page) OnWebSocket(fn func(playwright.WebSocket))

OnWebSocket provides a mock function with given fields: fn

func (*Page) OnWorker added in v2.36.13

func (_m *Page) OnWorker(fn func(playwright.Worker))

OnWorker provides a mock function with given fields: fn

func (*Page) Once added in v2.36.5

func (_m *Page) Once(name string, handler interface{})

Once provides a mock function with given fields: name, handler

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) Pause added in v2.36.5

func (_m *Page) Pause() error

Pause provides a mock function with given fields:

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, options ...playwright.PageQuerySelectorOptions) (playwright.ElementHandle, error)

QuerySelector provides a mock function with given fields: selector, options

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

func (_m *Page) RemoveListener(name string, handler interface{})

RemoveListener provides a mock function with given fields: name, handler

func (*Page) Request added in v2.36.13

func (_m *Page) Request() playwright.APIRequestContext

Request provides a mock function with given fields:

func (*Page) Route added in v2.36.5

func (_m *Page) Route(url interface{}, handler func(playwright.Route), times ...int) error

Route provides a mock function with given fields: url, handler, times

func (*Page) RouteFromHAR added in v2.36.13

func (_m *Page) RouteFromHAR(har string, options ...playwright.PageRouteFromHAROptions) error

RouteFromHAR provides a mock function with given fields: har, options

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.PageSelectOptionOptions) ([]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.PageSetCheckedOptions) error

SetChecked provides a mock function with given fields: selector, checked, options

func (*Page) SetContent added in v2.36.5

func (_m *Page) SetContent(html string, options ...playwright.PageSetContentOptions) error

SetContent provides a mock function with given fields: html, options

func (*Page) SetDefaultNavigationTimeout added in v2.36.5

func (_m *Page) SetDefaultNavigationTimeout(timeout float64)

SetDefaultNavigationTimeout provides a mock function with given fields: timeout

func (*Page) SetDefaultTimeout added in v2.36.5

func (_m *Page) SetDefaultTimeout(timeout float64)

SetDefaultTimeout provides a mock function with given fields: timeout

func (*Page) SetExtraHTTPHeaders added in v2.36.5

func (_m *Page) SetExtraHTTPHeaders(headers map[string]string) error

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.PageSetInputFilesOptions) error

SetInputFiles provides a mock function with given fields: selector, files, options

func (*Page) SetViewportSize added in v2.36.5

func (_m *Page) SetViewportSize(width int, height int) error

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.PageTapOptions) 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.PageTextContentOptions) (string, error)

TextContent provides a mock function with given fields: selector, options

func (*Page) Title added in v2.36.5

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

Title provides a mock function with given fields:

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) URL added in v2.36.5

func (_m *Page) URL() string

URL provides a mock function with given fields:

func (*Page) Uncheck added in v2.36.5

func (_m *Page) Uncheck(selector string, options ...playwright.PageUncheckOptions) 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)) 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.Size

ViewportSize provides a mock function with given fields:

func (*Page) WaitForEvent added in v2.36.5

func (_m *Page) WaitForEvent(event string, options ...playwright.PageWaitForEventOptions) (interface{}, error)

WaitForEvent provides a mock function with given fields: event, options

func (*Page) WaitForFunction added in v2.36.5

func (_m *Page) WaitForFunction(expression string, arg interface{}, options ...playwright.PageWaitForFunctionOptions) (playwright.JSHandle, error)

WaitForFunction provides a mock function with given fields: expression, arg, options

func (*Page) WaitForLoadState added in v2.36.5

func (_m *Page) WaitForLoadState(options ...playwright.PageWaitForLoadStateOptions) error

WaitForLoadState provides a mock function with given fields: 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

func (_m *Page) WaitForTimeout(timeout float64)

WaitForTimeout provides a mock function with given fields: timeout

func (*Page) WaitForURL added in v2.36.5

func (_m *Page) WaitForURL(url interface{}, options ...playwright.PageWaitForURLOptions) 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

type Prompter struct {
	mock.Mock
}

Prompter is an autogenerated mock type for the Prompter type

func NewPrompter added in v2.36.13

func NewPrompter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Prompter

NewPrompter creates a new instance of Prompter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Prompter) Choose

func (_m *Prompter) Choose(_a0 string, _a1 []string) int

Choose provides a mock function with given fields: _a0, _a1

func (*Prompter) ChooseWithDefault

func (_m *Prompter) ChooseWithDefault(_a0 string, _a1 string, _a2 []string) (string, error)

ChooseWithDefault provides a mock function with given fields: _a0, _a1, _a2

func (*Prompter) Display added in v2.36.13

func (_m *Prompter) Display(_a0 string)

Display provides a mock function with given fields: _a0

func (*Prompter) Password

func (_m *Prompter) Password(_a0 string) string

Password provides a mock function with given fields: _a0

func (*Prompter) RequestSecurityCode

func (_m *Prompter) RequestSecurityCode(_a0 string) string

RequestSecurityCode provides a mock function with given fields: _a0

func (*Prompter) String

func (_m *Prompter) String(_a0 string, _a1 string) string

String provides a mock function with given fields: _a0, _a1

func (*Prompter) StringRequired

func (_m *Prompter) StringRequired(_a0 string) string

StringRequired provides a mock function with given fields: _a0

type Request added in v2.36.5

type Request struct {
	mock.Mock
}

Request is an autogenerated mock type for the Request type

func NewRequest added in v2.36.5

func NewRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Request) AllHeaders added in v2.36.5

func (_m *Request) AllHeaders() (map[string]string, error)

AllHeaders provides a mock function with given fields:

func (*Request) Failure added in v2.36.5

func (_m *Request) Failure() error

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

func (_m *Request) HeaderValue(name string) (string, error)

HeaderValue provides a mock function with given fields: name

func (*Request) Headers added in v2.36.5

func (_m *Request) Headers() map[string]string

Headers provides a mock function with given fields:

func (*Request) HeadersArray added in v2.36.5

func (_m *Request) HeadersArray() ([]playwright.NameValue, error)

HeadersArray provides a mock function with given fields:

func (*Request) IsNavigationRequest added in v2.36.5

func (_m *Request) IsNavigationRequest() bool

IsNavigationRequest provides a mock function with given fields:

func (*Request) Method added in v2.36.5

func (_m *Request) Method() string

Method provides a mock function with given fields:

func (*Request) PostData added in v2.36.5

func (_m *Request) PostData() (string, error)

PostData provides a mock function with given fields:

func (*Request) PostDataBuffer added in v2.36.5

func (_m *Request) PostDataBuffer() ([]byte, error)

PostDataBuffer provides a mock function with given fields:

func (*Request) PostDataJSON added in v2.36.5

func (_m *Request) PostDataJSON(v interface{}) error

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

func (_m *Request) ResourceType() string

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.RequestTiming

Timing provides a mock function with given fields:

func (*Request) URL added in v2.36.5

func (_m *Request) URL() string

URL provides a mock function with given fields:

type Response added in v2.36.6

type Response struct {
	mock.Mock
}

Response is an autogenerated mock type for the Response type

func NewResponse added in v2.36.6

func NewResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Response) AllHeaders added in v2.36.6

func (_m *Response) AllHeaders() (map[string]string, error)

AllHeaders provides a mock function with given fields:

func (*Response) Body added in v2.36.6

func (_m *Response) Body() ([]byte, error)

Body provides a mock function with given fields:

func (*Response) Finished added in v2.36.6

func (_m *Response) Finished() error

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) FromServiceWorker added in v2.36.13

func (_m *Response) FromServiceWorker() bool

FromServiceWorker provides a mock function with given fields:

func (*Response) HeaderValue added in v2.36.6

func (_m *Response) HeaderValue(name string) (string, error)

HeaderValue provides a mock function with given fields: name

func (*Response) HeaderValues added in v2.36.6

func (_m *Response) HeaderValues(name string) ([]string, error)

HeaderValues provides a mock function with given fields: name

func (*Response) Headers added in v2.36.6

func (_m *Response) Headers() map[string]string

Headers provides a mock function with given fields:

func (*Response) HeadersArray added in v2.36.6

func (_m *Response) HeadersArray() ([]playwright.NameValue, error)

HeadersArray provides a mock function with given fields:

func (*Response) JSON added in v2.36.6

func (_m *Response) JSON(v interface{}) error

JSON provides a mock function with given fields: v

func (*Response) Ok added in v2.36.6

func (_m *Response) Ok() bool

Ok 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) Status added in v2.36.6

func (_m *Response) Status() int

Status provides a mock function with given fields:

func (*Response) StatusText added in v2.36.6

func (_m *Response) StatusText() string

StatusText provides a mock function with given fields:

func (*Response) Text added in v2.36.6

func (_m *Response) Text() (string, error)

Text provides a mock function with given fields:

func (*Response) URL added in v2.36.6

func (_m *Response) URL() string

URL provides a mock function with given fields:

type U2FDevice

type U2FDevice struct {
	mock.Mock
}

U2FDevice is an autogenerated mock type for the U2FDevice type

func (*U2FDevice) Authenticate

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

func (_m *U2FDevice) Open() error

Open provides a mock function with given fields:

func (*U2FDevice) Register

Register provides a mock function with given fields: _a0

func (*U2FDevice) Version

func (_m *U2FDevice) Version() (string, error)

Version provides a mock function with given fields:

Jump to

Keyboard shortcuts

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