title: How to select and click on a radio button in selenium web driver with java
body: <p>I have written a simple script of selenium web driver in java to select and click on a Radio button , but I am unable to select and click on the second radio button 'ONE WAY FLIGHT' on web page: <code>http://www.lot.com/pl/en</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
  String web = "http://www.lot.com/pl/en";
  driver.get(web);
  driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
  WebElement element;
  
  element = driver.findElement(By.id("select2-departureAirport-container"));
  element.click();
  element.sendKeys("WAW");
  element.sendKeys(Keys.ENTER);
  
  /* RADIO BUTTON ERROR */
  element = driver.findElement(By.cssSelector("input[value='SINGLE']"));
  elementRadio.click();
  </code></pre>
  
  <p>And this is the error:</p>
  
  <blockquote>
    <p><code>Exception in thread "main" org.openqa.selenium.ElementNotInteractableException:</code></p>
  </blockquote>
  
  <p>And this is the fragment of HTML on the web page <code>http://www.lot.com/pl/en</code>:</p>
  
  <pre><code>&lt;div class="b-row"&gt;
                  &lt;div class="b-column twelve"&gt;
                      &lt;fieldset class="flight-type" role="radiogroup" aria-required="true"&gt;
                          &lt;legend class="acc-hide"&gt;Choose flight type&lt;/legend&gt;
                          &lt;label class="booker-label radio-label"&gt;
                              &lt;input data-f-focus="radio" id="ticketTypeReturn" type="radio" name="ticketType" class="required" value="RETURN" checked="checked" /&gt;
  
                              &lt;span class="ci" aria-hidden="true"&gt;&lt;/span&gt;
                              &lt;span class="ci-label"&gt;Round-trip flight&lt;/span&gt;
                          &lt;/label&gt;
                          &lt;label class="booker-label radio-label g-no-margin"&gt;
  
                              &lt;input data-f-focus="radio" type="radio" name="ticketType" class="required" value="SINGLE" /&gt;
                              &lt;span class="ci cis" aria-hidden="true"&gt;&lt;/span&gt;
                              &lt;span class="ci-label"&gt;One-way flight&lt;/span&gt;
                          &lt;/label&gt;
                          &lt;p id="ticketTypeReturn--required" class="b-v-error" role="alert"&gt;Choose flight type&lt;/p&gt;
                      &lt;/fieldset&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>I am unable to understand why it is throwing exception.</p>