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.
How To Use It

Link
This field accepts dynamic inputs, such as spintax, variable and table references, as well as code expressions. See Dynamic Inputs for more information.
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 examplefile:///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. Afile://address inside one of them fails withERR_ACCESS_DENIEDuntil 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.
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_FAILEDorERR_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.
You don't need a Try-Catch block sequence to survive a brief outage. The Open Link block already retries network errors a few times on its own prior to logging an error. Try-Catch is for deciding what happens if those built-in automatic retries have failed.

Try It Yourself The above is a real TaskBot that you can experiment with in your own ZeroWork account. Click this TaskBot Share Link to add it to your account and get started! https://creator.zerowork.io/get-taskbot/1253684709817015
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