[英]Appium | Robot Framework | Unable to run a keyword to find an element using a custom locator strategy
[英]Unable to find IN keyword in Robot Framework. How to use for loop without using IN keyword?
我想使用 for 循环来迭代列表中的元素。 但我认为图书馆不见了。 当使用 IN 关键字时,它会出错。
*** Test Cases ***
Acuvue inquiry
@{index} = BuiltIn.Create List a b
FOR ${item} IN @{index}
BuiltIn.Log ${item}
错误:
Acuvue 查询 | 失败 | FOR 循环不包含关键字。
RobotFramework 中的 for 循环遵循非常严格的语法 - 这是“新”语法,其中循环内的关键字不以\
开头,但循环体必须以 END 结束:
FOR ${item} IN @{index}
BuiltIn.Log ${item}
END
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.