google-chromegoogle-chrome-extensiongoogle-chrome-devtoolsaccessibilitychrome-devtools-protocol

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?


Solution

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