How to Wait until one promises complete even if some rejected or still in progress?

Viewed 40

I am working with node.js application using puppeteer I have some list of XPATH that may be page included and I can't wait only for one of them because it may be not included in this page and I want to wait until only one of them to shows up

so I was wondering if it is possible to wait until only one of them resolved even if the other was rejected or even not complete.

please if you have an answer show some codes

1 Answers
Related