Skip to navigation

closeSurface

Referenced In

Fields

FieldTypeDescriptionDefault
closeSurfaceone of:
- one of:
- string
- object(Process surface)
- object(Browser surface)
- object(App surface)
- array of one of: string, object(Process surface), object(Browser surface), object(App surface)
Required. Close one or more surfaces: background processes, browser windows/tabs or whole browser sessions, and native app surfaces. A browser reference with a tab selector closes that tab; with a window selector it closes the window and its tabs; with neither it closes the whole browser session. An app reference ({ “app”: … }) closes the app surface, terminating the app when Doc Detective launched it. Closing a surface that is not open is a no-op (PASS). Renames stopProcess.—

Examples

{
"closeSurface": "web"
}
{
"closeSurface": {
"process": "web"
}
}
{
"closeSurface": [
"web",
"api"
]
}
{
"closeSurface": {
"browser": "chrome",
"tab": "cart"
}
}
{
"closeSurface": {
"browser": "chrome",
"window": "admin"
}
}
{
"closeSurface": {
"browser": "chrome",
"tab": -1
}
}
{
"closeSurface": "chrome"
}
{
"closeSurface": {
"app": "charmap"
}
}
{
"closeSurface": {
"app": "notepad",
"window": -1
}
}
{
"closeSurface": {
"app": "TextEdit",
"window": {
"title": "Untitled 2"
}
}
}