title: How to focus on a element the right way?
body: <p>Im doing webtest using selenium Webdriver in C#. But I'm having a problem where when the browser window isn't in full size a popup will open half way outside the visible area.</p>
  
  <p>The problem is that when i fire a .Click(); it doesn't do anything because the link i attempt to click is outside of the viewed area.</p>
  
  <p>So how do i focus on the link to get click to work? Im currently using the following workaround but i don't think that's a nice way.</p>
  
  <pre><code>        _blogPostPage.FindElement(By.XPath(_popupLogin)).SendKeys("");
          _blogPostPage.FindElement(By.XPath(_popupLogin)).Click();
  </code></pre>
  
  <p>The sendkeys with space focuses on the link and makes Click work everytime, but isn't there a right way to do it?</p>