How To Use Inject JS Script Activity

I have an example:
1-) attach the browser where the script is going to run

2-)use activity Inject Js Script and write the JS code within quotes:
“function(e){
document.querySelectorAll(‘input’)[0].value = ‘Weather medellin’;
document.querySelector(‘button[aria-label='Buscar con Google']’).click();
return ‘Script Exitoso’
}”

1 Like