WaitForSelector Type

The WaitForSelector type is used for all document types (PDFs & Images). It allows you to specify, wait options to control how the Chrome engine determines when the page is fully loaded before performing the conversion.

Type Definition

waitForSelector
(waitForSelector)
selector
(string)
A selector of an element on the page to wait for until starting conversion.
options
(waitForSelectorOptions)

Different wait options

visible
(boolean)
Wait until the selector is visible. If you set hidden to true, it will negate this option.
hidden
(boolean)
Wait until the selector is hidden. If you set visible to true, it will negate this option.
timeout
(number)
Amount of time to wait for either of the options within waitForSelector to complete before aborting the request. This is inclusive to timeout property, and delay is additive occurring after this completes.