How to find a element and click on it using href for Selenium Python?

A web app https://creditcards.chase.com
Click on Learn More button , but when working with WebDriver have any difficulty - all buttons on current page has same id [id="LearnMoreLink"] is the only parameter which distinguishes them
[href*="/cash-back-credit-cards/chase-freedom-unlimited"]
how to solve this problem.
June 8th 19 at 17:16
2 answers
June 8th 19 at 17:18
Solution
So what's the problem? Filter by id and the url from:
#LearnMore[href*="/cash-back-credit-cards/chase-freedom-unlimited"]
how to look fully line, I'm a novice in Python
driver.find_element_by_?
#LearnMore[href*="/cash-back-credit-cards/chase-freedom-unlimited"] - Ada commented on June 8th 19 at 17:21
,
driver.find_element_by_css_selector('#LearnMore[href*="/cash-back-credit-cards/chase-freedom-unlimited"]')
- alexandrine75 commented on June 8th 19 at 17:24
June 8th 19 at 17:20
https://devhints.io/xpath

a[href^='/'] //a[starts-with(@href, '/')]
a[href$='pdf'] //a[ends-with(@href, '.pdf')] 
a[href~='://'] //a[contains(@href, '://')]

Find more questions by tags SeleniumPythonTesting software