Web Automation Processor
WAP (Web Automation Processor) is an automation module designed for different applications.



Last updated
WAP (Web Automation Processor) is an automation module designed for different applications.



Last updated
// lists all files in the workspace, one by one.
api.files().forEach((file) => console.log(file))
// use lodash.js _.filter() function to filter files ending with ".jpg"
const files = api.files()
console.log(_.filter(files, (file) => file.endsWith('jpg')))
// read "price.txt"
console.log(api.read('price.txt'))
// format date string and write it to a text file
api.write('time.txt', moment().format('HH:mm:ss'))
// rename "time.txt" to "currentTime.txt"
api.rename('time.txt', 'currentTime.txt')
// delete "price.txt"
api.remove('price.txt')