Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Automation Selenium在语句为false时检查gotoif_Automation_Selenium Ide_Qa - Fatal编程技术网

Automation Selenium在语句为false时检查gotoif

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,我通过IDE编写了一个Selenium命令 当语句为true时,它跳转到标签,但当语句为false时,它不会跳转到所需的标签

我已经附加了命令和日志 有人能帮我吗。

您只需确保在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.