【发布时间】:2018-06-06 02:48:39
【问题描述】:
仅当使用 Robot Framework 传递条件时,我才需要执行多个语句
请看代码:注意这是示例代码
*** Settings ***
Library Selenium2Library
Library Collections
*** Keywords ***
Parent Routine
${isElementExist} Run Keyword And Return Status Element Should Be Visible id=txt1
Run Keyword If ${isElementExist} click element id=btn1
Run Keyword If ${isElementExist} click element id=btn2
Run Keyword If ${isElementExist} click element id=btn3
*** Test Cases ***
Sample Test Case
[Documentation] Simple test for If Condition
Parent Routine
我不知道如何将click element的所有语句捆绑到Run Keyword If ${isElementExist}的范围内。
请帮助我。
【问题讨论】: