This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Using webdriver.promise.all() in a then bock causes execution of next #2062
Closed
Description
Protractor 2.0.0
Selenium (2.45.0)
Mocha (2.2.4)
If I use
webdriver = require('selenium-webdriver');
---
}).then(function() {
return webdriver.promise.all([
...
]);
}).then() {
...
executing promise.all() causes that test to exit current it block and move to next it block. Kindly advise if this usage is supposed to work and if should then where should this issue belong to? - Protractor itself or Mocha.
My use case is to execute promises in parallel so that I can save few lines of code of then blocks. Is using webdriver.promise.all() not the right way to do this ?