Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Browser Open URL
🔗 Browser

Open a URL in background Chrome (CDP)

Open URL is a Browser Mode command that uses CDP to navigate Chrome to a configured address. It supports the current or a new tab and variables in the URL; Chrome must be connected before running.

Prerequisites

  • Chrome is enabled and connected in Browser Mode (CDP).
  • The URL is valid and variables used in it have values before execution.
  • For dynamic pages, prepare Wait for element or Delay after navigation.

Supported modes

  • Browser ModeNavigates through CDP without controlling the system mouse or keyboard.

What it does

The Open URL command drives background Chrome (CDP mode) to a web address. Because it runs through CDP it does not take over the real mouse/keyboard — you can keep working. The URL can include variables (e.g. {link}).

When to use it

  • Start a web workflow by opening the target page.
  • Switch to a different URL mid-script.
  • Open many links in turn pulled from a variable/data store.

When not to use it

  • You need to open a desktop application or a browser that is not connected through CDP.
  • You need to assert that the page is ready in the same command; add an appropriate wait step.
  • The URL contains sensitive data without a plan to protect logs and configuration files.

Configuration steps

  1. Set the macro to Browser Mode (Chrome/CDP) and connect Chrome.
  2. Add the Browser › Open URL command.
  3. Enter the URL (variables allowed) and choose Current tab or New tab. Save.

Every option explained

URL

The address to open. Supports variables, e.g. https://site.com/{id}.

Open mode (current tab / new tab)

Current tab: navigate the active tab. New tab: open a new tab for this URL.

Expected result

Chrome navigates the selected tab to the URL after variable substitution; when New tab is selected, a new tab is created for the address.

Real example

Example: open a login page then wait

  1. Open URL https://facebook.com (current tab).
  2. Add a Delay of 2000ms so the page loads.
  3. Continue with Smart HTML commands to log in.

Limitations and failure cases

  • Opening a URL does not guarantee that dynamic content is ready; prefer Wait for element over an arbitrary delay when possible.
  • The command works only with an active Browser Mode/CDP connection.
  • Invalid URLs or variables can fail navigation or open the wrong page.

Tips & common mistakes

This command only runs in Browser Mode (CDP). In regular Desktop Mode it logs an error and does nothing.

Verification details

  • commands/cdp_browser.py
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.