UI Automation for CefSharp Wpf browser hosted in WPF usercontrol

Viewed 1836

We have a WPF application where we are using CefSharp browser. The application has some wpf windows within which we are embedding the CefSharp browser control. The problem we have run into is regarding automation. We have tried CUIT(Coded Ui Test) and Selenium already - none is able to identify the control inside the CefSharp browser. We are seeing that CUIT is identifying the CefSharp browser content as an image. Also we tried to expose the automationpeer from CefSharp from the usercontrol in which it is wrapped. However we found that, CefSharp does not expose any automationpeer for WPF - we got back null when tried to grab automationpeer from CefSharp browser control. My question is - is it possible to do automation for a CefSharp browser that is hosted inside a wpf control? If yes, then what should be the approach - any specific technology stack and/or any tweaks to the CefSharp browser control? We are using VS 2015 for the WPF application and CefSharp.Wpf 49.0.1

1 Answers
Related