1. A method of processing an automation script used for testing a page, the method comprising: executing the automation script; searching for an element on the page according to locating information contained within an instruction of the automation script; collecting, responsive to finding the element on the page according to the locating information, element-related information; associating the collected element-related information of the element with the instruction of the automation script; saving the collected element-related information; determining whether a better instruction for searching for the element exists according to the collected element-related information; and updating, responsive to the determining that the better instruction exists, the automation script with the better instruction.