update wait_for_element to be browser method