How to Get Active Element in cefSharp Chromium browser Using WPF

110 views
Skip to first unread message

Ajay Kumar

unread,
May 8, 2020, 9:16:39 AM5/8/20
to CefSharp
Hi, 
I'm new to chromium, I'm trying to get the id of the element which is clicked by mouse or in keyboard focus(i.e. active element). I'm Using chromium-browser in my WPF application.
I googled for it and some articles suggested using EvaluateJavaScriptAsync(). But it did not work for me (issue with this approach it's taking a long very long time to get results back, I also tried to run this function in a different thread but still no results). 

Is there any other way I can get this, (i want something similar to System.Windows.Control.WebBrowser.Document.activeElement). 


Thanks 
Ajay Kumar
Reply all
Reply to author
Forward
0 new messages