title: How to perform clicks in BrowserWindow of an Electron app?
body: <p>I am writing and Electron app. It has a main browser window. Then from there I open another <code>BrowserWindow</code>. Now I want to programmatically click on a button that is present on the child browser window. How can I achieve that ?</p>
  <p>Let's assume that my code in the render process of the main window is as follows :</p>
  <pre class="lang-js prettyprint-override"><code>const childWindow = new BrowserWindow({
          width: 800,
          height: 600,
      })
  childWindow.loadUrl('...')
  // wait for the window to settle
  setTimeout(()=&gt;{
      // the code to click the button
  }, 3000)
  
  
  </code></pre>