The problem is this: on the page https://www.instagram.com/accounts/login/ you need to use JS to fill in the form data and click on the "Login" button.
When the "value" attribute is set , the inputs seem to be filled in, but when you click on "Enter", the fields are reset to empty values. The same is observed if you fill in one of the fields and start typing in another. I would be grateful for any help on the topic.
Pure JS or JQuery - does not matter, if only the values are not reset.
PS: none of the ways of setting the value attribute known to me works:
document.getElementsByTagName('input')[0].setAttribute('value', 'bla-bla-bla')document.getElementsByTagName('input')[0].value = 'bla-bla-bla'$('input[name="username"]').val('bla-bla-bla')$('input[name="username"]').attr('value', 'bla-bla-bla')$('input[name="username"]').prop('value', 'bla-bla-bla')
There are suspicions that some event should be initialized, but which one could not be unzipped.
