title: How to click on a radio button using Selenium
body: <p>I'm trying to click on a radio button in selenium java but it's not clicking.</p>
  <p>This is the inspect on the radio button:</p>
  <pre><code>&lt;input name=&quot;timeSyncType&quot; class=&quot;radio&quot; id=&quot;radioNTP&quot; type=&quot;radio&quot; ng-click=&quot;oSettingTimeInfo.szTimeMode='NTP'&quot; ng-checked=&quot;oSettingTimeInfo.szTimeMode=='NTP'&quot;&gt; 
  </code></pre>
  <p>I tried this</p>
  <pre><code>WebElement radio =  driver.FindElement(By.id(&quot;radioNTP&quot;));
  radio.click();
  </code></pre>
  <p>also I tried this</p>
  <pre><code>WebElement rbutton = driver.findElement(By.xpath(&quot;//input[@id='radioNTP']&quot;));
  rbutton.click();
  </code></pre>
  <p>but no luck, any help?</p>