← Back to DOM domain
DOM.getFileInfo
Returns file information for the given
File wrapper.
Domain: DOM
experimental
Parameters
| Name | Type | Description |
objectId | Runtime.RemoteObjectId | JavaScript object id of the node wrapper. |
Returns
| Name | Type | Description |
path | string | |
Example Request
{
"id": 1,
"method": "DOM.getFileInfo",
"params": {
"objectId": "{\"injectedScriptId\":1,\"id\":1}"
}
}
Example Response
{
"id": 1,
"result": {
"path": "path-value"
}
}
Usage in Node.js
const result = await send('DOM.getFileInfo', {"objectId": "{\"injectedScriptId\":1,\"id\":1}"});
console.log(result);
// {"path": "path-value"}