sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
822 stars 105 forks source link

Issues with OnBlur #179

Open cmhampton1021 opened 5 years ago

cmhampton1021 commented 5 years ago

I'm running into an issue with some automated tests where the React validation never activates after changing the contents of a field. It appears that the blur event is not firing after leaving the field.

The steps I am taking are as follows:

  1. Get the text field by ID.
  2. Click into the field
  3. Clear the text
  4. Click the Save button to test the validation.

firstNameInput := page.FindByID("firstNameInput") firstNameInput.Click() firstNameInput.Clear() saveButton.Click()

What happens is that the validation never processes and the form is submitted with a blank value. I have tried executing some Javascript code that uses jQuery to call the onBlur method of the field before clicking Save, and while that is definitely executing, the validation still does not process.

Any thoughts on what might be the issue?

Thanks