title: Selenium WebDriver select a radio button
body: <p>I need to select the first radio button on the page and because I navigated to this page via click a link so I did a <code>WebDriverWait</code>. Please see attached picture showing the two radio buttons and code below that execute a wait. </p>
  
  <p><a href="http://i.stack.imgur.com/YRw3J.png" rel="nofollow">HTML code</a></p>
  
  <pre><code>WebDriverWait wait = new WebDriverWait(driver, 30);
  wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input[value='1']"))).click();
  </code></pre>
  
  <p>However I can't click on the first radio button, it will throw this error:</p>
  
  <blockquote>
    <p>time out after 30 seconds waiting for visibility of element located by.</p>
  </blockquote>