无法访问Chrome开发工具协议中的辅助功能域

rxztt3cl  于 12个月前  发布在  Go
关注(0)|答案(1)|浏览(223)

我试图访问开发工具协议的可访问性域,但没有成功。我得到了: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);        
        }
    );
});

是否有人尝试成功访问辅助功能域?

hiz5n14c

hiz5n14c1#

感谢wOxxOm的帮助,将Chrome从110升级到115似乎可以解决这个问题。

相关问题