AirtestProject / AirtestProject/Airtest

图片匹配的RGB模式不起作用

Open
#411 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**描述问题bug**
图片匹配的RGB模式不起作用

checkbox按钮,安亮后是蓝色,否则是灰色。
RGB模式的图片查找,并不能区别按钮颜色的变化

**相关截图**
![image](https://user-images.githubusercontent.com/5180749/58142765-f765a980-7c7a-11e9-9595-e0a7fe86601c.png)
按钮未点亮时,选择第一个按钮

![image](https://user-images.githubusercontent.com/5180749/58142860-49a6ca80-7c7b-11e9-878b-ed1e9b12dd52.png)
按钮点亮后,依旧选择了第一个按钮

**预期效果**
预期效果是可以通过图片查找,查找所有的未点亮的按钮,循环点亮。
```
while exists(image):
touch(image)
```

目前的图片查找情况,只会反复的对第一个按钮进行开关死循环

python 版本:python3.5
airtest IDE 版本: v1.2.1
因为使用的是IDE进行脚本执行,不知道是不是因为IDE版本低导致airtest的版本也过低的原因。
求解决方法

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.