首页 > 解决方案 > 由于没有找到名称为“从字典中获取”的关键字错误,我无法使用机器人框架运行我的代码

问题描述

错误在控制台中显示为“找不到名称为'从字典中获取'的关键字”

${contentTypeValue} =  get from dictionary  ${response.headers}   Content-Type
should be equal  ${contentTypeValue}  text/html; charset=utf-8

我还添加了名为 robtotframework-dictkeyallpaths 的 python 解释器,但问题尚未解决

标签: robotframework

解决方案


你需要导入CollectionsRobot Framework 库,它提供了这个关键字。


推荐阅读