Found when working on bug 19185. We can be stuck forever in while ( not $visible ) {
Created attachment 120274 [details] [review] Bug 28249: Prevent Selenium->wait_for_element_visible to fall in an infinite loop Stop if max_retries is reached
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.06
Pushed to 20.05.x for 20.05.12
Backported: Pushed to 19.11.x branch for 19.11.18