Skip to content

createAuthenticatedBatch

reference
1 min readUpdated

Kind: Function

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

Helper function to create an authenticated batch request

Signature

ts
function createAuthenticatedBatch(urls: string[], auth: {
    loginUrl: string;
    username: string;
    password: string;
    usernameSelector?: string;
    passwordSelector?: string;
    submitSelector?: string;
  }, options: {
    projectId?: string;
    organizationId?: string;
  }): TakeBatchScreenshotsDto

Parameters

NameType
urlsstring[]
auth`{
loginUrl: string;
username: string;
password: string;
usernameSelector?: string;
passwordSelector?: string;
submitSelector?: string;

}| |options|{ projectId?: string; organizationId?: string; }` |

Returns: TakeBatchScreenshotsDto

Was this page helpful?

Download as PDF