【发布时间】:2020-07-05 16:04:35
【问题描述】:
我想在 textarea 上输入带有父类的文本,该父类在以下 img Snippet 代码上标记 我想使用那个类,因为 textarea 上的 id 是动态元素,每次加载都会改变。这就是我使用父类的原因。我用
let textArea = Selector('.block-card list-group-item text-card col-xs-12').find('textarea')
await t
.typeText(textArea, 'Hai...')
但出现错误:
The specified selector does not match any element in the DOM tree.
> | Selector('.block-card list-group-item text-card col-xs-12')
| .find('textarea')
这是用户界面 用户界面。 谁能帮帮我?
【问题讨论】:
标签: testing automated-tests e2e-testing testcafe browser-automation