I want to automate submissions of TikTok copyright infringement reports with JavaScript. I have tried this code so far:
document.getElementsByName('name')[0].value = 'Name Here'
When I attempt to submit the form, the site clears the textbox and asks me to fill out this required field. Any clue what I am doing wrong? I have also tried this:
document.getElementsByName('name')[0].dispatchEvent(new Event('change'))