I am trying to scrape the data table from nasdaq: https://www.nasdaq.com/symbol/msft/interactive-chart?timeframe=5d
What I do is using python and selenium webdriver to click the table button(on top of the chart, with a little table logo) and then scrape.
submit = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, '#dataTableBtn')))
submit.click()
But it does not work.
Button html here:
<div id="dataTableBtn" class="btn hideSmallIR stx-collapsible" onclick="dataTableLoader()"><span>Data Table</span></div>
EC and By
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC