Answer the question
In order to leave comments, you need to log in
How to find element and click on it using href for Selenium Python?
There is a web application https://creditcards.chase.com
You
need to click on the Learn More button , but there were difficulties when working with WebDriver - all buttons on the current page have the same id [id="LearnMoreLink"] - the only parameter that distinguishes them
[href *="/cash-back-credit-cards/chase-freedom-unlimited"]
how to solve this problem.
Answer the question
In order to leave comments, you need to log in
So what's the problem? Filter by id and url at once:
#LearnMore[href*="/cash-back-credit-cards/chase-freedom-unlimited"]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question