Added a wait for element method.