The following is the HTML code for button:
<span>
<button class="buttonLargeAlt" onclick="javascript:submitCheckout(this.form);"type="submit">Checkout</button>
</span>
I tried driver.findElement(By.xpath("//span[contains(.,'Checkout')]")).click();
It is not working...
Any other ideas? There are 2 buttons with same name on the page.