How to stop appium tests fail when element not found

Hello all ,

I am trying to automate one app and i have been stuck where the tests are getting fail when there is no element found.
How do i stop tests from being failed ??
It would be helpful if someone give me some suggestion

Thanks in advance

add your code and what you are checking.

If you are using Java, use try catch blocks. Something like this…

try {
element.isDisplayed();
}catch(NoSuchElementException e) {
//log some message
}