title: Element after jquery.show and WebDriverException: unknown error: cannot focus element
body: <p>My <strong>javascript</strong> line:</p>
  
  <pre><code>$('#name').show();
  </code></pre>
  
  <p>My <strong>webdriver</strong> code line:</p>
  
  <pre><code>wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("name"))).sendKeys("Some Name");
  </code></pre>
  
  <p>When I run the test it throws the following exception:</p>
  
  <pre><code>WebDriverException: unknown error: cannot focus element
  </code></pre>
  
  <p>So, I have been searching for a solution. There are some issues reported in chromium google code site. There are a lot of suggestions about using <code>JavaScriptExecutor</code>. But it doesn't seem a better solution for me, because it could make a browser dependent code.</p>