Issue
I need to parse prices from
I want to take the maximum possible period. But when I use
driver.find_elements(By.CLASS_NAME, 'btn-group')[-1].click(
)
I get 15 years.
How I can fix it?
Can I additionally upload all these elements to the list and select the last one from them?
Solution
Try to click on last element using xpath expression
driver.find_elements(By.XPATH, '//*[@class="btn-group"]//a')[-1].click()
Answered By - F.Hoque
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.