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 Keyboard CDP Copy Text (Background)
📋 Keyboard

Grab text from a web page in background Chrome (CDP)

What it does

The CDP Copy Text command reads text from a web page in Browser Mode (CDP) and stores it in the virtual clipboard or a variable. The source can be: the current selection, a specific selector, or the focused input. It does not use the real Windows clipboard, so it does not disturb other work.

When to use it

  • Grab a web element content (price, code, status) to process.
  • Read data in the background without touching the real clipboard.
  • Save text into a variable for a later step.

Configuration steps

  1. In Browser Mode (CDP), add Keyboard › CDP Copy Text.
  2. Choose the source: selection / selector / focused input.
  3. For selector, enter the selector; set a result variable if needed. Save.

Every option explained

Source (selection / selector / focused input)

Where to read text: the selection, an element by selector, or the focused input.

Selector

The CSS selector of the element to read (when source = selector).

Result variable

The variable name to store the text. Leave empty to store only in the virtual clipboard.

Real example

Example: grab a product price

  1. CDP Copy Text: source = selector .price, variable = price.
  2. Use {price} in later steps.

Tips & common mistakes

Runs only in Browser Mode (CDP). This is the background version of Copy Text — use it to grab web data without taking the clipboard/mouse.
RunMacro robot

Ready to automate smarter?

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