function ExecuteScript() {
var sources = Array.from(document.getElementsByClassName('gallery-favorite'), div => div.getAttribute('data-id'));
return sources;
}
It works in developer tools console in browser but not with Power Automate. How can I find what is wrong?
It just hangs on forever like it's actually working. Browser Edge.