AG
Size: a a a
AG
OK
AG
NS
await t.setFilesToUpload(element, filePath);
AP
AP
NS
/**
* Provide a file for upload.
* @param element - Page element to perform the upload.
* @param filePath - Path to the file to upload.
*/
async setTestFileUpload(element: IPageElement, filePath: string[]) {
await t.setFilesToUpload(element, filePath);
logAction(
`Set test file to upload using filePath "${filePath}" on element ${this.elementToString(
element
)}`
);
}
NS
element
має бути input типомAP
OK
/**
* Provide a file for upload.
* @param element - Page element to perform the upload.
* @param filePath - Path to the file to upload.
*/
async setTestFileUpload(element: IPageElement, filePath: string[]) {
await t.setFilesToUpload(element, filePath);
logAction(
`Set test file to upload using filePath "${filePath}" on element ${this.elementToString(
element
)}`
);
}
NS
OK
NS
RY
RY
AP
NS
AP
m
OS