I am unable to click on 2 download buttons with same button class. below is the code
file=driver.find_element_by_xpath("(//button[@class='MuiButtonBase-root MuiIconButton-root IconButton-sc-iv40hv-1 cLszZl IconButton-sc-iv40hv-0 hbJxSM DownloadButton-sc-19l7ggt-0 gHtfyl MuiIconButton-colorPrimary'])")
driver.execute_script("arguments[0].click();", file)
this works only for 1st button..
2nd button if add 2nd file with index val 2... only second button works
I need to click on both download buttons one after another..