I am struggling to click a continue button in my selenium. I try to use .click() but it states element is not clickable. I've tried waiting for the element to be visible before hand and even tried following the solutions in this article Debugging "Element is not clickable at point" error but no luck.
Does any body know why this is being an issue? I am testing this in chrome.
<div class="basket-summary__continue"><button data-href="" data-component="Booking/Navigation/ContinueButton" class="bttn bttn--primary bttn--full-width">
Continue
</button></div>
public void ClickContinue()
{
Thread.Sleep(10000);
_driver.FindElement(By.ClassName("basket-summary__continue")).FindElement(By.XPath("/html/body/div[2]/div[4]/div/div[2]/div[1]/div[1]/div[2]/div[2]/div[3]/button")).Click();
}
P.S I don't really want to use Thread.Sleep but just using it for now to create a wait.
Thank