Does CEF3 provide a dom function for getting NodeId?

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.

Does CEF3 provide a dom function for getting NodeId?

Postby coater » Sat May 15, 2021 8:51 am

Does CEF3 provide a dom function for getting NodeId(not the ID attribute) ? So I can use DOM.scrollIntoView as cef doesn't provide CefDOMNode.scrollIntoView.

Code: Select all
NodeId
Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
DOM.NodeId #
Unique DOM node identifier.
Type: integer

DOM.BackendNodeId #
Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.
Type: integer


I can't find it in the CefDOMDocument/CefDOMNode.
coater
Newbie
 
Posts: 6
Joined: Fri May 07, 2021 3:04 am

Re: Does CEF3 provide a dom function for getting NodeId?

Postby rado » Sun May 30, 2021 7:45 am

How about executing javascript function directly on element? https://developer.mozilla.org/en-US/doc ... llIntoView
rado
Expert
 
Posts: 145
Joined: Wed Oct 05, 2011 3:32 am

Re: Does CEF3 provide a dom function for getting NodeId?

Postby coater » Tue Jun 01, 2021 4:56 am

rado wrote:How about executing javascript function directly on element? https://developer.mozilla.org/en-US/doc ... llIntoView

JS is very easy, but this will be capture by website sometimes, and I must use cef3 to operate node that could not operated by JS(such as type or something especial).
coater
Newbie
 
Posts: 6
Joined: Fri May 07, 2021 3:04 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 28 guests