function uploadIndividual() { var issuerCode = Project.Variables.code.Value("issuerCode"); var registrarCode = Project.Variables.code.Value("codeRegister"); var clientCode = Project.Variables.code.Value("accountclientCodeUpload"); var name = Project.Variables.name.Value("investoreIndividualName1"); var sid = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell70.innerText; var template = '\n'+ '\n'+ ''+sid+'\n'+ ''+registrarCode+'\n'+ ''+issuerCode+'\n'+ ''+clientCode+'\n'+ 'SEC\n'+ 'y\n'+ '120\n'+ '\n'+ '\n'+ '2\n'+ '1234567890\n'+ ''+name+'\n'+ 'CREATE\n'+ 'I\n'+ '\n'+ 'n\n'+ 'n\n'+ 'n\n'+ '\n'+ '\n'; if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac") == 0) { aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac", template, aqFile.ctUTF8); Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis."); } else { aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac"); aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.zip"); if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac") == 0) { aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac", template, aqFile.ctUTF8); Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis."); } } }