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页面判断图像相关问题 #6

Open
GoodbyeMercy opened this issue Dec 26, 2019 · 3 comments
Open

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

GoodbyeMercy opened this issue Dec 26, 2019 · 3 comments

Comments

@GoodbyeMercy
Copy link

在使用Airtest-Selenium测试Web页面时,若要判断一些弹窗提示,若发生弹窗关闭弹窗继续执行,由于弹窗结构经常迭代修改,不想通过selenium元素定位的方式,想通过识别图像的方式判断,手机端可以使用if exists(图像元素)来判断,但貌似web端无法用这个方法,想问下目前有什么解决方案么?

@yimelia
Copy link
Member

yimelia commented Dec 26, 2019

暂时好像没有,我们后续看看如何新增相关接口,我先把这个单移动到airtest-selenium下

@GoodbyeMercy
Copy link
Author

暂时好像没有,我们后续看看如何新增相关接口,我先把这个单移动到airtest-selenium下
有类似的实现方式么?所以目前web端测试只能做到基于图片识别的点击和断言,无法做图片识别是否存在的判断,并执行判断后相应的操作是吗?

@yimelia
Copy link
Member

yimelia commented Dec 26, 2019

具体可以查看本项目的源码

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