While I was successful in using Chrome Remote Interface functions within my Selenium WebDriver session, such as Page.captureScreenshot and Emulation.clearDeviceMetricsOverride, I encountered an issue with invoking methods that operate on DOM elements. The problem lies in the nodeId parameter. For example, the function requires nodeId as one of its parameters. I am struggling to determine how to extract nodeId based on the IWebElement (or RemoteWebElement) from Selenium Webdriver.
Is there a way to locate nodeId using Selenium or JavaScript?
For more information on Chrome Remote Interface, visit