Online Documents
English
English
  • First Launch Experience
  • Activate Software License
  • How to Train EMILY?
  • Simple Web Automation
  • Web Automation Tools
  • Web Automation Processor
  • User Fill
  • Workspace Script
  • File Exporter
  • File Enumerator
  • EXCEL Processor
  • EXCEL Analyzer
  • EXCEL Writer
  • EXCEL Filler
  • CSV Creator
  • PowerShell
  • PDF Analyzer
  • Mail Sender
  • Mail Reader
  • Exchange Mail Sender
  • Exchange Mail Reader
  • HTTP Analyzer
  • Command Line
  • DOCX Templater
  • SQL Executor
  • Desktop Automation (DA)
  • SFTP
  • JSON API Server
  • Chart
  • DOCX2HTML
  • Manage Folder
  • Google Drive
  • Google Sheets
  • Google OCR
  • Google NLU
  • Azure Form Recognizer
  • Anti-Captcha
  • ChatGPT
  • Gemini
  • Schedule Trigger
  • Mail Trigger
  • File Trigger
  • API Trigger
  • Protect Text
  • Flexibility & Security
  • Announcements
    • Version Release
    • Third Party Notice
Powered by GitBook
On this page

Web Automation Processor

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

PreviousWeb Automation ToolsNextUser Fill

Last updated 2 months ago

A WAP usually provides No-Code commands and Low-Code Editor

WAP provides commonly used synchronous functions under api:

  • api.files() – Returns a list of files in the working directory.

  • api.read(filename, encoding='utf8') – Reads the content of a file.

  • api.write(filename, text) – Writes text content to a file.

  • api.rename(oldname, newname) – Renames a file.

  • api.remove(filename) – Deletes a file.

Additionally, moment.js and lodash are built-in libraries and can be used directly.

// 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')
No-Code Commands
Low-Code Editor