added additional check in seleniums for datepicker