Skip to content
Advertisement

Tag: onclick

How to click on a button on a webpage and iterate through contents after clicking on button using python selenium

I am using Python Selenium to web scrape from https://finance.yahoo.com/quote/AAPL/balance-sheet?p=AAPL but I want to scrape the Quarterly data instead of the Annual after clicking on the “Quarterly” button on the top right. This is my code so far: I am able to get the button to click but when I iterate through the divs, I am still getting content that

Advertisement