title: Click on a button not working
body: <p>I'm using selenium webdriver with java.</p>
  
  <p>I have encountered a situation where i am able to locate &amp; click on a button,but nothing happens after this.
  The HTML code for the said button is-></p>
  
  <pre><code>&lt;div id="divAllButtons" class="UCButtonMainCSS" style="display: none;"&gt;
  &lt;div&gt;
  &lt;div id="OtherActionParent" class="mT8"&gt;
  &lt;div id="btnSave" class="btn fLt mR20"&gt;
  &lt;span&gt;
  &lt;a onclick="Save_onclick()" href="javascript:void(0)"&gt;
  &lt;span id="Label24"&gt;Save&lt;/span&gt;
  &lt;/a&gt;
  &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The button when clicked, should redirect to the confirmation page, or show an alert message if mandetory fields are not filled.
  I have tried few thing,</p>
  
  <p><strong>1</strong></p>
  
  <pre><code>Button = driver.findElement(By.id("btnSave"));
  Button.click();
  </code></pre>
  
  <p><strong>2</strong></p>
  
  <pre><code>Button = driver.findElement(By.xpath("//div[@id='dataContainer']/div[2]/div/div/div[4]/div/div[1]/div[2]/span/a"));
  Button.click();
  </code></pre>
  
  <p><strong>3</strong></p>
  
  <pre><code>Actions action = new Actions(driver);
  WebElement we = driver.findElement(By.xpath("//div[@id='dataContainer']/div[2]/div/div/div[4]/div/div[1]/div[2]/span/a"));
  action.moveToElement(we).click().build().perform();
  </code></pre>
  
  <p><strong>4</strong></p>
  
  <pre><code>Point coordinates = driver.findElement(By.xpath("//div[@id='dataContainer']/div[2]/div/div/div[4]/div/div[1]/div[2]/span/a")).getLocation();
  Robot robot = new Robot();
  robot.mouseMove(coordinates.getX()+40,coordinates.getY()+30);
  robot.mousePress(InputEvent.BUTTON1_MASK);
  robot.mouseRelease(InputEvent.BUTTON1_MASK);
  </code></pre>
  
  <p>Each of the way appears to work fine to click on the button as message <strong>javascript:void(0)</strong> is displayed in the bottom corner of the browser.</p>