Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airtest-Selenium测试web页面判断图像相关问题 #663

Closed
GoodbyeMercy opened this issue Dec 26, 2019 · 1 comment
Closed

Airtest-Selenium测试web页面判断图像相关问题 #663

GoodbyeMercy opened this issue Dec 26, 2019 · 1 comment

Comments

@GoodbyeMercy
Copy link

在使用Airtest-Selenium测试Web页面时,若要判断一些弹窗提示,若发生弹窗关闭弹窗继续执行,由于弹窗结构经常迭代修改,不想通过selenium元素定位的方式,想通过识别图像的方式判断,手机端可以使用if exists(图像元素)来判断,但貌似web端用exists时一直识别不到对应的图像,返回的结果是:
01:42:19][INFO]<airtest.core.api> Try finding:
Template(E:\Work\AirtestIDE_2019-09-11_py3_win64\webtest-db-v2.0.air\tpl1577335689903.png)
[01:42:19][DEBUG]<airtest.core.api> resize: (206, 78)->(2366, 896), resolution: (100, 100)=>(1625, 766)
[01:42:19][DEBUG]<airtest.core.api> try match with SURFMatching
[01:42:21][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 2.04 s.
[01:42:21][DEBUG]<airtest.core.api> try match with TemplateMatching
[01:42:21][DEBUG]<airtest.core.api> 'error: in template match, found im_search bigger than im_source.'
[01:42:21][DEBUG]<airtest.core.api> try match with BRISKMatching
[01:42:21][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.61 s.
[01:42:21][DEBUG]<airtest.core.api> match result: None
[01:42:22][DEBUG]<airtest.core.api> resize: (206, 78)->(2366, 896), resolution: (100, 100)=>(1625, 766)
[01:42:22][DEBUG]<airtest.core.api> try match with SURFMatching
[01:42:23][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 1.07 s.
[01:42:23][DEBUG]<airtest.core.api> try match with TemplateMatching
[01:42:23][DEBUG]<airtest.core.api> 'error: in tGenerating HTML log:
无匹配影像,设备连接器也连了Chorme窗体,麻烦各位大大帮忙看看~`

@yimelia
Copy link
Member

yimelia commented Dec 26, 2019

Duplicate of AirtestProject/airtest-selenium#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants