欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples
欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples

Manifest - automation

Published on

An optional manifest key only publicly accessible on dev builds. Including this manifest key allows access to the chrome.automation API, exposing access to the automation (accessibility) tree for the browser, which can be used to programmatically interact with a page by examining names, roles, and states, listening for events, and performing actions on nodes. The key accepts an object with the following properties: desktop, interact, and matches(see the table below). If no matches are specified, automation permission will be granted on sites for which the extension has a host permission or activeTab permission.

PropertyTypeDescription
desktopbooleanUsed to gate access to getDesktop() and accessibility events related to the desktop.
interactbooleanReturns the list of hosts that this extension can request an automation tree from.
matchesarray of string URLsDetermines whether the extension is allowed interactive access (true) or read-only access (false) to the automation tree.
{
// ...
"automation": {
"desktop": true,
"interact": true,
"matches": [
"www.google.com"
]
}
// ...
}

Updated on Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.