Documentation
¶
Index ¶
- func Run(c *engine.Context, s *Script, st stepper.Stepper, o ...opts.Opt[RunOpts]) error
- func RunAsync(c *engine.Context, s *Script, st stepper.Stepper, o ...opts.Opt[RunOpts]) context.Context
- func WithChromeOpts(o ...chromedp.ExecAllocatorOption) opts.Opt[RunOpts]
- func WithPostRunFunc(f PostRunFunc) opts.Opt[RunOpts]
- func WithScreenshotAfter(b bool) opts.Opt[RunOpts]
- func WithScreenshotBefore(b bool) opts.Opt[RunOpts]
- type PostRunFunc
- type RunOpts
- type Script
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithChromeOpts ¶
func WithChromeOpts(o ...chromedp.ExecAllocatorOption) opts.Opt[RunOpts]
func WithPostRunFunc ¶
func WithPostRunFunc(f PostRunFunc) opts.Opt[RunOpts]
Types ¶
type RunOpts ¶
type RunOpts struct { Store *engine.TemplateData PreRun []chromedp.Action PostRunFunc PostRunFunc ScreenshotAfter bool ScreenshotBefore bool ChromeOpts []chromedp.ExecAllocatorOption }
func (RunOpts) DefaultOptions ¶
Click to show internal directories.
Click to hide internal directories.