The invention discloses a method and device for obtaining page loading time, a terminal and a medium, and belongs to the field of automated testing. The method includes the following steps that the page name of a to-be-tested page is obtained; according to the page name, the coordinate of a trigger control of the preset to-be-tested page is obtained; according to the coordinate, the trigger control is clicked in a simulation mode so as to trigger and execute loading events of the to-be-tested page associated with the trigger control, and at the same time, the current system time is recorded and serves as the start time of page loading; in the process of executing the loading events, according to the loading page of the to-be-tested page and the pre-stored loaded page of the to-be-tested page, the end time of page loading is determined; according to the start time of page loading and the end time of page loading, the loading time of the to-be-tested page is determined. The embodiment ofthe invention provides the method and device for obtaining page loading time, a terminal and a medium, and automatic testing of the loading time of the page is achieved.