extended wait condition in selenium test and added polling every 1 sec.