add wait for visible to avoid failing in detect element