Documentation
¶
Index ¶
- type Playwright
- func (p *Playwright) Click(selector string, opts playwright.PageClickOptions)
- func (p *Playwright) Goto(url string, opts playwright.PageGotoOptions)
- func (p *Playwright) Kill()
- func (p *Playwright) Launch(args []string)
- func (p *Playwright) NewPage()
- func (p *Playwright) Type(selector string, typedString string, opts playwright.PageTypeOptions)
- func (p *Playwright) WaitForSelector(selector string, opts playwright.PageWaitForSelectorOptions)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Playwright ¶
type Playwright struct {
Self *playwright.Playwright
Browser playwright.Browser
Page playwright.Page
}
Playwright is the k6 extension for a playwright-go client.
func (*Playwright) Click ¶
func (p *Playwright) Click(selector string, opts playwright.PageClickOptions)
Click wrapper around playwright click page function that takes in a selector and a set of options
func (*Playwright) Goto ¶
func (p *Playwright) Goto(url string, opts playwright.PageGotoOptions)
Goto wrapper around playwright goto page function that takes in a url and a set of options
func (*Playwright) Kill ¶
func (p *Playwright) Kill()
Kill closes browser instance and stops puppeteer client
func (*Playwright) Launch ¶
func (p *Playwright) Launch(args []string)
Launch starts the playwright client and launches a browser
func (*Playwright) NewPage ¶
func (p *Playwright) NewPage()
NewPage opens a new page within the browser
func (*Playwright) Type ¶
func (p *Playwright) Type(selector string, typedString string, opts playwright.PageTypeOptions)
Type wrapper around playwright type page function that takes in a selector, string, and a set of options
func (*Playwright) WaitForSelector ¶
func (p *Playwright) WaitForSelector(selector string, opts playwright.PageWaitForSelectorOptions)
WaitForSelector wrapper around playwright waitForSelector page function that takes in a selector and a set of options