Added the #wait_for_ajax method to the PageFactory.