Stopping the test after ex. 30 min

Is there a way to stop test after ex. 30 min, it does not matter if it works well or not. I have situations where appium try find element 8h. I remember in old version, appium stopped the test after 30 min. Is there some capabilities

There isn’t such a capability, but you can control the time your tests take in code and stop them once they are over some time. You can even use a thread to manage time and other thread running the tests