Add wait for ajax to complete to css_click method