【发布时间】:2019-01-22 22:38:42
【问题描述】:
我正在使用 TestCafe 测试本地运行的应用程序,除了以下问题之外没有问题:
我有一个如下所示的元素:
<a href="internallink" class="btn btn-success">Upload file</a>
当测试尝试使用点击元素时
.click(Selector('.btn').withText('Upload file'))
出现以下错误
1) The specified selector does not match any element in the DOM tree.
| Selector('.btn')
> | .withText('Upload new file')
任何关于可能出错的提示都将不胜感激。
【问题讨论】:
标签: automated-tests e2e-testing testcafe ui-testing web-testing