Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Usando Promise.all() en WebdriverIO

Tengo este problema cuando trato de ejecutar este bloque de código para cada una de las categorías de una matriz, que funciona cuando no necesito usar Promise.all() para manejar solo una categoría. Al ejecutar las pruebas, parece que falta algo porque aparece un error (ver más abajo).

 await Promise.all(categories.map(async category => { // Upload file await orderPage.uploadFile(`data/${fileName}`); // Open Category dropdown menu await orderPage.clickElement(await orderPage.categoryMenu); // Select category await orderPage.categorySearchBar.setValue(category.name); await browser.keys('Enter'); }));

método uploadFile() :

 async uploadFile(filePath) { const remoteFilePath = await browser.uploadFile(filePath); await browser.execute(() => { document.querySelector('input[type=file]').style.display = 'block'; }); await this.inputFile.setValue(remoteFilePath);

}

Este es el error que recibo: Mensaje de error

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!