Skip to content

WaitForDto

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/screenshot-worker/src/app/screenshot/dto/batch-screenshot.dto.ts

Wait condition DTO for page readiness

Supports various wait strategies:

  • selector: Wait for element to appear
  • timeout: Wait for fixed duration
  • networkIdle: Wait for network to be idle
  • loadState: Wait for page load state
  • function: Wait for JS expression to be truthy

Properties

PropertyType
typeWaitType
selectorstring
durationnumber
stateLoadState
functionstring
timeoutnumber

Was this page helpful?

Download as PDF