robotframework - 由于没有找到名称为“从字典中获取”的关键字错误,我无法使用机器人框架运行我的代码
问题描述
错误在控制台中显示为“找不到名称为'从字典中获取'的关键字”
${contentTypeValue} = get from dictionary ${response.headers} Content-Type
should be equal ${contentTypeValue} text/html; charset=utf-8
我还添加了名为 robtotframework-dictkeyallpaths 的 python 解释器,但问题尚未解决
解决方案
你需要导入Collections
Robot Framework 库,它提供了这个关键字。
推荐阅读
- python - Python函数在所有可能的平方和中分解一个数字
- c# - WPF中加载文件的异步等待任务错误
- php - Dropzone文件上传新名称?
- awk - 计数取决于 awk 中列中的值
- interrupt - 连接到 MCP23017 的 ESP32 中断问题
- c++ - “char”类型的 C++ 参数与“char(*)[7]”类型的参数不兼容
- vb.net - 如何使用 Chilkat DLL 从 Google Drive 文件夹中获取 FolderID
- python - 防止用户在猜数字游戏中输入无效值
- python - 传递真实成员时出现discord.py MemberNotFound异常
- javascript - Nightmare.js 找不到 css 标签