Click checkbox not working using Selenium webdriver even if checkbox is displayed
<p>Using Selenium webdriver, I am trying to click checkbox but not able to do so, even if the element is displayed.</p>

<p><strong>Below is my code:</strong></p>

<pre class="lang-java prettyprint-override"><code>WebElement element = 
new WebDriverWait(webDriver, 1000).until(ExpectedConditions.presenceOfElementLocated(By.xpath(prop.getProperty(object))));
element.isDisplayed(); // returns true
element.getAttribute("type"); // returns checkbox
element.isSelected(); // returns false

element.click();
element.isSelected(); // still returns false
</code></pre>

<p>The element is displayed, but I am still not able to select the checkbox.
What could be the reason? Where am I going wrong?</p>