Page 1 of 1

Does CEF3 provide a dom function for getting NodeId?

PostPosted: Sat May 15, 2021 8:51 am
by coater
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.

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

PostPosted: Sun May 30, 2021 7:45 am
by rado
How about executing javascript function directly on element? https://developer.mozilla.org/en-US/doc ... llIntoView

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

PostPosted: Tue Jun 01, 2021 4:56 am
by coater
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).