title: Why can't I use click() with my web telegram Chrome extension?
body: <p>I'm trying to create a simple Chrome extension that will work with <a href="https://web.telegram.org" rel="nofollow noreferrer">web telegram</a> using JavaScript. </p>
  
  <p>The problem is in using the <code>click()</code> function (also I tried to use <code>submit()</code> to the form but had the same result). I cannot click any buttons there and can`t understand why.</p>
  
  <p>For example, I want to choose a chat, so use this code. I use <code>onmouseover</code> event just for easy testing click(). And I also tried to use the trigger function (jQuery) and had the same result - nothing happened.</p>
  
  <pre class="lang-js prettyprint-override"><code>window.onload = function() {
    document.querySelector('.im_panel_peer_photo').onmouseover = handler;
    function handler(e) {
      let contactLis = document.querySelectorAll('.im_dialog_wrap')
      console.log(contactLis[3]) // got correct obj
      contactLis[3].click()
    };
  };
  </code></pre>
  
  <p>I also noticed in the console some messages like "API call account.updateStatus" after I choose one of the contacts. So maybe I need to use requests or something. </p>
  
  <p>By the way, I tried to use the same code on another website and click function works perfectly. </p>
  
  <p>UPD I found out that web telegram is written using Angular. That's why it is difficult to make such interactions.</p>