Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Switch to popup

Switch to popup is an action that instructs the script to transfer control from the current browser window to a newly opened child window (Popup Window).

🎥 Watch the tutorial video: Here.

The difference between Iframe and Popup:

  • Iframe: Is a "frame" embedded within the same web page tab.

  • Popup: Is a completely new window detached from the old tab, operating independently (with its own title bar and maximize/minimize/close buttons).

Configuration parameters:

  • Popup Title: The title of the popup window you want to switch to. The system applies a relative search mechanism (as long as the popup title contains the phrase you enter, the system will automatically recognize and jump in).

Practical example: Handling the Google login window after clicking "Continue with Google"

Continue the processing flow on the Pinterest page from the previous step. After you switch to Iframe and click the Continue with Google button, a small independent window (Popup) will pop up off-screen to ask you to enter your Gmail and Google Password.

At this point, the original Pinterest browser will be dimmed, and all subsequent actions must be performed in this new window. You configure as follows:

  • Step 1 (Activate Popup opening): Use the click command on the Continue with Google button (as done in the Iframe lesson).

  • Step 2 (Wait for Popup to appear - If needed): You can use the Wait popup command or a short Delay of about 1-2 seconds to allow the window to load.

  • Step 3 (Check if Popup exists): You can use the Has popup command. If the popup exists, the result returned is True.

  • Step 3 (Switch to Popup): Drag the Switch to popup action into the flow.

    • Popup Title: Enter the text Google Accounts (Since the full title of this window is often very long like "Sign in - Google Accounts", you only need to enter this distinctive phrase for the system to match).

  • Step 4 (Data entry interaction): After this command, control is fully in the new window. You proceed to use Key press commands to enter the account, password, and click Next as usual.

💡 Tip to return: After you finish logging in on the Popup window, the Google system will automatically check and close this window. To continue controlling the original Pinterest page, you just need to use the Active tab command or return to the main tab to continue running the data scraping actions behind.

Last updated

Was this helpful?