Sabiha
3 years agoOccasional Contributor
Unable to clear a (material ui 5) datepicker field on Firefox - works fine on Edge and Chrome
We have several date fields in our system, implemented using Material UI 5.10.2 datepicker. Our system is tested on Edge, Chrome and Firefox.
We have some tests that clear the text component part of the datepicker field using SetText("").
This is working fine on Edge and Chrome however on Firefox it does not clear the field. I have also tried using Keys("") followed by a Keys("[Tab]"], which does not work either
Has anyone else come across this or anything similar to this?
Any ideas how I can clear the field in Firefox?
Thanks
Thanks Alex.
obj.Keys("^A"); didn't work for me on Firefox, it opened a new tab with showing add-ons
however, this did work.
obj.Click();
obj.Keys(" "[Home]![End]")
obj.Keys("[Del]");