title: Toggle an element using selenium webdriver
body: <p>I have a toggle element in a webpage.
  Using selenium i have to toggle right .Am not sure how it can be done using selenium</p>
  
  <p>Actualy I need to click the following element to toggle</p>
  
  <pre><code>&lt;div class="right"&gt;
  &lt;input id="app_in" class="cmn-toggle cmn-toggle-round" type="checkbox" value="false"&gt;
  &lt;label class="preference" tabindex="2" data-preference="inFlag" data-guid="26865MS" for="app_in"&gt;&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>i tried following code to click the checkbox but getting <code>"Element is not currently visible and so may not be interacted with" error</code></p>
  
  <pre><code> driver.findElement(By.id("app_in")).click();
  </code></pre>