Documentation ¶
Index ¶
- type Engine
- func (cdp *Engine) AddErr(err error)
- func (cdp *Engine) Bigger(i int) szenario.CheckFunc
- func (cdp *Engine) Body(checks ...szenario.CheckFunc) chromedp.Action
- func (cdp *Engine) Contains(s string) szenario.CheckFunc
- func (cdp *Engine) Dump() szenario.CheckFunc
- func (cdp *Engine) DumpHTML(name string)
- func (cdp *Engine) ErrorScreenshot(err error)
- func (cdp *Engine) Execute(szenarios ...szenario.Szenario)
- func (cdp *Engine) Headless() bool
- func (cdp *Engine) IsPresent(sel interface{}, opts ...chromedp.QueryOption) bool
- func (cdp *Engine) Loop()
- func (cdp *Engine) NotContains(s string) szenario.CheckFunc
- func (cdp *Engine) Schedule(szenarios ...szenario.Szenario)
- func (cdp *Engine) ScreenShot(name string)
- func (cdp *Engine) SetStatus(key, val string)
- func (cdp *Engine) SetTimeout(d time.Duration)
- func (cdp *Engine) Step(name string, actions ...chromedp.Action)
- func (cdp *Engine) Strings(html *string) szenario.CheckFunc
- func (cdp *Engine) TimeOut(d time.Duration) context.CancelFunc
- func (cdp *Engine) WaitForEver()
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine contains all information to run a chrome szenario
func (*Engine) ErrorScreenshot ¶
ErrorScreenshot is used to create a screenshot in case of an error
func (*Engine) Headless ¶
Headless indicates if the browser is headless (i.e. does not show on screen)
func (*Engine) IsPresent ¶
func (cdp *Engine) IsPresent(sel interface{}, opts ...chromedp.QueryOption) bool
IsPresent checks if something is present
func (*Engine) NotContains ¶
NotContains looks for a string in the body and errs if found
func (*Engine) ScreenShot ¶
ScreenShot saves a screenshot to the outFolder
func (*Engine) SetTimeout ¶
SetTimeout updates the timeout and restarts the timer
func (*Engine) TimeOut ¶
func (cdp *Engine) TimeOut(d time.Duration) context.CancelFunc
TimeOut registers a timeout after which the szenario is canceled
func (*Engine) WaitForEver ¶
func (cdp *Engine) WaitForEver()
WaitForEver blocks until the timeout is reached
Click to show internal directories.
Click to hide internal directories.