Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 404 Bytes

README_ADVANCED.md

File metadata and controls

20 lines (15 loc) · 404 Bytes

Advanced

Read this doc before you read README.md

How to catch click_image errors

import atx

d = atx.connect()
try:
    d.click_image('button.png', timeout=1)
except atx.Error as e:
    print e.data

Expect result if button.png is not found, you will find matched is False

FindPoint(pos=(115, 1014), confidence=0.5189774632453918, method='template', matched=False)