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 说明 #12

Closed
yihleego opened this issue May 28, 2024 · 0 comments
Closed

关于移除内置 Airtest 说明 #12

yihleego opened this issue May 28, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@yihleego
Copy link
Owner

yihleego commented May 28, 2024

为什么之前集成 Airtest 代码而本期移除的原因

由于在本项目开发期间 Airtest 在 Windows 环境下对窗口有特殊逻辑:在连接窗口时会默认将窗口聚焦置顶,这会导致企业微信若干弹窗窗口直接消失,所以本项目对 Airtest 源码做了一些修改并直接集成到本项目中。

目前新版本 Airtest 已经合并了我的 PR 解决了这个问题,所以此次更新将内置 Airtest 源码移除,改用官方提供的依赖,使得本项目更加精简,专注 RPA 业务本身。

移除内置 Airtest 带来的问题

当前项目使用airtest==1.3.4pywinauto==0.6.8,但是 Airtest 间接依赖了pywinauto==0.6.3版本,直接安装会提示依赖冲突,所以在安装依赖时请加上--no-deps参数,或者在安装完依赖后再执行一遍pip install pywinauto==0.6.8

方法一:

pip install --no-deps -r requirements.txt

方法二:

pip install -r requirements.txt
pip install pywinauto==0.6.8

题外话,Airtest 是个非常优秀的项目,非常值得大家研究和使用。

@yihleego yihleego added the documentation Improvements or additions to documentation label May 28, 2024
@yihleego yihleego pinned this issue May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant