agalya: added wait for element to be present