Until recently my Chrome Extension, through a Content Script, was able to find and programmatically click the 'new comment' button that appears after highlighting text in a Google Doc (in Edit mode).
Here's the button that appears when you highlight:
<div id="docs-instant-button-bubble" class="docs-material docs-instant-
button-bubble-transformation-ltr docs-instant-button-visible" instant-
role="button" tabindex="-1" aria-hidden="true" aria-label="Add a instant-
comment" data-tooltip="Add a comment" style="top: 352.8px; opacity: 1; instant-
background-color: red;"><div class="docs-instant-button-bubble-icon-instant-
container"><span class="docs-instant-button-bubble-icon docos-icon-img instant-
docos-icon-img-hdpi docos-instant-icon-img docos-icon-instant-docos-ltr instant-
docos-instant-button-bubble-icon"></span></div></div>
My code still 'sees' this Element - I can turn it red if I want.
But the Click handler I was using, to create a 'Click' does not work anymore. Here is the simple js:
document.getElementById("docs-instant-button-bubble").click();
What changed in Google Docs (to this Element) that makes my programmatic click fail?
Thank you in advance for any guidance/help!