Skip to content

Commit 68a058d

Browse files
committed
DOC: Autogenerate and update documentation
1 parent ef6c3a9 commit 68a058d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

docs/helpers/Playwright.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,13 @@ I.attachFile('form input[name=avatar]', 'data/avatar.jpg');
482482
I.attachFile('Avatar', 'data/avatar.jpg', '.form-container');
483483
```
484484

485+
If the locator points to a non-file-input element (e.g., a dropzone area),
486+
the file will be dropped onto that element using drag-and-drop events.
487+
488+
```js
489+
I.attachFile('#dropzone', 'data/avatar.jpg');
490+
```
491+
485492
#### Parameters
486493

487494
* `locator` **([string][9] | [object][6])** field located by label|name|CSS|XPath|strict locator.

docs/helpers/Puppeteer.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,13 @@ I.attachFile('form input[name=avatar]', 'data/avatar.jpg');
396396
I.attachFile('Avatar', 'data/avatar.jpg', '.form-container');
397397
```
398398

399+
If the locator points to a non-file-input element (e.g., a dropzone area),
400+
the file will be dropped onto that element using drag-and-drop events.
401+
402+
```js
403+
I.attachFile('#dropzone', 'data/avatar.jpg');
404+
```
405+
399406
#### Parameters
400407

401408
* `locator` **([string][6] | [object][4])** field located by label|name|CSS|XPath|strict locator.

docs/helpers/WebDriver.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,13 @@ I.attachFile('form input[name=avatar]', 'data/avatar.jpg');
567567
I.attachFile('Avatar', 'data/avatar.jpg', '.form-container');
568568
```
569569

570+
If the locator points to a non-file-input element (e.g., a dropzone area),
571+
the file will be dropped onto that element using drag-and-drop events.
572+
573+
```js
574+
I.attachFile('#dropzone', 'data/avatar.jpg');
575+
```
576+
570577
#### Parameters
571578

572579
* `locator` **([string][18] | [object][17])** field located by label|name|CSS|XPath|strict locator.

0 commit comments

Comments
 (0)