changing enterText to setText
Adding wait condition