🇻🇳
GPM Automate VI
  • NO-CODE AUTOMATION
    • Một số biến mặc định
    • Các block
      • Normal block
      • For
      • While
      • If
      • Else if
      • Else
    • Variables
      • Set variable
      • Increase variable
      • Decrease variable
      • Count
    • Workflow
      • Exit loop
      • Next loop
      • Delay
    • Text & number
      • Random text
      • Split text
      • Read json
      • Random number
      • Math execute
      • 2FA code
  • File & Folder
    • File exists
    • Copy file
    • Move/rename file
    • Delete file
    • File read all text
    • File read all lines
    • File write all text
    • File append line
    • Read excel file
    • Write excel file
    • Append excel file
    • Folder exists
    • Create folder
    • Move / rename folder
    • Delete folder
    • Folder get file list
  • Clipboard
    • Get clipboard text
    • Set clipboard text
  • HTTP
    • HTTP Request
    • HTTP Download
  • Image Search
    • Wait to image
    • Image exists
    • Image search
    • Ví dụ kết hợp
  • AI
    • ChatGPT
  • Mail
    • Read mail code
    • Read outlook (Oauth2)
  • Navigation
    • New tab
    • Active tab
    • Close tab
    • Go to URL
    • Back URL
    • Reload
    • Get URL
    • Wait URL Changed
  • Element
    • Wait element
    • Get element attribute
    • Get element text
    • Count element
  • Mouse
    • Mouse click
    • Mouse try to click
    • Mouse move
    • Mouse press and hold
    • Mouse release
    • Mouse scroll
  • Keyboard
    • Key press
    • File upload
    • Select dropdown
  • Scroll
    • Random scroll
    • Scroll to top
    • Scroll to bottom
    • Scroll to element
  • Switch
    • Switch to default
    • Switch to frame
    • Switch to popup
  • Cookie
    • Import cookie
    • Export cookie
  • Alert
    • Accept alert
    • Cancel alert
  • Javascript
    • Execute JS code
    • Get extension id
  • References
    • Call function
  • Google service
    • Read google sheet
    • Write google sheet
Powered by GitBook
On this page
  1. Mail

Read mail code

Đọc code OTP gửi mail. Điều kiện là mail đó chưa được đọc.

PreviousMailNextRead outlook (Oauth2)

Last updated 1 month ago

Chú ý: Tài khoản mail cần phải bật trước giao thức IMAP. Riêng với Gmail, cần tạo mật khẩu ứng dụng Gmail. Hướng dẫn cách tạo:

Giải thích các thông số trong action Read mail code

  1. Email: Điền địa chỉ email cần đọc code

  2. Password: Điền mật khẩu của email

  3. Mail server: Máy chủ IMAP của mail. VD: Gmail: imap.gmail.com Outlook: outlook.office365.com

  4. Email sent to contains: Địa chỉ email gửi đến có chứa cụm từ đó

  5. Code type: gồm 2 loại là number (kiểu số) và text (kiểu chữ) Kiểu number: Code Length: Độ dài của otp cần đọc (ví dụ 475997 -> Code length là 6) Kiểu text: Code element xpath: Xpath của phần tử chứa mã OTP cần lấy Code element attribute: Điền text (nếu mã OTP cần lấy là text của 1 phần tử), hoặc điền tên thuộc tính nếu mã OTP cần lấy là giá trị của thuộc tính của phần tử đó. Ví dụ: Trong nội dung của email chứa code cần đọc, đoạn otp có xpath như sau: Nếu xpath là <h1>ABCDEF</h1> -> Tức là giá trị của mã OTP là text của phần tử có xpath là //h1 -> Điền Code element xpath là: //h1 và Code element attribute điền là: text Nếu xpath là <h1 @code="ABCDEF"></h1> -> Tức là giá trị của mã OTP cần lấy là giá trị của thuộc tính @code trong phần tử có xpath //h1 -> Điền mục Code element xpath là: //h1 và Code element attribute điền là: code Tất nhiên ở đây chỉ là ví dụ. Trên thực tế xpath có thể không đơn giản là //h1, có thể phức tạp hơn. Bạn cần hiểu kỹ phần cơ bản về cách lấy xpath của 1 thành phần trên trang web.

https://www.youtube.com/watch?v=XqX0cXcp6DI