Skip to main content

Browser.removeScreen() 方法

🌐 Browser.removeScreen() method

移除屏幕。

🌐 Removes a screen.

语法​

🌐 Signature

class Browser {
abstract removeScreen(screenId: string): Promise<void>;
}

参数​

🌐 Parameters

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

screenId

string

返回:

Promise<void>

附注​

🌐 Remarks

仅支持无头模式。如果指定了主屏幕ID,则会失败。

🌐 Only supported in headless mode. Fails if the primary screen id is specified.