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

Open Link

The Open Link block navigates the browser to a URL. Subsequent web interaction blocks (like Click Web Element, Save Web Element, etc) act on the page this block opens.

If no browser is running when this block executes, it launches one first using your current defaults in your TaskBot's Browser Launch Settings. You don't need a Launch Browser block before an Open Link block unless you want to override those existing launch settings.

How To Use It

Enter one address to navigate to. To open two or more URLs, put this block inside a Start Repeat and loop over a list of URLs in your table or sheet.

  • Type a URL directly, for example https://example.com.

  • Or insert a variable or table reference to pull the URL from your data.

  • Or point to a local file with a file:// address, for example file:///Users/<username>/reports/report.html. The path must exist on the machine running the Desktop Agent. On macOS, folders such as Desktop, Documents, and Downloads are protected by the system. A file:// address inside one of them fails with ERR_ACCESS_DENIED until the Desktop Agent is granted access under System Settings > Privacy & Security > Files and Folders.

Timeout

How long to wait for the page to load before logging a network error, in seconds. The default is 90 seconds.

Open in a new tab

Opens the URL in a new tab instead of reusing the current active tab.

  • Unchecked (default) navigates the active tab to the new URL.

  • Checked opens a new tab, brings it to the front, and makes it the active page for the blocks that follow.

Min sec & Max sec

A pause after the page loads, before the next block runs. The wait is randomized between the two values, and setting both to the same number makes it fixed. The Open Link block defaults to 3 seconds.

See the Delay block for more information on how these two fields behave, including decimals, dynamic references, and what happens when a field is left empty. See Delay Times between the Building Blocks for how block-level delays fit into a TaskBot run.

Things To Know

  • This block uses your TaskBot's default browser settings. When this block launches a browser, it uses your TaskBot's Browser Launch Settings plus anything a Launch Browser block or zw.browserContext.setDefaults() changed earlier in the run.

  • Opening a page doesn't automatically log you in. If the site needs a session, either use a sticky profile, which keeps cookies and login state on your machine between runs, or supply cookies up front; you rarely need both. Both can be configured in your Browser Launch Settings or a Launch Browser block.

  • Closing the last tab ends the browser. If a Switch or Close Tab block closes the last open tab, the next Open Link block launches a fresh browser from the current defaults.

  • Proxy failures can surface here. If you use a proxy and it stops responding, this is the block that reports it clearly, as ERR_PROXY_CONNECTION_FAILED or ERR_TUNNEL_CONNECTION_FAILED. Other blocks can fail less obviously, usually as a missing css selector, because they land on a browser error page instead. See Proxies.

Website Network Errors

When your TaskBot can't reach a website, it stops the run and records the network error code in your Run Reports.

The usual causes are that the website is down, the page is taking too long, your internet connection is slow, or your proxy settings are incorrectly configured.

There are over 200 network error codes, so we don't document each one here. If you see the same network error code repeatedly, searching for it is usually the fastest route. The cause is often specific to your VPN, antivirus, router, or proxy provider. The full error list is available in your browser at chrome://network-errors/.

Continuing After A Network Error

If you'd rather gracefully handle a failure than end the TaskBot run, you can wrap the Open Link block in a Try-Catch block sequence. The On Catch Error path then decides what happens next; for example, log the error, send a notification, try a different URL, or end the run deliberately with an Abort Run block.

circle-caret-right
discord

Looking for other popular TaskBot patterns, tips, and tricks? Join our active community of Automators on our Discord server!

Block Behavior

  • When no browser exists this block launches one from the current defaults, then navigates to the URL.

  • When a browser is already running this block navigates the active page to the URL. No launch settings are re-applied.

  • When Open in new tab is checked this block opens a new tab, navigates to it, and makes it the active page for subsequent blocks.

  • When the page loads too slowly or the network fails this block automatically retries a few times prior to failing with a timeout log entry.

Video Tutorial

Last updated