I'm currently developing a recording tool using JavaScript that is comparable to Selenium. When it comes to Playback, I require the XPath position and its attributes (shown in the screenshot below from Selenium).
Can anyone provide guidance on how to locate the position and attributes in JavaScript?