Skip to main content

Close Tab

AutomatR.Web.CloseTab

The "Close Tab" activity in AutomatR's Web Activities category is designed to close a browser page or active tab. This activity proves useful when you need to perform clean-up tasks or navigate between different pages within a web automation workflow.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Close Tab" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.
Output
ResultOutputs the result of the "Close Tab" operation, indicating whether the tab was closed successfully or any encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Close Tab" activity onto the workflow.
  2. Optionally, configure the delay to wait before executing the "Close Tab" activity.
  3. Execute the workflow to close the active tab within the specified browser instance.

Example: Consider an example where the "Close Tab" activity is used to close the currently active tab within an open Chrome browser:

Close Tab:
Delay: 0
Result: isTabClosedSuccessfully

In this example, the activity closes the active tab without any delay, and the result of the operation (success or failure) is stored in the boolean variable "isTabClosedSuccessfully" for further handling in the workflow.