Classes
Methods
(async) take(name) → {Promise.<Object>}
Takes a screenshot and saves it using the screenshot manager.
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name to assign to the screenshot file. |
Throws:
- Throws an error if the name parameter is not provided.
- Type
- Error
Returns:
A promise that resolves with the screenshot details.
- Type:
- Promise.<Object>
Example
async commands.screenshot.take('my_startpage');