ich möchte gerne diese timeoutfunktion einfügen, dass die input funktion nach 5,5sek startet
if(document.body.innerHTML.search(/(E|e)rror/) == -1)
{
if(document.body.innerHTML.search(/Submit/) == -1){
if(document.body.innerHTML.search(/XXXXX/) != -1) {
window.location = "XXXXX"
}
if(window.location.pathname == "XXXXX") {
if(document.body.innerHTML.search(/XXXXX/) != -1) {
window.location = "XXXXX"
}
function myFunction(){
doSomething();
setTimeout(function(){doSomethingElse();}, 5500);
}
inputs = document.getElementsByTagName("input")
for(i = 0; i < inputs.length; i++) {
if(inputs[i].value == "XXXXX") { inputs[i].click() }
}
}
}
else {
alert("XXXXX")
}
}
else
{
window.location = "XXXXX"
}