medic / angular10-migration

0 stars 0 forks source link

Replace promise manager with async/await #105

Open craig-landry opened 3 years ago

craig-landry commented 3 years ago

Selenium has a promise manager intended to have asynchronous operations go into a queue to be executed in order and give the feeling of synchronous programming without having the have a huge promise chain.

Working with the promise manager and synchronous operations can be awkward and lead to intermittent failures.

Newer selenium versions work with JavaScripts async/await feature and no longer require the promise manager. In fact, the promise manager will be removed completely in later versions of selenium.

Using the promise manager and async/await is inadvisable. The recommendation is to use async/await and turn off the promise manager. This issue is to do that work.