在机器人框架中我们可以使用 Element Should Be Visible in 运行 关键字吗
In robot framework Can we use Element Should Be Visible in Run Keyword If
我正在使用此代码:
Run Keyword If Element Should Be Visible ${PO_Mail_Subject}
我正在使用 Element Should Be Visible in 运行 Keyword If 并获得 Evaluating expression 'Element Should Be Visible' failed: SyntaxError: invalid syntax (<string>, line 1)
.
我不知道我的代码是否有效。谁能帮帮我!!
这样试试:
${Status}= Run Keyword And Return Status Element Should Be Visible ${PO_Mail_Subject}
Run Keyword If '${Status}'=='TRUE' Element Text Should Be <Locator> <Mail Content> ELSE < Do iteration Operation>
我正在使用此代码:
Run Keyword If Element Should Be Visible ${PO_Mail_Subject}
我正在使用 Element Should Be Visible in 运行 Keyword If 并获得 Evaluating expression 'Element Should Be Visible' failed: SyntaxError: invalid syntax (<string>, line 1)
.
我不知道我的代码是否有效。谁能帮帮我!!
这样试试:
${Status}= Run Keyword And Return Status Element Should Be Visible ${PO_Mail_Subject}
Run Keyword If '${Status}'=='TRUE' Element Text Should Be <Locator> <Mail Content> ELSE < Do iteration Operation>