Forum Discussion

lslechta's avatar
lslechta
Occasional Contributor
6 years ago
Solved

Date field is getting wiped out when running keyword test

My date fields are getting wiped out after other fields get populated on keyword test runs. If you look at my attachments it fills the birthdate in but then once it fills in a SSN field with text, t...
  • tristaanogre's avatar
    6 years ago

    If you're using "SetText" to enter the dates, try "Keys" instead.  The reason being is that most likely there's an "OnExit" event on the component.  Sometimes SetText will trigger this but generally I've seen this problem with SetText.  Keys actually puts the cursor in the edit field and clicking or entering somewhere else on the screen will actually trigger that event.