I wish to be able to identify all input fields so that i can store them and run a for loop which will input text into the input fields from an array and submit the form for a response.
var inputs = document.forms["form_name"].getElementsByTagName("input");
var text = ["brown", "white", "blue", "green"]
for (var i = 0; i < inputs.length; i++) {
for (word of text){
document.getElementById(inputs[i]).textContent(word)
}
}