I'm facing an element like:
<li _ngcontent-bcp-c271="">
<a _ngcontent-bcp-c271="">2018</a>
<!---->
<!---->
</li>
This element is clickable but since it does not have a href
attribute, and I think it should use some script for the click event, I don't have a solution to get the URL from this element.
The code that I use most of the time is as follows:
driver.find_element(By.TAG_NAME, 'li').find_element(By.TAG_NAME, 'a').get_attribute('href')
Update:
I need to know the URL before I click on the bottom.