Suppose we're on a webpage that has a textbox for input with the CSS path input[type = 'input']
.
I'm trying to write a script that runs on Chrome+Tampermonkey that will enter a text in this textbox and then press on the 'apply' button.
For the 'apply' button something like this will work:
function To3(){
setTimeout(function() {
'use strict';
$( "button[label='apply']" ).click()
To1();
}, 2000);
}
How can I write a script that will enter a text in the above textbox?