我有一个问题,使用其他如果在射频。希望你能帮我。
因此,基本上在网页上有任务需要声明,但是可能会发生这样的情况:根本没有任务,或者多个任务。为了解决这个问题,我想创建一个关键字。
*** Keywords ***
Claim Tasks
${tasks}= Get Element Count css:.claim
FOR ${i} IN RANGE ${tasks}
${present}= Run Keyword And Return Status Element Should Be Visible css:.claim
Run Keyword If ${present} Run Keywords Click Element ${ClaimTask}
... AND Click Element ${Missing}
... ELSE Click Element ${Continue}
END我在这里要做的是计数任务,对于每个任务,单击claim按钮,一旦单击索赔按钮,单击${失踪},如果不存在,则单击${Continue}。我尝试了我粘贴的代码,但它不起作用。
有人能帮我解决这个问题吗?
发布于 2020-09-11 11:17:28
如果其他问题得到解决:
*** Keywords ***
User Claims Tasks
Click Element ${claim}
${continue}= Run Keyword And Return Status Element Should Be Visible ${cont}
${missing}= Run Keyword And Return Status Element Should Be Visible ${miss}
Run Keyword If ${missing} Click Element ${miss}
... ELSE IF ${continue} Click Element ${cont}https://stackoverflow.com/questions/63825859
复制相似问题