title: How to choose a file in an already opened FileDialog
body: <p>I want to choose a file from an already opened <code>OpenFileDialog</code> which is shown by the browser.</p>
  
  <p>I want to use code similar to the following example:</p>
  
  <pre><code>OpenFileDialog dialog = new OpenFileDialog();
  dialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
  dialog.InitialDirectory = "C:\\";
  </code></pre>
  
  <p>The problem is, that I cant access <code>dialog</code>. I can't reference it.</p>
  
  <p><strong>Edit:</strong> 
  I use the selenium-webdriver for automated testing. But the fileDialog is presented by the website I want to test.</p>