摘要 |
A method and apparatus for identifying GUI widgets of software are provided, comprising: during runtime of the software, determining a GUI window object and an ID thereof, determining all GUI widgets or all GUI widgets belonging to a same type in the GUI window object; partitioning the display area of the GUI window object into a plurality of areas such that each of the GUI widgets is uniquely contained in one area; specifying a unique ID for each area containing a GUI widget; and, identifying a GUI widget using the ID of the GUI window object and the ID of the area where the GUI widget resides, or the ID of the GUI window object, the ID of the type to which the GUI widget belongs and the ID of the area where the GUI widget resides, as the ID property of the GUI widget.
|