Skip to main content
This processor checks whether an element exists. When swapping tokens, an “Approve” button appears if approval is required. You’d click Approve and then sign the transaction in Rabby or Metamask. If the button doesn’t appear, there’s no need to sign the approval transaction. The Element Exists processor fits perfectly for handling this logic.
Example check whether the Approve button appears on the interface

Example check whether the Approve button appears on the interface

Configuration fields

FieldRequiredDescription
Variable to save resultYesThe processor returns TRUE when the selected element is visible on the page; if it isn’t found, the result is FALSE. Choose a variable name to store this outcome. For example, IS_APPROVE_BUTTON_EXIST
CSS selectorYesCSS selector for the element you want to check
XPath selectorYesXPath selector for the element you want to check