update cases/smoke/basic/screenshot32/new_script/testcases/test_launcher.py.

再次点击确保usb弹窗问题解决

Signed-off-by: 贾孟元 <jiamengyuan@h-partners.com>
This commit is contained in:
贾孟元
2025-02-18 01:57:26 +00:00
committed by Gitee
parent a8b3823f04
commit 93ae7ad157
@@ -18,6 +18,9 @@ class Test:
if device.get_focus_window() == 'SystemDialog1':
device.click(595, 555)
time.sleep(10)
if device.get_focus_window() == 'SystemDialog1':
device.click(360, 800)
time.sleep(10)
standard_pic = os.path.join(device.resource_path, 'launcher.jpeg')
launcher_pic = device.save_snapshot_to_local('{}_launcher.jpeg'.format(device.sn))
similarity = compare_image_similarity(launcher_pic, standard_pic)