Should not break script if xpath was not found by text|CSS|XPath

Hi Team,

how to handle script if xpath not available in codeceptjs?

Example:
xpath: ‘//button[text()=“OK”]’

Regards,
Ramesh.