Python
import requests url = 'https://api.simplex.sh/exists' headers = { 'X-API-Key': 'your_api_key_here' } data = { 'session_id': 'your_session_id', 'element_description': 'the login button', 'max_steps': 7 # Optional, default is 7 } response = requests.post(url, headers=headers, data=data) result = response.json() if result['succeeded']: print(f"Element exists: {result['exists']}")
{ "succeeded": true, "exists": true, "reasoning": "<string>", "error": "<string>" }
Checks if an element exists in the remote session.
Simplex API Key
Exists response
The response is of type object.
object
Was this page helpful?