How to enable accessibility / isimpledom in chrome browser without installing firefox?

73 views
Skip to first unread message

Mallesh Silveru

unread,
Sep 26, 2019, 7:20:02 AM9/26/19
to Chromium Extensions
I am trying to access of Google Chrome's web-page to read it and perform some actions for that I have to enable accessibility for chrome below is my sample code but it is not working for chrome.

For FireFox we have "ISimpleDOMNode" interface but  what is the interface for Chrome browser ? that should work same as "ISimpleDOMNode" .
here is my sample code:

IAccessible *pCAcc;

IServiceProvider *pServProv = NULL;
pCAcc->QueryInterface(IID_IServiceProvider, (void**)&pServProv);
ISimpleDOMNode *pNode = NULL;

if (pServProv)
{
    const GUID refguid = {0x0c539790, 0x12e4, 0x11cf, 0xb6, 0x61,
                            0x00, 0xaa, 0x00, 0x4c, 0xd6, 0xd8};

HRESULT hresult = pServProv->QueryService(refguid, IID_ISimpleDOMNode, 
                                           (void**)&pNode);
//Error : hresult = E_FAIL
    if (SUCCEEDED(hresult) && pNode != NULL)
    {
    //some code
    }
}

This QueryService call is failing for chrome browser. BUT but I if install "FireFoxbrowser " in my system this QueryService is working for chrome and firefox perfectly. 
MY Question is :Is there a way to get it to work "chrome browser" without having firefox installed in my computer?

I observed "AccessibleMarshal.dll"  gets installed with firefox browser .
Reply all
Reply to author
Forward
0 new messages