Exist

You can use exist to check if an element is on the page.

HTML
<div class="parent">
  <div class="website">www.test.com</div>
</div>
Config
{
    "website": {
        "selector": ".website",
        "exist": true,
    },
    "email": {
        "selector": ".email",
        "exist": true,
    },
}

// or

{
    "website": ".website | exist",
    "email": ".email | exist",
}
Output
{
    "website": true,
    "email": false,
}

Last updated