refactor to centralize DOM waiting
use webdriver async script