You can use exist to check if an element is on the page.
exist
<div class="parent"> <div class="website">www.test.com</div> </div>
{ "website": { "selector": ".website", "exist": true, }, "email": { "selector": ".email", "exist": true, }, } // or { "website": ".website | exist", "email": ".email | exist", }
{ "website": true, "email": false, }
Last updated 2 years ago