Selenium: fix waitForApi

Change-Id: Id55564241ec4b5751946ce128ed9854026d0d028
Merge "Selenium: fix waitForApi"