A method for enhance input stability and compatibility of IOS automated t is disclosed, At that start of the input, the IOS system version is jud, determine if the IOS system version is greater than or equal to 10.3, Whether it is less than 10.3 or not, different methods are adopted to perform the purge operation and input operation automatically according to different versions of the system, which can ensure that no matter what type of IOS input box is, the input operation in the automated test can be stably completed, so as to be compatible with different versions of the IOS system.