Wait until an element disappears
Automation taskMediumAsked in: Infosys
"How do you wait for a loading spinner to go away before you click?" Wait for the spinner to become invisible, then act. The same pattern works for short messages (toasts) that appear and fade out. Here you check that an element is visible at first, wait for it to disappear (it takes 5 seconds) and print the result.