Methods
(package) handleFile(_driver, path) → (non-null) {Promise.<string>}
Handles the file specified by the given path, preparing it for use with the current browser. If the path does not refer to a valid file, it will be returned unchanged, otherwise a path suitable for use with the current browser will be returned.
This default implementation is a no-op. Subtypes may override this function for custom tailored file handling.
Name | Type | Description |
---|---|---|
_driver | ||
path | string | The path to process. |
- Source
A promise for the processed file path.
- Type:
- Promise.<string>
handleFile()
Prepares a file
for use with the remote browser. If the provided path does not reference a normal file (i.e. it does not exist or is a directory), then the promise returned by this method will be resolved with the original file path. Otherwise, this method will upload the file to the remote server, which will return the file's path on the remote system so it may be referenced in subsequent commands.
- Source