Methods
(async) perform(browsingContextId, actions) → {Promise}
Performs the specified actions on the given browsing context.
Name | Type | Description |
---|---|---|
browsingContextId | string | The ID of the browsing context. |
actions | Array | The actions to be performed. |
- Source
A promise that resolves with the response from the server.
- Type:
- Promise
(async) release(browsingContextId) → {Promise}
Resets the input state in the specified browsing context.
Name | Type | Description |
---|---|---|
browsingContextId | string | The ID of the browsing context. |
- Source
A promise that resolves when the release actions are sent.
- Type:
- Promise
(async) setFiles(browsingContextId, element, files) → {Promise.<void>}
Sets the files property of a given input element.
Name | Type | Description |
---|---|---|
browsingContextId | string | The ID of the browsing context. |
element | string | | The ID of the element or a ReferenceValue object representing the element. |
files | string | | The file path or an array of file paths to be set. |
- Source
If the element is not a string or a ReferenceValue.
- Type
- Error
A promise that resolves when the files are set.
- Type:
- Promise.<void>