0

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

3
  • What does "xpath doesn't work" mean? Commented Dec 24, 2020 at 22:01
  • because is dynamic Commented Dec 24, 2020 at 22:18
  • So how do you identify the button you want? What is its defining characteristic? Commented Dec 24, 2020 at 22:51

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.