Without the await, I am seeing it read the pricing and calories text before the selectOption function completes, thus they are not changed yet. I need to wait on the I.selectOption function to complete, then check the text. Using a hard wait after I.selectOption also did not read the text correctly and showed again as if no option was selected.
What do you get instead?
Console just stops at the await I.selectOption step and exits the whole scenario.
Provide console output if related. Use --verbose mode for more details.
What are you trying to achieve?
I need a Helper function to read some data:
Without the await, I am seeing it read the pricing and calories text before the selectOption function completes, thus they are not changed yet. I need to wait on the I.selectOption function to complete, then check the text. Using a hard wait after I.selectOption also did not read the text correctly and showed again as if no option was selected.
What do you get instead?
Console just stops at the await I.selectOption step and exits the whole scenario.
Details