I'm using this code to insert value to an input. The code works, the value is entered in the input and I see the value on the screen. However, when clicking on the submit button, the input value is empty, and the validation does not allow me to continue to the next page. I don't have validation control because I'm injecting the code into a page, so I need the page to consider the value inserted in the input with this code.
document.querySelector("#app > div > main > div > div > div > div.row > div.col-12.col-lg-6.vertical-center.py-0.animated.bounceIn.delay-500ms.col.border-left > div > div > div:nth-child(1) > div > input").value = "galo";