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

huangapple go评论94阅读模式
英文:

Cannot access Accessibility domain in chrome dev tools protocol

问题

I'm trying to access the Accessibility domain of the dev tools protocol without success.
I'm getting:
Unchecked runtime.lastError: {"code":-32601,"message":"'Accessibility.getFullAXTree' wasn't found"}

I'm able to access other experimental APIs, for example, Emulation.setFocusEmulationEnabled.

Here is my code:

chrome.debugger.attach({tabId: customerTabId} , '1.3', () => {
	chrome.debugger.sendCommand(
		{tabId: customerTabId},
		'Accessibility.getFullAXTree',						
		(result) => {
			console.log(result);		
		}
	);
});

Did anyone try to access the accessibility domain with success?

英文:

I'm trying to access the Accessibility domain of the dev tools protocol without success.
I'm getting:
Unchecked runtime.lastError: {"code":-32601,"message":"'Accessibility.getFullAXTree' wasn't found"}

I'm able to access other experimental APIs for example Emulation.setFocusEmulationEnabled

Here is my code:

chrome.debugger.attach({tabId: customerTabId} , '1.3', () => {
	chrome.debugger.sendCommand(
		{tabId: customerTabId},
		'Accessibility.getFullAXTree',						
		(result) => {
			console.log(result);		
		}
	);
});

Did anyone try to access the accessibility domain with success?

答案1

得分: 0

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

英文:

Thanks to wOxxOm help, upgrading chrome from 110 to 115 seems to solve this issue.

huangapple
  • 本文由 发表于 2023年8月10日 23:38:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76877292.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定