title: Get element size using Selenium with C#
body: <p>I am trying to check if flash video is minimized or maximized. Tried to do something like this:</p>
  
  <pre><code>var video = Program.Driver.FindElement(By.XPath("//object[contains(@id, 'player_api')]"));
  
  int videoSize = video.Size.Width;
  
  if (videoSize &gt; 1024)
  {
       //Do something...
  }
  </code></pre>
  
  <p>But I am getting fixed size of HTML element. Any suggestion?</p>