mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
docs: add a note on download file name (#7473)
This commit is contained in:
parent
47885db116
commit
a481de0871
@ -93,6 +93,9 @@ Get the page that the download belongs to.
|
||||
Returns path to the downloaded file in case of successful download. The method will
|
||||
wait for the download to finish if necessary. The method throws when connected remotely.
|
||||
|
||||
Note that the download's file name is a random GUID, use [`method: Download.suggestedFilename`]
|
||||
to get suggested file name.
|
||||
|
||||
## async method: Download.saveAs
|
||||
|
||||
Copy the download to a user-specified path. It is safe to call this method while the download
|
||||
|
4
types/types.d.ts
vendored
4
types/types.d.ts
vendored
@ -9624,6 +9624,10 @@ export interface Download {
|
||||
/**
|
||||
* Returns path to the downloaded file in case of successful download. The method will wait for the download to finish if
|
||||
* necessary. The method throws when connected remotely.
|
||||
*
|
||||
* Note that the download's file name is a random GUID, use
|
||||
* [download.suggestedFilename()](https://playwright.dev/docs/api/class-download#download-suggested-filename) to get
|
||||
* suggested file name.
|
||||
*/
|
||||
path(): Promise<null|string>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user