It fails when I execute the test case in test suite but when I execute it manually it passed

I already put delay for 30 secs and still failed, but when I manually execute the test case it passed. I also put Wait For Element Present and still failed. Do you have any suggestions to avoid this kind of scenario?