I am using chromedriver in CS to find an element using css selector however I receive the following error:
OpenQA.Selenium.InvalidSelectorException: 'invalid selector: An invalid or illegal selector was specified
My code:
var body = driver.FindElementsByCssSelector(".add-to-cart.float-right.font-montserratSemiBold.text-11.lg:text-12.text-secondary.flex.flex-wrap.leading-articlesmall");
I am trying to find the element of the Add to basket
buttons on this website
What is wrong with my selector and how can I resolve this issue?