Options
All
  • Public
  • Public/Protected
  • All
Menu

object passed to IRequestSettings.IRequestSettings.doneWhen, for determining when to stop the page and render early.

Hierarchy

  • IDoneWhen

Index

Properties

Optional event

event: "load" | "domReady"

if set, will render when the page event occurs. By default we wait until all network requests are complete, after the load event. *(note: this can be controlled via IRequestSettings.resourceWait also).

Currently buggy

Optional html

html: string

if the page's html contains the given string (case sensitive)

Optional htmlRegEx

htmlRegEx: string

if the page's html matches the given Regular Expression

Optional selector

selector: string

match a CSS Selector

Optional statusCode

statusCode: number

specify what status code you want returned. when your criteria is met

default

200

Optional text

text: string

if the page's plain-text contains the given string (case sensitive)

Optional textRegEx

textRegEx: string

if the page's plain-text matches the given Regular Expression

Optional xpath

xpath: string

match a XPath lookup