Angel91
Angel91

Reputation: 45

How to find this button in selenium webdriver python?

how to find this button this is code, xpath doesn't work:

<button type="submit" data-module="tooltip" data-tooltip-config="addtocart" data-tooltip-content="#tooltip_addtocart" class="btn btn-orange-normal-plp addToCartClick product-tile__add-to-cart-CTA js--add-to-cart tooltipstered">
                                        <span class="product-tile__add-to-cart-icon icon-cart-white"></span>
                                    </button>

tnx

Upvotes: 0

Views: 37

Answers (1)

Oussama Darrazi
Oussama Darrazi

Reputation: 60

the relative Xpath to the button you want is: //button[@type='submit']

Upvotes: 1

Related Questions