Gemphonefarm-book
  • Welcome
  • Set up & Kết nối Phone
  • Setup Giả Lập
  • Hướng dẫn sử dụng
    • Control Center
    • Stream Device
    • Inspector
    • Automation
      • General
        • Start
        • End
        • Resource Status
        • Delay
        • HTTP Request
        • Block Group
        • Note
      • UI Interaction
        • Press Back
        • Press Home
        • Press Menu
        • Touch
        • Swipe/Scroll
        • Screenshot
        • Type Text
        • Image Search
        • Swipe & Check Screen
        • Clear Text
        • Find Text
      • Device Management
        • Set Clipboard
        • Get Clipboard
        • Reconnect
        • Transfer File
        • Screen Action
        • Toggle Service
        • Change Device
        • Get Property Device
        • Check Network
        • Dump XML
        • Proxy
      • App Management
        • Is Open App
        • Start App
        • Stop App
        • Install App
        • Uninstall App
        • Is Installed App
        • Backup/Restore
        • Backup/Restore Device
        • Clear Data App
        • Close All App
      • System Commands
        • JavaScript code
        • Element exists
        • Press Key
        • ADB Command
      • Data
        • Read file text
        • Insert data
        • Delete data
        • Get log data
        • Slice variable
        • Increase variable
        • RegEx variable
        • Data mapping
        • Split Data
        • Sort data
        • Get Attribute
        • Random
        • IMAP (Read Mail)
        • Read Hotmail
        • Refresh Hotmail AccessToken
        • File Action
        • Generate 2FA
      • Online Services
        • Excel
        • Google Sheets
        • Gemini AI
        • Chat GPT
        • DeepSeek
        • BlackBox AI
      • Control Flow
        • Repeat Task
        • Conditions
        • While Loop
        • Loop Data
        • Loop Breakpoint
  • Setting
    • General
    • Automation
    • Phone
    • Editor
Powered by GitBook
On this page
  1. Hướng dẫn sử dụng
  2. Automation
  3. System Commands

Element exists

Kiểm tra một phần tử tồn tại trong trang hoạt động hay không

PreviousJavaScript codeNextPress Key

Last updated 5 months ago

Nếu phần tử tồn tại, quy trình sẽ thực thi với node được kết nối với đầu ra đầu tiên. Và nếu không, nó sẽ thực thi node được kết nối với đầu ra Nếu không.

  • Xpath: Bộ chọn phần tử, tham khảo cách dùng bộ chọn tại Bộ chọn phần tử

  • Output variable: biến gán

  • Timeout: Thời gian báo lỗi

  • Delay: Thời gian chờ sau khi hoàn thành