Airtest-selenium移植pycharm部分设置(四)

Airtest-selenium移植pycharm部分设置(四)

因为移植airtest-selenium到pycharm编写比较方便,同时也可以使用以前的框架进行兼容。

修改Airtest输出日志等级

使用图片匹配函数时:

self.driver.airtest_touch(Template(r"./template_image/tpl1574306781001.png", record_pos=(3.885, 2.81), resolution=(100, 100)))

当使用pycharm时,会在终端输出图片匹配的调试日志如:

[05:39:03][DEBUG] try match with SURFMatching
[05:39:05][DEBUG] [SURF] threshold=0.7, result={'result': (438, 312), 'rectangle': [(211, 238), (211, 386), (665, 386), (665, 238)], 'confidence': 0.969273179769516}
[05:39:05][DEBUG] find_best_result() run time is 2.23 s.
[05:39:05][DEBUG] match result: {'result': (438, 312), 'rectangle': 

你可能感兴趣的:(Airtest,输出日志,图片识别警告)