Process events after javascript evaluation to ensure requests are initiated prior to subsequent calls to wait_for_page_loaded.