title: TestCafe: Changing download location
body: <p>I am trying to change the download location and I found these codes doing research (sorry I forgot where I got these)</p>
  <pre><code>const browserConnection = t.testRun.browserConnection;
      const client = browserConnection.provider.plugin.openedBrowsers[browserConnection.id].client;
      const { Network, Page } = client;
      const downloadDirectory = '../my_downloads');
  
      await Promise.all([
        Network.enable(),
        Page.enable()
      ]);
  
      Network.requestWillBeSent((param) =&gt; {
        // console.log(&quot;Network.requestWillBeSent: &quot; + JSON.stringify(param));
      });
  
      Network.responseReceived((param) =&gt; {
        // console.log(&quot;Network.responseReceived: &quot; + JSON.stringify(param));
      });
  
      await Page.setDownloadBehavior({
        behavior: 'allow',
        downloadPath: downloadDirectory
      });
  </code></pre>
  <p>It was working perfectly fine using version 10.9.2 and this version was installed globally. I updated my TestCafe to 1.10.1 locally installed and now got this error:</p>
  <p>TypeError: Cannot destructure property 'Network' of 'client' as it is undefined.</p>
  <p>Any inputs are well appreciated. And looking forward to it :)</p>