I am currently working on a project I can select all elements barr one, and it getting really frustrating the code is as follows
<a class="btn btn-default button button-medium" href="http://automationpractice.com/index.php?controller=order" title="Proceed to checkout" rel="nofollow">
<span>
Proceed to checkout<i class="icon-chevron-right right"></i>
</span>
</a>
I have tried xpath, css, linktext, title and other methods but no luck, any help would be really appreaced
example of xpath I have used
driver.findElement(By.xpath("/html//div[@id='layer_cart']//a[@title='Proceed to checkout']/span")).click();
example of css I have used
driver.findElement(By.cssSelector("a[title='Proceed to checkout'] > span")).click();