wix/Detox

WaitFor fails for web element

Open

#4,522 opened on Jul 4, 2024

 (4 comments) (1 reaction) (0 assignees)JavaScript (1,942 forks)batch import
hacktoberfestplatform: iosstatus: discussionstatus: triagetype: enhancement ⚡️user: looking for contributors

Repository metrics

Stars
 (10,558 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide