Close Tab

Closes the browser's current tab, or the one with a matching title or address; a tab the session did not open only when allowed.

Behaviour

Risk: High · Idempotent: No · Safe to retry: No · Recovery: Not replayed after a crash

Package UI Automation activities VeloPhex.UIAutomation.Activities 0.7.1-rc.12 · Supported (Core profile) · type id velophex.ui.closeTab

Windows · Needs an interactive desktop session

Properties#

Input#

Title#

Title · String · Optional · Default: Not specified in package metadata

Wildcard pattern (*, ?) or substring of the title of the tab to close. With URL pattern also empty, the current tab is closed.

URL pattern#

UrlPattern · String · Optional · Default: Not specified in package metadata

Wildcard pattern (*, ?) the address of the tab to close must satisfy. With Title also empty, the current tab is closed.

Allow closing other tabs#

AllowClosingOtherTabs · Boolean · Optional · Default: Not specified in package metadata

In a browser VeloPhex did not start (your own, through the extension), also close a tab this session did not open. Off by default. The last tab of such a browser is never closed.

Session#

Session · String · Optional · Default: Not specified in package metadata

The session id from a Use Application/Browser scope. Empty uses the enclosing scope's session, or outside a scope the most recent matching session.

Timeout (seconds)#

TimeoutSeconds · Int32 · Optional · Default: Not specified in package metadata

How long to keep looking for the element or window. Empty or not positive means the same as the enclosing Use Application/Browser scope, or outside a scope the project default (30 seconds).

Highlight before action#

HighlightBeforeAction · Boolean · Optional · Default: Not specified in package metadata

Draw the highlight around the element before acting on it.

Rules#

  • Must be inside Use Application/Browser.

Retry and risk#

This activity is not marked safe to retry: if it fails partway, check whether its work already happened before running it again. If a run is interrupted and the outcome of a step is unknown, the step is never retried automatically (what to do). How activities declare this: characteristics, retries and risk.

Every activity also has the engine's common properties: Timeout and Continue On Error.

Generated from VeloPhex.UIAutomation.Activities 0.7.1-rc.12. Category: UI Automation › Application & Browser. Keywords: ui, automation, element, close, tab, browser, page.

Properties

Input

Rules

Retry and risk

Related activities