Accessing full path of object mentioned in Chrome console

I am using Chrome’s DevTools JS console to debug a custom function that executes when a button is clicked. When I click on the button, I get the following message in my console:

[Violation] 'click' handler took XXXms

Is there a way I can access the full path of this (button) object that I am clicking through the console message I am getting? I assume it will be something along the lines of App.controller.XXX.

document.elementFromPoint.click not work chrome console

How can i simulate click to make move with mouse in website
https://www.playok.com/p/?g=sc+

document.elementFromPoint(x,y).click();

It only works on some elements, but not in game board

Chrome extension: download text file in the latest version of Chrome

I’m a newbie of Chrome extension development. I’m working on a project which needs to generate a text file for user to download. With the help of experts in the Internet, I’m using a function like this:

function saveText(filename, text) {
    var tempElem = document.createElement('a');
    tempElem.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
    tempElem.setAttribute('download', filename);
    tempElem.click();
}

This function works perfect before. But when the Chrome was updated today, it no longer works – no prompt in the background console, the scripts work fine before and after this function. I’ve tried all the method, but cannot find why.

Any suggestions or hints will be appreciated. Thanks a lot!

JC