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
Name | Description |
---|---|
Misc | |
Display Name | Provides 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 | |
Delay | Specifies 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 | |
Result | Outputs 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:
- Drag and drop the "Close Tab" activity onto the workflow.
- Optionally, configure the delay to wait before executing the "Close Tab" activity.
- 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.