Kind: Class
Source: atloria-monorepo/apps/screenshot-worker/test/helpers/batch-builder.ts
Builder for constructing screenshot items
Methods
| Method | Signature | Returns |
|---|---|---|
create | create() | ScreenshotItemBuilder |
withId | withId(id: string) | this |
withUrl | withUrl(url: string) | this |
withDescription | withDescription(description: string) | this |
withExpectedState | withExpectedState(expectedState: string) | this |
withWaitForSelector | withWaitForSelector(selector: string) | this |
withWaitFor | withWaitFor(waitFor: WaitForDto) | this |
withWaitForTimeout | withWaitForTimeout(timeout: number) | this |
withActions | withActions(actions: Partial<ScreenshotActionDto>[]) | this |
withClickAction | withClickAction(selector: string, options: { waitAfter?: number }) | this |
withTypeAction | withTypeAction(selector: string, value: string, options: { waitAfter?: number }) | this |
withViewport | withViewport(width: number, height: number) | this |
withFullPage | withFullPage(fullPage: boolean) | this |
withStateType | `withStateType(stateType: 'default' | 'hover' |
withPriority | withPriority(priority: number) | this |
withFlowStepId | withFlowStepId(flowStepId: string) | this |
build | build() | Partial<BatchScreenshotItemDto> |
Was this page helpful?