Replace .flex with calli.fillElement
Add implicit wait for all outstanding calli.resolve promises
Reformat var calli