title: Maximise Remote IE Browser
body: <p>I have been running tests on a remote XP client for some time now. My tests are written in C# using Selenium's WebDriver (Version 2.20.0) and the IE Driver (Version 2.20.1.0) with these tests being remotely run on a XP Client managed by Microsoft's Lab Management.</p>
  
  <p>My issue is that upon creating an IE Browser I am unable to maximise it on the Client through Selenium calls. Instead I am trying manually with the following:</p>
  
  <pre><code>_driver.Manage().Window.Size = new Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height);
  </code></pre>
  
  <p>Along with <em>WorkingArea</em> I have also tried <em>Bounds</em>, but to no avail as both increase the window size but do not position it to the center correctly. I assume this is because a VM has no monitor and thus no way of knowing the actual resolution? I want to just call something that will 'maximise' the window to the full screen without specifying the size. </p>