我需要自动点击按钮。代码:
<tr>
<td>click</td>
<td>css=button</td>
<td></td>
当我单击“播放当前测试用例”时,它没有找到该元素。但是当我在那之后点击“查找”——它确实如此,如果我点击执行——它就会点击它!日志:
[info] Executing: |click | css=div.sometag > p | |
[info] Executing: |pause | | 2000 | // Same error with pause & without it
[info] Executing: |clickAndWait | css=button | | // Auto executing
[error] Element css=button not found // Fails
[info] Executing: |click | css=button | | // I click on "Execute" manually - OK!
为什么?