PATCH_012.js.bak 958 B

1234567891011121314151617181920212223242526272829
  1. function fundData() {
  2. //let textbox = Aliases.browser.page1011261948080.textnode.shadowroot.textnode7.shadowroot.textbox.Click();
  3. //let fundname = Aliases.browser.page1011261948080.textnode.shadowroot.textnode7.shadowroot.textbox.Keys("^a^c");
  4. let fund = Aliases.browser.page1011261948080.textnode.shadowroot.textnode7.shadowroot.textbox.Text;
  5. let url = "C:\\Users\\vendor_qafusi4\\Documents\\S-INVEST GUI\\S-Invest GUI\\Data Source\\Data Input\\02. Fund Data Management\\patch_012_fund_registration.txt";
  6. let template =
  7. 'fundData\n'+
  8. ''+fund+''
  9. ;
  10. if (aqFile.Create(url) == 0)
  11. {
  12. aqFile.WriteToTextFile(url, template, aqFile.ctUTF8);
  13. Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
  14. }
  15. else
  16. {
  17. aqFile.Delete(url);
  18. if (aqFile.Create(url) == 0)
  19. {
  20. aqFile.WriteToTextFile(url, template, aqFile.ctUTF8);
  21. Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
  22. }
  23. }
  24. }