Continue on failure

Hi!
I am trying to create a macro approving all members of FB groups for all the groups I manage.
However the “Approve” button is in the page only if at least 1 member requested to subscribe.
If there is no button in the page then the macro stops with a failure.

Is there any way to let the macro continue?

Can you show the code that is failing?

Here’s how I would approach the problem.
Check if the button is on the page. If it is, then click it, otherwise do nothing.

open | https://katalon-test.s3.amazonaws.com/demo-aut/dist/html/form.html | |
storeElementPresent | id=approve | isButtonPresent |
echo | ${isButtonPresent} | |
if | isButtonPresent == true | |
echo | Button Present | |
click | id=approve | |
else | | |
echo | Button Not Present | |
endIf | | |

which produces the log

[info] Executing: | open | https://katalon-test.s3.amazonaws.com/demo-aut/dist/html/form.html | |
[info] Executing: | storeElementPresent | id=approve | isButtonPresent |
[info] Store 'false' into 'isButtonPresent'
[info] Executing: | echo | ${isButtonPresent} | |
[info] Expand variable '${isButtonPresent}' into 'false'
[info] echo: false
[info] Executing: | if | isButtonPresent == true | |
[info] Executing: | echo | Button Present | |
[info] Executing: | click | id=approve | |
[info] Executing: | else | | |
[info] Executing: | echo | Button Not Present | |
[info] echo: Button Not Present
[info] Executing: | endIf | | |
[info] Time: Mon Mar 11 2019 09:13:01 GMT+0000 (Greenwich Mean Time) Timestamp: 1552295581802
[info] Test case passed