plw

package
v0.0.0-...-4ae83c4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyElementHandle

type MyElementHandle struct {
	Selector       string
	ElementHandles []playwright.ElementHandle
	T              provider.T
}

func (MyElementHandle) GetAttribute

func (l MyElementHandle) GetAttribute(nth int, name string) string

func (MyElementHandle) InnerText

func (l MyElementHandle) InnerText(nth int) string

type MyLocator

type MyLocator struct {
	Selector   string
	PlwLocator playwright.Locator
	T          provider.T
	Page       playwright.Page
}

func (MyLocator) Click

func (l MyLocator) Click() (err error)

func (MyLocator) ClickWithOption

func (l MyLocator) ClickWithOption(option playwright.PageClickOptions) (err error)

func (MyLocator) Count

func (l MyLocator) Count() int

func (MyLocator) Fill

func (l MyLocator) Fill(value string, options ...playwright.FrameFillOptions) (err error)

func (MyLocator) FillNth

func (l MyLocator) FillNth(nth int, value string, options ...playwright.FrameFillOptions) (err error)

func (MyLocator) Hover

func (l MyLocator) Hover(options ...playwright.PageHoverOptions)

func (MyLocator) InnerText

func (l MyLocator) InnerText() string

func (MyLocator) Locator

func (l MyLocator) Locator(selector string) (ret MyLocator)

func (MyLocator) Press

func (l MyLocator) Press(text string, options ...playwright.PagePressOptions) (err error)

func (MyLocator) RightClick

func (l MyLocator) RightClick()

func (*MyLocator) ScreenShot

func (l *MyLocator) ScreenShot()

func (MyLocator) SelectNth

func (l MyLocator) SelectNth(nth int, values playwright.SelectOptionValues) (err error)

func (MyLocator) Type

func (l MyLocator) Type(text string, options ...playwright.PageTypeOptions) (err error)

type Webpage

type Webpage struct {
	Browser *playwright.Browser
	Pw      *playwright.Playwright
	Page    playwright.Page
	T       provider.T
}

func OpenUrl

func OpenUrl(url string, t provider.T) (ret Webpage, err error)

func (*Webpage) Check

func (p *Webpage) Check(selector string, options ...playwright.FrameCheckOptions)

func (*Webpage) Click

func (p *Webpage) Click(selector string)

func (*Webpage) Close

func (p *Webpage) Close()

func (*Webpage) ElementExist

func (p *Webpage) ElementExist(selector string) bool

func (*Webpage) GetAttribute

func (p *Webpage) GetAttribute(selector string, name string, options ...playwright.PageGetAttributeOptions) string

func (*Webpage) Goto

func (p *Webpage) Goto(url string, options ...playwright.PageGotoOptions) (ret playwright.Response, err error)

func (*Webpage) InnerText

func (p *Webpage) InnerText(selector string) string

func (*Webpage) IsHidden

func (p *Webpage) IsHidden(selector string) bool

func (*Webpage) Locator

func (p *Webpage) Locator(selector string, options ...playwright.PageLocatorOptions) (ret MyLocator)

func (*Webpage) QuerySelectorAll

func (p *Webpage) QuerySelectorAll(selector string) (ret MyElementHandle)

func (*Webpage) RightClick

func (p *Webpage) RightClick(selector string)

func (*Webpage) ScreenShot

func (p *Webpage) ScreenShot()

func (*Webpage) Title

func (p *Webpage) Title() string

func (*Webpage) WaitForResponse

func (p *Webpage) WaitForResponse(url string) (resp playwright.Response)

func (*Webpage) WaitForSelector

func (p *Webpage) WaitForSelector(selector string, options ...playwright.PageWaitForSelectorOptions) (err error)

func (*Webpage) WaitForSelectorTimeout

func (p *Webpage) WaitForSelectorTimeout(selector string, timeout float64, options ...playwright.PageWaitForSelectorOptions) (err error)

func (*Webpage) WaitForTimeout

func (p *Webpage) WaitForTimeout(timeout float64)

Jump to

Keyboard shortcuts

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