DOM in C#

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.

DOM in C#

Postby Sybaris » Tue Dec 05, 2017 10:06 am

Hi

Until now I was using geckofx. But for several reasons, I try to migrate to a chromium web engine.
I have tried CefSharp, and it's seems to be a good alternative.
My problem is the use of the DOM in C#.
With geckofx, I was making xpath queries that returns some C# GeckoNodes.
I do not found the same thing in CefSharp.
I saw that we can query DOM using Javascript, but it will complicate the task for me : using this, I cannot retreive an entire list of nodes. Only simple values...
Is there is any other way to get the DOM in C# (even using debugging protocol) ?

Thanks for your help...
Sybaris
Sybaris
Newbie
 
Posts: 2
Joined: Tue Dec 05, 2017 8:05 am

Re: DOM in C#

Postby magreenblatt » Tue Dec 05, 2017 12:24 pm

You should ask in a CefSharp support channel.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: DOM in C#

Postby Sybaris » Tue Dec 05, 2017 3:31 pm

Thanks for you answer.

Being new, I am a little lost between all chromium's projects...
If I understand well, CefSharp embed CEF Framework to provide c# language support ?
And CefGlue is also for c#, and is another alternative ?

But does CEF Framework expose an API to navigate in the DOM ?
If yes, do you know other projects that embeb CEF Framework for C# and expose a DOM API ?

Thanks for advance.
Sybaris
Sybaris
Newbie
 
Posts: 2
Joined: Tue Dec 05, 2017 8:05 am

Re: DOM in C#

Postby magreenblatt » Tue Dec 05, 2017 3:40 pm

CEF has a DOM API in https://bitbucket.org/chromiumembedded/ ... ew-default but it is generally better to inject JavaScript as described at https://bitbucket.org/chromiumembedded/ ... gration.md. I don't know what is implemented/supported by CefSharp specifically.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests