browsertest

package module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action = interface {
	chromedp.Action
	Msg() string
}

type ActionWithTimeout added in v0.1.6

type ActionWithTimeout struct {
	Action
	// contains filtered or unexported fields
}

func (ActionWithTimeout) Timeout added in v0.1.6

func (awt ActionWithTimeout) Timeout() time.Duration

type BasicAction added in v0.1.6

type BasicAction struct {
	chromedp.Action
	// contains filtered or unexported fields
}

func (BasicAction) Msg added in v0.1.6

func (ba BasicAction) Msg() string

type Query

type Query struct {
	// contains filtered or unexported fields
}

func (Query) Contains

func (bq Query) Contains(expected string) Action

func (Query) Equals

func (bq Query) Equals(expected string) Action

func (Query) Not

func (bq Query) Not() Query

type Test

type Test struct {
	*testing.T
	// contains filtered or unexported fields
}

func NewTest

func NewTest(t *testing.T, baseURL string) Test

func (Test) ActionFunc

func (bt Test) ActionFunc(f chromedp.ActionFunc, msg string) Action

func (Test) Click

func (bt Test) Click(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) InnerHTML

func (bt Test) InnerHTML(sel interface{}, opts ...chromedp.QueryOption) Query

func (Test) Navigate

func (bt Test) Navigate(url string) Action

func (Test) Poll added in v0.1.2

func (bt Test) Poll(expression string, opts ...chromedp.PollOption) Action

func (Test) Run

func (bt Test) Run(actions ...Action)

func (Test) SendKeys

func (bt Test) SendKeys(sel interface{}, v string, opts ...chromedp.QueryOption) Action

func (Test) Submit

func (bt Test) Submit(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) Text

func (bt Test) Text(sel interface{}, opts ...chromedp.QueryOption) Query

func (Test) Value added in v0.1.5

func (bt Test) Value(sel interface{}, opts ...chromedp.QueryOption) Query

func (Test) WaitEnabled added in v0.1.4

func (bt Test) WaitEnabled(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) WaitNotPresent added in v0.1.4

func (bt Test) WaitNotPresent(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) WaitNotVisible added in v0.1.4

func (bt Test) WaitNotVisible(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) WaitReady

func (bt Test) WaitReady(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) WaitSelected added in v0.1.4

func (bt Test) WaitSelected(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) WaitVisible

func (bt Test) WaitVisible(sel interface{}, opts ...chromedp.QueryOption) Action

func (Test) WithTimeout added in v0.1.6

func (bt Test) WithTimeout(timeout time.Duration, action Action) Action

Jump to

Keyboard shortcuts

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