Contains all of the commands for the hayD-Caf plugin.
- Copyright:
- Copyright © 2023-… by Seth Hollingsead. All rights reserved
- Source:
Requires
- module:plugin.constants
- @haystacks/async
- @haystacks/constants
- path
Methods
(inner) buildBrowserActionFunction(inputData, inputMetaData) → {array.<boolean, object>}
Creates a function that can be used to execute an action against a browser or HTML interface of some kind.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered a list of meta-data that should be used for construction the browser action. inputData[0] === 'buildBrowserActionFunction' inputData[1] === CSS-locator inputData[2] === parent inputData[n] === action (default/override) |
inputMetaData |
string | Not used for this command. |
Returns:
An array that contains a boolean to indicate that the application should not exit, and a JSON object that contains data about the object after the change was made.
- Type
- array.<boolean, object>