wix/Detox

WaitFor fails for web element

开放

#4,522 创建于 2024年7月4日

 (4 条评论) (1 个反应) (0 位负责人)JavaScript (1,942 个派生)batch import
hacktoberfestplatform: iosstatus: discussionstatus: triagetype: enhancement ⚡️user: looking for contributors

仓库指标

星标
 (10,558 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

What happened?

await waitFor(web.element(by.web.xpath("//a[@class='pcc-client-content-feed__panel-wrapper-title-link' and contains(text(), 'Following')]"))).toBeVisible().withTimeout(5000);

--> [object Object] is not a Detox matcher. More about Detox matchers here: https://wix.github.io/Detox/docs/api/matchers

What was the expected behaviour?

Waiter function should work and not through bug

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.20.1 React Native version: 0.72.0 Has Fabric (React Native's new rendering system) enabled: yes Node version: >=16 Device model: iPhone 15 iOS version: 17.2 macOS version: 14.4 Xcode version: 15.2 Test-runner (select one): jest

Detox logs

   [object Object] is not a Detox matcher. More about Detox matchers here: https://wix.github.io/Detox/docs/api/matchers

Device logs

paste your device.log here!

More data, please!

No response

贡献者指南