update

open suspend override fun update(nodeOverride: DOM.Node?): Element

Updates the element to retrieve more properties, such as enabling the children and parent attributes.

Also resolves the JavaScript object which is stored in remoteObject.

Usually, elements are obtained via Tab.querySelectorAll or Tab.findElementsByText, and those elements are already updated. The reason for a separate call instead of doing it at initialization is because retrieving many elements can be expensive. Therefore, it is not advised to call this method on a large number of elements at the same time.