Midscene-Python
Midscene-Python copied to clipboard
Midscene Python 是一个基于AI的UI自动化测试框架,支持Web和Android平台。其核心创新在于使用自然语言驱动自动化任务,通过集成视觉语言模型(如GPT-4V、Qwen2.5-VL、Gemini)来理解用户意图并执行操作.
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模型调用成功的同学吗    
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,导致脚本无法正常执行,要怎么解