I'm using selenium webdriver with java.

I have encountered a situation where i am able to locate & click on a button,but nothing happens after this.
The HTML code for the said button is->

```
<div id="divAllButtons" class="UCButtonMainCSS" style="display: none;">
<div>
<div id="OtherActionParent" class="mT8">
<div id="btnSave" class="btn fLt mR20">
<span>
<a onclick="Save_onclick()" href="javascript:void(0)">
<span id="Label24">Save</span>
</a>
</span>
</div>

```

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,

**1**

```
Button = driver.findElement(By.id("btnSave"));
Button.click();

```

**2**

```
Button = driver.findElement(By.xpath("//div[@id='dataContainer']/div[2]/div/div/div[4]/div/div[1]/div[2]/span/a"));
Button.click();

```

**3**

```
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();

```

**4**

```
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);

```

Each of the way appears to work fine to click on the button as message **javascript:void(0)** is displayed in the bottom corner of the browser.