Documentation ¶
Index ¶
- type MyElementHandle
- type MyLocator
- func (l MyLocator) Click() (err error)
- func (l MyLocator) ClickWithOption(option playwright.PageClickOptions) (err error)
- func (l MyLocator) Count() int
- func (l MyLocator) Fill(value string, options ...playwright.FrameFillOptions) (err error)
- func (l MyLocator) FillNth(nth int, value string, options ...playwright.FrameFillOptions) (err error)
- func (l MyLocator) Hover(options ...playwright.PageHoverOptions)
- func (l MyLocator) InnerText() string
- func (l MyLocator) Locator(selector string) (ret MyLocator)
- func (l MyLocator) Press(text string, options ...playwright.PagePressOptions) (err error)
- func (l MyLocator) RightClick()
- func (l *MyLocator) ScreenShot()
- func (l MyLocator) SelectNth(nth int, values playwright.SelectOptionValues) (err error)
- func (l MyLocator) Type(text string, options ...playwright.PageTypeOptions) (err error)
- type Webpage
- func (p *Webpage) Check(selector string, options ...playwright.FrameCheckOptions)
- func (p *Webpage) Click(selector string)
- func (p *Webpage) Close()
- func (p *Webpage) ElementExist(selector string) bool
- func (p *Webpage) GetAttribute(selector string, name string, options ...playwright.PageGetAttributeOptions) string
- func (p *Webpage) Goto(url string, options ...playwright.PageGotoOptions) (ret playwright.Response, err error)
- func (p *Webpage) InnerText(selector string) string
- func (p *Webpage) IsHidden(selector string) bool
- func (p *Webpage) Locator(selector string, options ...playwright.PageLocatorOptions) (ret MyLocator)
- func (p *Webpage) QuerySelectorAll(selector string) (ret MyElementHandle)
- func (p *Webpage) RightClick(selector string)
- func (p *Webpage) ScreenShot()
- func (p *Webpage) Title() string
- func (p *Webpage) WaitForResponse(url string) (resp playwright.Response)
- func (p *Webpage) WaitForSelector(selector string, options ...playwright.PageWaitForSelectorOptions) (err error)
- func (p *Webpage) WaitForSelectorTimeout(selector string, timeout float64, ...) (err error)
- func (p *Webpage) WaitForTimeout(timeout float64)
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) ClickWithOption ¶
func (l MyLocator) ClickWithOption(option playwright.PageClickOptions) (err error)
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) 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 (*Webpage) Check ¶
func (p *Webpage) Check(selector string, options ...playwright.FrameCheckOptions)
func (*Webpage) ElementExist ¶
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) 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 (*Webpage) ScreenShot ¶
func (p *Webpage) ScreenShot()
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 ¶
Click to show internal directories.
Click to hide internal directories.