To best illustrate the issue I'm facing, a visual reference of what I am attempting to retrieve is necessary:
https://i.sstatic.net/yVsiJ.png
My current challenge lies in obtaining the source node of data, specifically using the path 'data.source.displayName' within selenium. Despite my efforts, I am unable to successfully extract this information. While I can access basic properties like 'textContent' from the first layer of the HTML element, calling id.getAttribute on an object consistently results in null values. Below is a snippet of example code demonstrating this dilemma:
var data = identity.getAttribute('__data__.source.displayName');
data.then(function(classes){
console.log(classes);
}); /*this will print out null*/
var data = identity.getAttribute('textContent');
data.then(function(classes){
console.log(classes);
}); /* this prints out "node_15 → node_20" and works correctly*/