I want to test that name2 is blank. I have tried leaving it blank (which returns a message about an incorrect number of arguments. I have tried "", which looks for a pair of quotes, and '' which enters a single quote, and selenium seems to look for that推荐答案您可以使用单个反斜杠\或特殊变量$ {EMPTY}在测试数据中创建一个空字符串.用户指南中包含以下详细信息: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html You can use either a single backslash \ or special variable ${EMPTY} to create an empty string in the test data. User guide has the details: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html 这篇关于使用robotframework-selenium时如何测试空白文本字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-12 03:23