some test drivers (iOS, Android) did not like waitForConditionInBrowser, so use eval instead with polling