Skip to main content

Close a tab or window in a browser session

Written by Wrk Product
Updated this week

Close a tab or window in a browser session. The tab or window will be closed and can no longer be used in subsequent Web Automation Wrk Actions. The browser will refocus the initial window.Inputs in this Wrk Action use wildcards: Question mark (`?`) matches any one character, asterisk (`*`) matches zero or more characters. To search for a wildcard value add a tilde (`~`) before the wildcard character

Application

  • Web Process Automation

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Browser session ID

The unique identifier of the browser instance. Can be retrieved from "Open a browser session" Wrk Action. Example: fb9bc380-146c-420e-9130-50ce93614e05

Text (Short)

Yes

Match method

The method to identify the tab or window to close. Page index of initial window is 0 and the first pop up will be 1. Example: Website Link

Text (Short)

Yes

Match value

The value used to match the tab or window to close. Wildcards enabled. Example: https://www.wrk.*

Text (Long)

Yes

Outputs (what you get)

Name

Description

Data Type

Required?

Example

Unsuccessful message

If unsuccessful, a message stating what went wrong

Text (Long)

No

Unsuccessful screenshot

File

No

Outcomes

Name

Description

Success

This status is selected if the job has successfully completed.

Unsuccessful

This status is selected if the job has completed unsuccessfully.

Requirements

  • N/A

Did this answer your question?