waitForVisible works fine, but raises this error 