I am writing an Selenium script which will download the file after clicking on the button. And I put the time to 4min to complete but Manually it took less than 1 min to download. And even After completed the script, downloaded file name contain .crdownload. I compare the both file and it seems that file is downloading completely but there is always a chance that it did not downloaded properly since it contain .crdownload.
is there a way to in selenium or Edge WebDriver that will automatically rename it after this completed.
If EC.Presence_located_by_Element((By.ID,”btnExportExcel”)):
Print(“ html elemnt found”)
Driver.find_element(By.ID,”btnExportExcel”).click()
time.sleep(480)
print(“ download is completed ”)