🇻🇳
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. Switch

Switch to frame

Chuyển đổi sang một frame (iframe) cụ thể trên trang web để có thể tương tác với các phần tử bên trong frame đó. Phần này liên quan trực tiếp tới Switch to default.

PreviousSwitch to defaultNextSwitch to popup

Last updated 1 month ago

Bạn cần điền xpath của phần tử frame đó. VD: //iframe.

Ví dụ: Khi bạn tương tác với 1 mini game (Blum chẳng hạn) trên Telegram. Phần nội dung game nằm trong phần tử có xpath là //iframe (như hình). Để tương tác với các thành phần trong game, bạn cần thêm một bước là Switch to frame, để chuyển đổi ngữ cảnh từ trang web bên ngoài (Telegram) vào trang được nhúng bên trong (chính là game Blum, được khoanh đỏ trong hình). Hiểu đơn giản, một iframe là một thành phần được nhúng trong 1 trang web cha, để tương tác với nó phải dùng Switch to frame. Sau khi thực hiện tương tác với frame xong, để quay trở lại tương tác với Telegram (trang cha), bạn cần dùng Switch to default.