added wait method for browser