Problem with accessibility (MSAA or UIA)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Problem with accessibility (MSAA or UIA)

Postby LorenLiu » Thu Mar 05, 2020 8:55 am

I was trying to get the web element via MSAA (Microsoft active accessibility) or UIA (UI Automation), I already switched on web accessibility and native accessibility, however, it did not work on some machine :( . I guess there may be some other switches I did not turned on. Can anyone please provide some help? Many thanks.
LorenLiu
Newbie
 
Posts: 4
Joined: Thu Mar 05, 2020 8:43 am

Re: Problem with accessibility (MSAA or UIA)

Postby magreenblatt » Thu Mar 05, 2020 11:09 am

What OS and CEF version? What have you tried? Does it work on some machines but not others?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Problem with accessibility (MSAA or UIA)

Postby LorenLiu » Fri Mar 06, 2020 4:14 am

My OS version is Win10 Enterprise x64 17134, and CEF version is 3.2357.1291. I tried to use the inspect.exe to access the web elements, it didn't work on my machine, but worked on some other machines.
LorenLiu
Newbie
 
Posts: 4
Joined: Thu Mar 05, 2020 8:43 am

Re: Problem with accessibility (MSAA or UIA)

Postby amaitland » Fri Mar 06, 2020 4:43 am

Try a supported version see https://bitbucket.org/chromiumembedded/ ... -supported

Version you are using is over 4 years old.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Problem with accessibility (MSAA or UIA)

Postby LorenLiu » Sat Mar 07, 2020 2:33 am

Thanks, but in my case, is it possible to achieve the goal if we still use the specific old version CEF?
LorenLiu
Newbie
 
Posts: 4
Joined: Thu Mar 05, 2020 8:43 am

Re: Problem with accessibility (MSAA or UIA)

Postby amaitland » Sat Mar 07, 2020 3:45 am

You can test with a newer version by downloading the Sample Application from http://opensource.spotify.com/cefbuilds/index.html
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Problem with accessibility (MSAA or UIA)

Postby LorenLiu » Sun Mar 08, 2020 10:49 am

Thank you, I can have a try with the newer version, however some software can access web content in the same environment while Inspect.exe cannot for the older version, and with that software opened, Inspect.exe then can access the web content too. It looks like something is turned on. Do you have any idea how did it happen?
LorenLiu
Newbie
 
Posts: 4
Joined: Thu Mar 05, 2020 8:43 am

Re: Problem with accessibility (MSAA or UIA)

Postby magreenblatt » Sun Mar 08, 2020 11:42 am

magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Problem with accessibility (MSAA or UIA)

Postby ndesktop » Mon Mar 09, 2020 1:30 am

"did not work on some machine" is too obscure.
If AccessibleObjectFromWindow works with CEF main window and gets you a valid IAccessible object, and AccessibleChildren works as well, then "it works".
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Problem with accessibility (MSAA or UIA)

Postby sinall » Fri Jul 31, 2020 11:17 pm

Have you addressed the problem?

I'm trying to automate CefBrowserWindow with UIA. The target is third-party application. I do not know which version of CEF it uses. But I can see `Chrome Legacy Window` in Spy++.
What I want is:
1. Refresh the page
2. Get content of the page OR read the element tree
On Windows10 the Inspect.exe can see the full element tree, and I'm able to trigger refresh link and get the element texts programmatically,
But on Windows7 there is nothing under the `Chrome_RanderWIdgetHostHWND` element. Furthermore, there is a error `ObjectModel.UnderlyingObjectModel: [Error : calling getter for this property : hr=0xFFFFFF80070057 - argument error.]
sinall
Newbie
 
Posts: 3
Joined: Fri Jul 31, 2020 11:05 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 66 guests