title: Get location of element using selenium webdriver c#
body: <p>I cannot get the location of the element. This is what i have so far
  I have defined the element</p>
  
  <pre><code>[FindsBy(How = How.Id, Using = "column-a")] 
  private IWebElement _columnA;
  private string [] startLoc;
  private string [] endLoc;
  </code></pre>
  
  <p>Then within the method I have:</p>
  
  <pre><code>startLoc[0] = _columnA.Location.X.ToString() + " " + _columnA.Location.Y.ToString();
  </code></pre>
  
  <p>Upon runtime, I get an exception of type 'System.NullReferenceException' occurred in framework.dll but was not handled in user code</p>
  
  <p>Additional information: Object reference not set to an instance of an object.</p>