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

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
- In Browser Mode (CDP), add Keyboard › CDP Copy Text.
- Choose the source: selection / selector / focused input.
- For selector, enter the selector; set a result variable if needed. Save.
Every option explained
Real example
Example: grab a product price
- CDP Copy Text: source = selector
.price, variable =price. - 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