lslechta
7 years agoOccasional Contributor
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, the birthdate disappears.
Has anyone seen this issue happen before? We use Winforms.
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.