元素定位方法、装置、设备及介质

By acquiring the attributes and screenshots of target elements during software automation testing, and combining visual and attribute information to automatically identify and update elements, the problem of test scripts failing to run due to changes in interface layout is solved, thus improving testing efficiency and stability.

CN121640476BActive Publication Date: 2026-07-17GEER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GEER TECH CO LTD
Filing Date
2025-11-24
Publication Date
2026-07-17

Smart Images

  • Figure CN121640476B_ABST
    Figure CN121640476B_ABST
Patent Text Reader

Abstract

本公开实施例公开了一种元素定位方法、装置、设备及介质,所述方法包括:响应于用户在当前应用界面的选择操作,从所述当前应用界面的布局文件中确定目标元素,并获取所述目标元素的元素属性和所述目标元素在所述当前应用界面中的第一截图图片;在检测到所述当前应用界面的布局发生变化的情况下,获取变化后的布局文件;根据所述第一截图图片和所述元素属性,在所述变化后的布局文件中识别与所述目标元素对应的候选元素,以及根据识别结果更新设定元素信息树中的所述目标元素。
Need to check novelty before this filing date? Find Prior Art