我是Python和机器人框架的新手,我想阅读特定的单元数据以实现自动化。我使用了` `Library‘并使用了一个命令
Read Cell Data By Coordinates {Path to excel file}/test.xlsx 1 1 但是出现了错误消息,即:
FAIL : AttributeError: 'NoneType' object has no attribute 'index'在骑行机器人框架中使用这个。如果需要任何其他信息,请告诉我。
发布于 2018-03-15 04:39:16
无论如何,如果要从xls文件中读取数据,可以使用下面的代码。
${data} Read Cell Data By Name Sheet1 A1或
${data} Read Cell Data By Coordinates Sheet1 1 1使用列和行从该单元格返回数据。
参数:
工作表名称(字符串)单元格值将从其中返回的选定工作表。列(int)将从单元格值返回的列整数值。行(int)将从单元格值返回的行整数值。
https://stackoverflow.com/questions/49152503
复制相似问题