This application relates to the field of
computer technology and discloses an
account status detection method, apparatus, and electronic device. In response to an account addition operation, it displays an account information interface for adding an account to be tested; determines the current click position; performs a click operation on the current click position, obtains the current
optical character recognition result, and compares it with historical
optical character recognition results to determine the degree of difference; if the degree of difference is greater than a preset threshold, determines the page text; and determines the
account status of the account to be tested based on the correspondence between the page text and preset keywords. The
account status detection method provided in this embodiment ensures that each click position covers the entire vertical area where the control may appear by generating the current click position sequentially from bottom to top, avoiding element positioning failure problems and improving compatibility. By comparing the
optical character recognition results, it determines the interface transition, improving the accuracy and reliability of the detection.