[Autofill Assistant] Allow to clear RequiredFields
This CL allows to clear a field instead of filling it. It will behave the same way as filling a field in regards to the |forced| flag, i.e. if the field is already empty (and we don't force it) we don't do anything. The field is, in the end, checked for emptiness. Non empty fields with the |clear_value| flag will fail the action. The |clear_value| flag should only really be used for <input> fields. It can work with <select> as well (setting the value attribute) but this is not guaranteed to actually empty the field (if the default has a different value). The flag does not work in combination with |fallback_click_element| at all. Bug: b/160850266 Change-Id: Ib170ee0f3e6931ad5f09a1664548c492e260e52a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2289779Reviewed-by:Marian Fechete <marianfe@google.com> Reviewed-by:
Clemens Arbesser <arbesser@google.com> Commit-Queue: Sandro Maggi <sandromaggi@google.com> Cr-Commit-Position: refs/heads/master@{#787680}
Showing
Please register or sign in to comment