I have a website where i want to download an excel file. https://www.rivm.nl/media/smap/eenzaamheid.html
I want to be able to click the download button and then click download xls. To click the first button i tried the following:
WebDriverWait(driver, 10).until(EC.visibility_by_element_located(By.XPATH('//path[@d="M 11.6 5 L 11.6 17 M 7.4 12.6 L 11.6 17 L 15.799999999999999 12.6 M 3 19 L 3 21 L 21 21 L 21 19"]'))).click()
and
WebDriverWait(driver, 10).until(EC.visibility_by_element_located(By.XPATH('//path[@stroke-width="1.8"]'))).click()
WebDriverWait(driver, 10).until(EC.visibility_of_element_located(By.XPATH('//g[@aria-label="View export menu"]'))).click()
WebDriverWait(driver, 10).until(EC.visibility_of_element_located(By.XPATH('//g[@aria-label="Chart export menu"]'))).click()
For the last two i get the " 'str' object is not callable" error, the first two options just don't work at all.
I can't seem to be able to click the button. I can't really find an 'id' or an unique class/name (the print button has the same class value) for the button, which would make this a lot easier.
I think i would also not be able to then click the "XLS downloaden" as I can't find an ID here either.
So, how would i go about clicking the first button, and then clicking the "XLS downloaden" ?