Midscene-Python icon indicating copy to clipboard operation
Midscene-Python copied to clipboard

Midscene Python 是一个基于AI的UI自动化测试框架,支持Web和Android平台。其核心创新在于使用自然语言驱动自动化任务,通过集成视觉语言模型(如GPT-4V、Qwen2.5-VL、Gemini)来理解用户意图并执行操作.

Results Midscene-Python issues
Sort by recently updated
recently updated
newest added

python版本3.10.18,midscene-python版本0.1.1,调用出现Exception: AI action failed: type object 'Generation' has no attribute 'acall',猜测是图片里的dashscope.Generation.acall方法名错误,Generation这个类里只有call方法,想请问 midscene-python 版本有qwen模型调用成功的同学吗 ![Image](https://github.com/user-attachments/assets/d93afef9-c7e2-460c-a0ee-2fcc4977eada) ![Image](https://github.com/user-attachments/assets/a80ed722-5a4c-427d-bf1a-65ba26e46345) ![Image](https://github.com/user-attachments/assets/32f8ac80-d313-460e-8405-5fb7a2df5851) ![Image](https://github.com/user-attachments/assets/2206157d-98e8-47cc-bd8c-aaa3252d77df)

2026-02-12 17:49:00.399 | DEBUG | midscene.core.ai_model.service:call_ai:78 - Calling AI provider: qwen 2026-02-12 17:49:00.634 | ERROR | midscene.core.ai_model.service:call_ai:88 - AI call failed: type object 'Generation' has no attribute 'acall' 2026-02-12 17:49:00.634...

yml指定了, 使用echo $MIDSCENE_AI_API_KEY也有对应key显示, 但是调用就是提示AI API key not configured

midscene.android.device:list_devices:120 - Failed to list devices: 'NoneType' object has no attribute 'strip'

\Midscene-Python\midscene\android\agent.py", line 11, in class AndroidAgent(Agent[AndroidDevice]): TypeError: 'type' object is not subscriptable

元素匹配方法,_element_matches 仅按 id 或 text 匹配,AI模型返回的数据里只能拿到识别到的元素坐标,拿不到真实的id或text,导致脚本无法正常执行,要怎么解