playwrightbase

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 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 Browser

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

func (*Browser) Click

func (b *Browser) Click(ctx context.Context, selector string) error

func (*Browser) CloseBrowser

func (b *Browser) CloseBrowser() error

func (*Browser) ClosePage

func (b *Browser) ClosePage(ctx context.Context, page playwright.Page) error

func (*Browser) Evaluate

func (b *Browser) Evaluate(ctx context.Context, script string, args ...interface{}) (interface{}, error)

func (*Browser) Fill

func (b *Browser) Fill(ctx context.Context, selector string, text string) error

func (*Browser) GetActivePage

func (b *Browser) GetActivePage(ctx context.Context) (playwright.Page, error)

func (*Browser) GetHTML

func (b *Browser) GetHTML(ctx context.Context, selector string) (string, error)

func (*Browser) GetPages

func (b *Browser) GetPages(ctx context.Context) ([]playwright.Page, error)

func (*Browser) GetTitle

func (b *Browser) GetTitle(ctx context.Context) (string, error)

func (*Browser) GetUrl

func (b *Browser) GetUrl(ctx context.Context) (string, error)

func (*Browser) Goto

func (b *Browser) Goto(ctx context.Context, url string) (string, error)

func (*Browser) InstallBrowser

func (b *Browser) InstallBrowser() error

func (*Browser) NewPage

func (b *Browser) NewPage(ctx context.Context) error

func (*Browser) OpenBrowser

func (b *Browser) OpenBrowser(ctx context.Context, args map[string]interface{}) error

func (*Browser) Screenshot

func (b *Browser) Screenshot(ctx context.Context, path string) error

func (*Browser) SelectOption

func (b *Browser) SelectOption(ctx context.Context, selector string, value string) error

func (*Browser) Sleep

func (b *Browser) Sleep(ctx context.Context, duration time.Duration) error

func (*Browser) SwitchPage

func (b *Browser) SwitchPage(ctx context.Context, index int) error

func (*Browser) WaitForSelector

func (b *Browser) WaitForSelector(ctx context.Context, selector string) error

Jump to

Keyboard shortcuts

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