I have a simple oneline snippet to “click” on a «load file» button on a visible page to call a dialog-popup (to load an image, for example).
this.document.getElementsByName("image").click() // snippet code
While manual paste and run this line in console is successful (it opens the dialog), the above snippet can’t do that. Seems like Chrome doesn’t allow to open dialog not by user call. So, I set browser to allow all popups but there is no result.
Tested on different pages where file load button presents.
Thanks for any ideas.