I have a snippet from the HTML page. I want to know how I can use selenium to click on this javascript. The actual link is https://www.cmegroup.com/trading/interest-rates/countdown-to-fomc.html
<a id="ctl00_MainContent_ucViewControl_IntegratedFedWatchTool_lbPTree" href="javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$lbPTree','')">Probabilities</a>
I am getting this error:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"a[id='ctl00_MainContent_ucViewControl_IntegratedFedWatchTool_lbPTree']"}
I have tried the below but no luck!
link = driver.find_element_by_css_selector("a[title='Probabilities']")[0]
link = driver.find_element_by_css_selector("a*='Probabilities'")
link.click()
I want to have selenium to be able to click on this button using Python.