Logo Text Blaze
  • Products
    • Text Blaze
      Snippets and templates
    • AI Blaze
      AI writing and editing
    • Data Blaze
      Tables and sheets
    Downloads
    • Add to Chrome
    • Windows app
    • MacOS app
  • By function
    • Support & operations
    • Sales
    • Healthcare
    • Education
    • Recruiting
    • Marketing
    Business
    • For teams
  • Resources
    • Documentation
    • Community forum
    • Gallery
    • Contact us
  • Pricing
Documentation
No search results
Text Blaze
Loading...
Data Blaze
Loading...
Community Forums
Loading...
Add to Chrome –  It's Free! Go to Dashboard ›
Docs > Commands
  • Guides
    • Quick Start
    • Sharing Snippet Folders
    • Best Practices for Shortcuts
    • Creating Snippets With AI
    • Dynamic Commands
    • Date and Time
    • Autopilot
    • Forms
    • Formulas
    • Rules & Validation
    • Tables in Snippets
    • Connect Other Apps
    • Tidying Whitespace
    • Lists
    • Read Data from Websites
    • Buttons and Interactive Interfaces
    • Teams and Organizations
  • Tutorial Videos
  • Gallery
  • Frequently Asked Questions
  • Formula Reference
  • Dynamic Commands
    • Using Dynamic Commands
    • {=} (Formula Command)
    • {button}
    • {click}
    • {clipboard}
    • {cursor}
    • {error}
    • {formdate}
    • {formmenu}
    • {formparagraph}
    • {formtext}
    • {formtoggle}
    • {if}
    • {import}
    • {key}
    • {link}
    • {note}
    • {repeat}
    • {run}
    • {site}
    • {snippet}
    • {time}
    • {user}
    • {wait}
  • Connected Snippets
    • Connected Snippets Overview
    • {image}
    • {urlload}
    • {urlsend}
    • {dbselect}
    • {dbinsert}
    • {dbupdate}
    • {dbdelete}
  • Command Packs
    • Capitalize
    • Gmail
    • LinkedIn
    • Randomize
Commands

{click}

Summary: Simulates a click on any element on any open webpage.
Sample Usage
...finish text.{key:tab} {click}
_

Quick Overview Video

Settings


Setting NameTypeDescription
selectorselectorCSS selector to click on a specific element in the page.
maxdelaytimeThe selected element is clicked as soon as it becomes clickable. If the selected element does not become clickable within 'maxdelay' time, the snippet stops and an error is shown.
frameself/topControls which frame to start matching the given selector from (defaults to 'self').
pagestringWhen page is specified, the {click} command will switch to a tab whose URL matches the given page URL.
selectyes/ifneededControls when to show the tab selector when page setting is specified. yes always shows it. ifneeded (default) shows it only when multiple tabs match the page pattern and the current page does not match.
General Command Settings
trimyes/no/left/rightIf yes whitespace is removed before and after the command. If left, only whitespace to the left is removed. If right, only whitespace to the right is removed.

The {click} command, an autopilot command, allows you to emulate a click on any element on any web page. This can be used to submit a form, focus another textbox or trigger other events in the page. You can use the {click} command in three approaches:

Click on the currently focused element

You can use the {click} command in conjunction with the {key} command, another autopilot command, to move the focus to another element in the page and then use the {click} command to click the element. Click here to learn more about moving the focus back and forth between different elements on a page.

For example: the snippet {key: tab}{key: tab}{key: tab}{click} will emulate the Tab key three times - changing the focused element on each step - and then emulate a click on the latest focused element.

Click on any element in the page

Use the "Select from website" button in the {click} command to select an element that you wish to click on. The Text Blaze snippet will click the selected element, which will then also become focused.

We recommend this approach for most users because it's very fast. It is useful to:

  • Jump directly to another textbox in the page
    Example: running the snippet Alpha{click: selector=selector}Beta will insert "Alpha" in the first textbox (where you started your snippet), then jump to the second textbox (selected by "selector") and then insert "Beta" in the second textbox
  • Click on consecutive checkboxes or buttons
    Example: When submitting a form, the snippet {click: selector=button1}{click: selector=checkbox1}{click: selector=submit_button} will click a button, then another checkbox, and then the submit button on the form.

The given snippets are examples. Please use the "Select from website" button in the {click} command to generate a selector for your specific website.

Text Blaze will wait up to one second for an interactive element that matches the specified selector to appear on the page. If you want to wait longer, you can specify the maxdelay attribute. For example, the following command {click: selector=selector; maxdelay=5s} will wait up to five seconds to match the given selector to an element in the page.

Switch to another tab and then click an element in it

You can also use {click} to switch to another open tab and click an element there. Your snippet will continue running in that open tab. This lets you automate actions across multiple tabs with a single snippet.

To enable the cross-tab capability, check the "Switch to this tab" checkbox when setting up the {click} command's selector, under the "Show advanced settings" option, as shown in this image:

Site Tab Strip

For example, the following command switches to a tab matching https://your-crm.com/* and clicks the Submit button:

{click: selector=.submit; page=https://your-crm.com/*; frame=top}

When page setting is specified, the default behavior of {click} is as follows:

  • If your current page matches the page pattern, the snippet will continue to run on the current page
  • If only one other tab matches the page pattern, the snippet will switch to that tab automatically, and continue to run there
  • If multiple tabs match the page pattern, you will see a tab selector dialog as shown in the image below:
Site Tab Strip

To always show the tab selector, set the select setting to 'yes' in your command, as shown in the example below:

{click: selector=.submit; page=https://your-crm.com/*; frame=top; select=yes}

To learn more about automating actions on a web page, see the autopilot guide.

About

Plans and Pricing
Sharing Snippets
Text Blaze for Business
Forms
Autopilot
Dynamic Commands
Command Packs
Text Blaze for Windows
Text Blaze for macOS

Support

Get Started with Text Blaze
Contact Us
Documentation
Community Forum
Blog
Gallery
Engineering Blog

Solution for

Business
Customer Support
Recruiters
Education
Healthcare
Sales
Property Managers
AI

Other

Terms of Service
Privacy Policy
HIPAA Compliance
Open Source Licenses
Affiliate
© Blaze Today Inc