Thursday, July 9, 2020
  • Index
  •  » Automator
  •  » jsScript =+ "document.form[0].submit();"; not working

#1 2020-04-19 10:02:29 pm

welland
Member
Registered: 2020-04-19
Posts: 1

jsScript =+ "document.form[0].submit();"; not working

code here:

var safari = application("Safari");
    safari.includeStandardAdditions = ture;
   
    var jsScript = "";

         jsScript += "document.getElementsByName('search_query')[0].value ='Aapple';"; 

        jsScript =+ "document.form[0].submit();";


safari.doJavaScript(jsScript,{ in:safari.windows[0].currentTab});



==================================
step 1 on automator done: open the www.youtube.com (this step work)
just add a javascript to the automator above, but do not run the submit function.

do any one know how to fit it ?

Last edited by welland (2020-04-19 10:03:16 pm)

Offline

 
  • Index
  •  » Automator
  •  » jsScript =+ "document.form[0].submit();"; not working

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)