Please post the code used to get the element using Selenium, as well as the relevant HTML code for the element you are targeting. Otherwise we can't help you.
– Greg BurghardtAug 26 '19 at 13:43
One solution could be to manually emulate 'readonly' behaviour using Event.preventDefault() or another strategy (like placing a transparent element above the input to prevent user interaction and avoiding keyboard focus using 'tabindex').
– Ernesto StifanoAug 26 '19 at 13:52