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
相关产品推荐
相关产品推荐

