@intuned/sdk-dev-types
Advanced tools
Comparing version 1.0.22-better-download.5 to 1.0.22-better-download.6
@@ -255,2 +255,4 @@ import type { Page, Locator } from "@intuned/playwright-core"; | ||
* @param {string} url - The URL of the file to download. | ||
* @param {Options} [options] - Optional. Options for downloading the file. | ||
* @param {number} [options.downloadTimeout] - Optional. The maximum time in milliseconds to wait for the download to complete. Defaults to Playwright's default timeout. | ||
* @returns {Promise<Download>} A promise that resolves to a Download object. | ||
@@ -268,10 +270,14 @@ * | ||
page: Page, | ||
url: string | ||
url: string, | ||
options?: { downloadTimeout?: number } | ||
): Promise<Download>; | ||
/** | ||
* Downloads a file using the specified locator. | ||
* Downloads a file by clicking the specified locator. | ||
* | ||
* @param {Page} page - The Playwright Page object. | ||
* @param {Locator} locator - The locator of the element to click to download the file. | ||
* @param {Options} [options] - Optional. Options for downloading the file. | ||
* @param {number} [options.downloadTimeout] - Optional. The maximum time in milliseconds to wait for the download to complete. Defaults to Playwright's default timeout. | ||
* @param {number} [options.clickTimeout] - Optional. The maximum time in milliseconds to wait for the element to be clickable. Defaults to Playwright's default timeout. | ||
* @returns {Promise<Download>} A promise that resolves to a Download object. | ||
@@ -289,3 +295,4 @@ * | ||
page: Page, | ||
locator: Locator | ||
locator: Locator, | ||
options?: { downloadTimeout?: number; clickTimeout?: number } | ||
): Promise<Download>; | ||
@@ -298,2 +305,4 @@ | ||
* @param {(page: Page) => Promise<void>} trigger - The function to trigger the download. | ||
* @param {Options} [options] - Optional. Options for downloading the file. | ||
* @param {number} [options.downloadTimeout] - Optional. The maximum time in milliseconds to wait for the download to complete. Defaults to Playwright's default timeout. | ||
* @returns {Promise<Download>} A promise that resolves to a Download object. | ||
@@ -314,3 +323,4 @@ * | ||
page: Page, | ||
trigger: (page: Page) => Promise<void> | ||
trigger: (page: Page) => Promise<void>, | ||
options?: { downloadTimeout?: number } | ||
): Promise<Download>; | ||
@@ -317,0 +327,0 @@ |
{ | ||
"name": "@intuned/sdk-dev-types", | ||
"version": "1.0.22-better-download.5", | ||
"version": "1.0.22-better-download.6", | ||
"description": "intuned runner types", | ||
@@ -5,0 +5,0 @@ "author": "Intuned Team", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72652
2182