Banners and surprises
Some things can happen on any page, at any moment: a cookie banner, a “Subscribe to our newsletter” window, a chat bubble. Writing a step for them in every plan would be tiresome, and they do not always show. The Banners and surprises card of Project settings handles them once, for every plan.
Close a banner whenever it shows
Section titled “Close a banner whenever it shows”- Open Project settings and go to Banners and surprises.
- Click Add something to close whenever it shows.
- In When this shows (a cookie banner, a newsletter window…), describe something that appears only when the banner is there, for example the heading “We use cookies”, or the banner itself.
- In Click this to close it, describe the button that closes it, for example the “Accept all” button.
- Click Save.
You describe both the same way as the element of a step (see the guide on elements).
From now on, in every plan, on every browser and device: whenever that banner is in the way before a step acts on the page, Allgreen clicks the close button first, then goes on with the step. If the banner never shows, nothing happens, and the plan does not fail. This also works in a tab that a click opened.
Each one shows as a card, Banner 1, Banner 2… You can add up to 10 of them. To remove one, click the delete button on its card.
Fail when the page has an error
Section titled “Fail when the page has an error”A page can have errors in its own code: a button that does nothing, a part of the page that never loads. Visitors do not see the error itself, only that something is wrong.
Turn on the Fail when the page has an error switch, below the banners, to catch them. Then, when the page has an error while a step runs, that step fails, with the message:
The page had an error: “…the error’s own message…”.
This counts on every tab of the plan. It is off by default because many sites have harmless errors. Turn it on if your site should have none.