我尝试访问开发工具协议的辅助功能域,但没有成功。 我越来越:
Unchecked runtime.lastError: {"code":-32601,"message":"'Accessibility.getFullAXTree' wasn't found"}
我可以访问其他实验性 API,例如
Emulation.setFocusEmulationEnabled
这是我的代码:
chrome.debugger.attach({tabId: customerTabId} , '1.3', () => {
chrome.debugger.sendCommand(
{tabId: customerTabId},
'Accessibility.getFullAXTree',
(result) => {
console.log(result);
}
);
});
有人尝试成功访问可访问域吗?
感谢 wOxxOm 的帮助,将 chrome 从 110 升级到 115 似乎解决了这个问题。