Action Entity
Base class for defining the type of actions that can be performed on BaseInteractiveElement
Various types of Actions:
Action | Description |
---|---|
Api Action | To perform Post, PUT , DELETE, PATCH type of API actions on the user-defined APIs with given payload |
URL Navigation | To open any defined action on given url |
Custom Action | To set custom action on front end |
API Action
- Java
APIAction apiAction = new APIAction("https url", "POST", "Keyname"); // Keyname can be any userdefined string
JSONObject payload = new JSONObject(finalString);
apiAction.setPayload(payload);
JSONObject header = new JSONObject();
apiAction.setHeaders(header);
URL Navigation
- Java
URLNavigationAction urlNavigationAction = new URLNavigationAction("https://www.cometchat.com/");