Trying to put a new value in a form by implementing this script.
document.querySelector('src').value = 'val';
It changes the text in text field but when I click enter after, this script returned the previous value. It does not change a new value. When I do the same manually the value is changing.