Automated GUIs test application user interfaces and verify their functionalities. However, due to the uncertainty of runtime execution environments, the device under test (DUT) might not reproduce GUI operations on time, resulting in test failures. The Smart Phone Automated GUI (SPAG) avoids nondeterministic events by batching event sequences and directly reproducing them on the DUT. SPAG dynamically changes the timing of following operations so that all event sequences can be performed on time. Experiments conducted on an Acer Liquid smartphone comparing SPAG to MonkeyRunner showed that SPAG can maintain up to 99.5 percent accuracy.