51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

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

英文:

Cannot access Accessibility domain in chrome dev tools protocol

问题 {#heading}

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 {#1}

得分: 0

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

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


赞(0)
未经允许不得转载:工具盒子 » 无法在Chrome开发工具协议中访问辅助功能领域。