Automation Selenium在语句为false时检查gotoif
通过实现gotoIf,我通过IDE编写了一个Selenium命令 当语句为true时,它跳转到标签,但当语句为false时,它不会跳转到所需的标签 我已经附加了命令和日志 有人能帮我吗。Automation Selenium在语句为false时检查gotoif,automation,selenium-ide,qa,Automation,Selenium Ide,Qa,通过实现gotoIf,我通过IDE编写了一个Selenium命令 当语句为true时,它跳转到标签,但当语句为false时,它不会跳转到所需的标签 我已经附加了命令和日志 有人能帮我吗。 您只需确保在gotoIf语句中找到“home”时要执行的代码。它应该如下所示 gotoIf | ${test}==true | A click | css=a.aits-log-out label | A 删除标签| B,因为您的gotoIf语句没有查找该标签,因为您尚未定义它 如果您也需要复制粘贴的代码 &
您只需确保在gotoIf语句中找到“home”时要执行的代码。它应该如下所示
gotoIf | ${test}==true | A
click | css=a.aits-log-out
label | A
删除标签| B,因为您的gotoIf语句没有查找该标签,因为您尚未定义它
如果您也需要复制粘贴的代码
<tr>
<td>gotoIf</td>
<td>${test} == true</td>
<td>A</td>
</tr>
<tr>
<td>click</td>
<td>css=a.aits-log-out</td>
<td></td>
</tr>
<tr>
<td>label</td>
<td>A</td>
<td></td>
</tr>
戈托夫
${test}==true
A.
点击
css=a.aits-log-out
标签
A.