You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Chrome DevTools Protocol中无法调用Accessibility.getFullAXTree接口问题求助

Chrome DevTools Protocol中无法调用Accessibility.getFullAXTree接口问题求助

最近我尝试调用Chrome DevTools Protocol的Accessibility域接口,但一直没能成功,遇到了如下错误:

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);
    }
  );
});

有没有朋友成功调用过Accessibility域的接口?能不能分享下经验或者指出我哪里错了?

备注:内容来源于stack exchange,提问作者Ben Bracha

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 15:43:06