Skip to content
Advertisement

Unable to locate element Selenium:

JavaScript

Link to website: https://www.squidindustries.co/cart

I’m able to check the terms of service box but then when I try to click the checkout button I am given an error of “no such element: Unable to locate element: {“method”:”css selector”,”selector”:”.btn btn–small-wide”}” I’ve tried time.sleep and driver.implicitly_wait but neither seem to work. Any ideas?

Advertisement

Answer

You can use the below css :

JavaScript

in code :

JavaScript

or

With Explicit waits :

JavaScript

Imports :

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement