小编G-k*_*key的帖子

使用 Testcafe 选择器:withText 然后是兄弟

我正在尝试使用withText过滤器创建一个选择器并希望选择同级元素。

给出: const Create_asset = S('span').withText('Create Asset')

Create_asset()ReExecutablePromisenextSibling()方法返回一个。 await Create_asset()返回一个 DOM-like(?) 对象,但没有nextSibling()方法,所以我似乎做不到await Create_asset().withText('text').nextSibling()

使用withText()过滤器时如何随后选择兄弟姐妹?

也感谢您提供任何调试技巧!

testing automated-tests filter e2e-testing testcafe

5
推荐指数
1
解决办法
1154
查看次数

标签 统计

automated-tests ×1

e2e-testing ×1

filter ×1

testcafe ×1

testing ×1