Enqueue actions
import requests
import json

url = 'https://api.simplex.sh/enqueue_actions'
headers = {
    'X-API-Key': 'your_api_key_here'
}

actions = [
    {
        'function': 'goto',
        'params': {'url': 'https://example.com'}
    },
    {
        'function': 'click',
        'params': {'element_description': 'login button'}
    },
    {
        'function': 'type',
        'params': {'text': 'username@example.com'}
    }
]

data = {
    'actions': json.dumps(actions),
    'session_id': 'your_session_id'  # Optional
}

response = requests.post(url, headers=headers, data=data)
print(response.json())
{
  "succeeded": true
}
Enqueues a list of actions to be executed in sequence.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

multipart/form-data

Response

Enqueue actions response

The response is of type object.