Skip to content

ScreenshotItemBuilder

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/screenshot-worker/test/helpers/batch-builder.ts

Builder for constructing screenshot items

Methods

MethodSignatureReturns
createcreate()ScreenshotItemBuilder
withIdwithId(id: string)this
withUrlwithUrl(url: string)this
withDescriptionwithDescription(description: string)this
withExpectedStatewithExpectedState(expectedState: string)this
withWaitForSelectorwithWaitForSelector(selector: string)this
withWaitForwithWaitFor(waitFor: WaitForDto)this
withWaitForTimeoutwithWaitForTimeout(timeout: number)this
withActionswithActions(actions: Partial<ScreenshotActionDto>[])this
withClickActionwithClickAction(selector: string, options: { waitAfter?: number })this
withTypeActionwithTypeAction(selector: string, value: string, options: { waitAfter?: number })this
withViewportwithViewport(width: number, height: number)this
withFullPagewithFullPage(fullPage: boolean)this
withStateType`withStateType(stateType: 'default''hover'
withPrioritywithPriority(priority: number)this
withFlowStepIdwithFlowStepId(flowStepId: string)this
buildbuild()Partial<BatchScreenshotItemDto>

Was this page helpful?

Download as PDF