For some websites Selenium IDE will record a CSS selector in a different way than the one I get when you copy the selector from the developer tools. Here's an example page :
Price selector on Selenium IDE
id=pdp-cur-price
Price selector from dev tools
div.price-current-old-details:nth-child(3) > span:nth-child(1)
or
span#pdp-cur-price.price.current-price.ml-0
Add to cart button from IDE
css=.add-to-cart-button
Add to cart button from dev tools
form.focus > input:nth-child(5)
or
input.add-to-cart-button.btn-addtocart.btn-pdp-addtocart.btn.btn--commerce.mr-xs
This of course doesn't help when running the selenium script.
What solutions worked for you in getting accurate CSS selectors?