I am implementing a form filling algorithm and encountered a problem when setting the inputs' values on certain websites. For example, on the Netflix payment form the values that are set dynamically overlap the inner label and all values suddenly disappear once an input is clicked.
Here is a snippet of the form filling code:
$(elem).val(data.firstName);
$(elem).blur();
I have tried to focus on the element before setting the value and played around with the inspect tool but all I discovered is that the value attribute will simply reset if set on Dev Tools. I may be wrong but could the input only save the value if typed exclusively on a keyboard?
EDIT
If you wish to reproduce the issue, simply go to the Netflix page and follow the steps to sign up for a paid membership until you reach the payment form by credit card. Go to the inspect tool and click on any on the input elements in the DOM (not on the page but in the dev tools panel). Once selected, type on the console $0.value = "test"; $0.blur() and press enter. This will reproduce the issue.
Note: $0 refers to the element you last clicked on in the Elements panel in DevTools. I also wish to clarify that this issue has happened on multiple websites and not only on Netflix.
